Eksempler på migrering fra Shopify Scripts
Hver type Shopify Script, vi har katalogiseret, med den oprindelige Ruby-kode, hvad den bliver til, den præcise kurv der beviser det, og afvisningerne skrevet helt ud.
- Script-typer
- 42
- Genopbygget i dag
- 38
- Afvist, med årsag
- 21
Hvorfor afvisningerne står på denne side
Intet migreringsværktøj offentliggør det, det ikke kan, så en handlende, der leder efter én bestemt Script-type, finder markedsføring og intet andet. Hver afvisning her står med årsagen, med den præcise tekst, som appen viser, og med et link til Shopifys egen dokumentation, hver gang årsagen ligger hos Shopify og ikke hos os.
13 af de 21 afvisninger i biblioteket er vores eget hul, og det siger vi ligeud. 2 er begrænsninger i Shopify, som ingen rabat-app kan komme uden om, og 4 er slet ikke rabatter: de kræver en anden slags Shopify-app, nævnt på siden.
Hvordan dit Script blev skrevet
De to dialekter, som det meste indsatte Ruby-kode er skrevet i, og hvad hver af dem røber med det samme.
- Help Center script templateGenopbygget
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputGenopbygget
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Priser og procenter
At sætte en pris, at trække et beløb fra, og parret der kun adskiller sig ved et enkelt minustegn.
- Fixed price per itemGenopbygget
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemGenopbygget
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderGenopbygget
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offGenopbygget
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountGenopbygget
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EUGenopbygget
Tax-inclusive prices reduced for shoppers outside the VAT area.
Antal, BOGO og gratis varer
Køb-og-få-tilbud, og de tællemåder der afgør, hvor meget du giver væk.
- Buy one get one freeGenopbygget
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveGenopbygget
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsGenopbygget
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemGenopbygget
The least expensive thing in the cart discounted, once.
- BOGO across the cartGenopbygget
Buy-and-get applied to the whole eligible selection rather than within one line.
Beløbsgrænser
Fordele der låses op, når kurven er nok værd.
- Spend threshold, percentageGenopbygget
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offGenopbygget
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalShopify-begrænsning
A threshold read from what was left after a code had already come off.
Fragt
Rabat på leveringen, og de fragt-Scripts der viser sig slet ikke at være rabatter.
- Percentage off shippingGenopbygget
A share taken off every delivery rate at checkout.
- Amount off shippingGenopbygget
A flat sum off the delivery charge, floored at free.
- Flat rate shippingIkke understøttet endnu
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdGenopbygget
Delivery drops to free once the cart is worth enough.
- Free shipping for tagged customersGenopbygget
Free delivery for one group of customers and nobody else.
- Discount one named rateIkke understøttet endnu
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsIkke understøttet endnu
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesAndet Shopify-API
A delivery option removed from checkout under a condition.
Hvem rabatten nåede
Kundetags, ordrehistorik og samlet forbrug.
- First order discountIkke understøttet endnu
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemIkke understøttet endnu
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountIkke understøttet endnu
A reward for customers who had spent enough over their lifetime.
- Customer tag discountGenopbygget
A discount only tagged customers ever saw.
Rabatkoder
Scripts der holdt øje med en kode, genkendte en hel familie af dem, eller afviste en.
- Reject a discount codeIkke understøttet endnu
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenGenopbygget
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternIkke understøttet endnu
A whole family of codes driving one rule through a prefix match.
Omfang og undtagelser
Hvad en rabat måtte røre, og hvad den skulle lade være i fred.
- Scoped to a tag or vendorGenopbygget
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsGenopbygget
Already-marked-down products protected from a second discount.
- Exclude gift cardsGenopbygget
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyIkke understøttet endnu
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsIkke understøttet endnu
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsShopify-begrænsning
Lines another discount had already touched, held back from a second one.
Slet ingen rabat
Scripts der ændrede kurven eller kassen i stedet for prisen.
- Purchase quantity limitAndet Shopify-API
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryAndet Shopify-API
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodAndet Shopify-API
A payment option taken off checkout under a condition.
Problemer med selve filen
To måder hvorpå indsat tekst er ulæselig, før der overhovedet kan bygges noget ud fra den.
- Several campaigns in one fileIkke understøttet endnu
One file holding several separate rules that ran one after another.
- Copied from a forum threadTjek det indsatte
A paste that lost its instance variables on the way through a forum post.
Indsæt dit døde Script og se, hvad det bliver til
Genopbygningen holdes op mod det beløb, dit gamle Script opkrævede, før noget som helst kan udgives.