Voorbeelden van Shopify Scripts-migratie
Elke vorm van Shopify Script die we hebben vastgelegd, met de oorspronkelijke Ruby, wat het wordt, de exacte winkelwagen die het bewijst, en de weigeringen voluit uitgeschreven.
- Script-vormen
- 42
- Nu herbouwd
- 38
- Geweigerd, met reden
- 21
Waarom de weigeringen op deze pagina staan
Geen enkele migratietool publiceert wat hij niet kan, dus een merchant die één specifieke Script-vorm zoekt, vindt alleen marketing. Elke weigering hier staat er met de reden bij, met de exacte tekst die de app toont, en met een link naar de documentatie van Shopify zelf wanneer de reden bij Shopify ligt en niet bij ons.
13 van de 21 weigeringen in deze bibliotheek zijn ons eigen gat, en dat zeggen we ook. 2 zijn beperkingen in Shopify waar geen enkele kortings-app omheen kan, en 4 zijn helemaal geen kortingen: die vragen om een ander soort Shopify-app, die op de pagina genoemd wordt.
Hoe je Script geschreven is
De twee dialecten waarin het meeste geplakte Ruby geschreven is, en wat elk ervan meteen weggeeft.
- Help Center script templateHerbouwd
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputHerbouwd
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Prijzen en percentages
Een prijs zetten, een bedrag eraf halen, en het paar dat maar één minteken verschilt.
- Fixed price per itemHerbouwd
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemHerbouwd
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderHerbouwd
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offHerbouwd
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountHerbouwd
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EUHerbouwd
Tax-inclusive prices reduced for shoppers outside the VAT area.
Aantallen, BOGO en gratis stuks
Koop-en-krijg-aanbiedingen, en de telkeuzes die bepalen hoeveel je weggeeft.
- Buy one get one freeHerbouwd
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveHerbouwd
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsHerbouwd
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemHerbouwd
The least expensive thing in the cart discounted, once.
- BOGO across the cartHerbouwd
Buy-and-get applied to the whole eligible selection rather than within one line.
Bestedingsdrempels
Beloningen die vrijkomen zodra de winkelwagen genoeg waard is.
- Spend threshold, percentageHerbouwd
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offHerbouwd
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalShopify-beperking
A threshold read from what was left after a code had already come off.
Verzending
Korting op bezorging, en de verzend-Scripts die uiteindelijk helemaal geen korting zijn.
- Percentage off shippingHerbouwd
A share taken off every delivery rate at checkout.
- Amount off shippingHerbouwd
A flat sum off the delivery charge, floored at free.
- Flat rate shippingNog niet mogelijk
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdHerbouwd
Delivery drops to free once the cart is worth enough.
Free delivery for one group of customers and nobody else.
- Discount one named rateNog niet mogelijk
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsNog niet mogelijk
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesAndere Shopify-API
A delivery option removed from checkout under a condition.
Wie de korting bereikte
Klanttags, bestelgeschiedenis en totale besteding.
- First order discountNog niet mogelijk
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemNog niet mogelijk
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountNog niet mogelijk
A reward for customers who had spent enough over their lifetime.
- Customer tag discountHerbouwd
A discount only tagged customers ever saw.
Kortingscodes
Scripts die op een code letten, een hele familie codes herkenden, of er een weigerden.
- Reject a discount codeNog niet mogelijk
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenHerbouwd
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternNog niet mogelijk
A whole family of codes driving one rule through a prefix match.
Bereik en uitsluitingen
Wat een korting mocht raken, en waar hij vanaf moest blijven.
- Scoped to a tag or vendorHerbouwd
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsHerbouwd
Already-marked-down products protected from a second discount.
- Exclude gift cardsHerbouwd
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyNog niet mogelijk
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsNog niet mogelijk
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsShopify-beperking
Lines another discount had already touched, held back from a second one.
Helemaal geen korting
Scripts die de winkelwagen of het afrekenen veranderden in plaats van de prijs.
- Purchase quantity limitAndere Shopify-API
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryAndere Shopify-API
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodAndere Shopify-API
A payment option taken off checkout under a condition.
Problemen met het bestand zelf
Twee manieren waarop geplakte tekst onleesbaar is voordat er iets uit herbouwd kan worden.
- Several campaigns in one fileNog niet mogelijk
One file holding several separate rules that ran one after another.
- Copied from a forum threadControleer je plaksel
A paste that lost its instance variables on the way through a forum post.
Plak je dode Script en zie wat het wordt
De herbouw wordt getoetst aan het bedrag dat je oude Script rekende voordat er iets gepubliceerd kan worden.