Exemples de migration Shopify Scripts
Toutes les formes de Shopify Script que nous avons cataloguées, avec le Ruby d'origine, ce que cela devient, le panier exact qui le prouve et les refus écrits en toutes lettres.
- Formes de Script
- 42
- Reconstruits aujourd'hui
- 38
- Refusés, avec motif
- 21
Pourquoi les refus figurent sur cette page
Aucun outil de migration ne publie ce qu'il ne sait pas faire, si bien qu'un marchand cherchant une forme de Script précise ne trouve que du marketing. Chaque refus ici est écrit avec son motif, le texte exact affiché par l'app, et un lien vers la documentation de Shopify chaque fois que le motif vient de Shopify et non de nous.
13 des 21 refus de cette bibliothèque sont notre propre lacune, et nous le disons. 2 sont des limites de Shopify qu'aucune app de remises ne peut contourner, et 4 ne sont pas des remises : il leur faut un autre type d'app Shopify, nommé sur la page.
Comment votre Script a été écrit
Les deux dialectes dans lesquels la plupart du Ruby collé est écrit, et ce que chacun révèle d'emblée.
- Help Center script templateReconstruit
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputReconstruit
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Prix et pourcentages
Fixer un prix, retirer un montant, et la paire qui ne diffère que d'un signe moins.
- Fixed price per itemReconstruit
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemReconstruit
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderReconstruit
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offReconstruit
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountReconstruit
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EUReconstruit
Tax-inclusive prices reduced for shoppers outside the VAT area.
Quantités, BOGO et unités offertes
Les offres achetez-et-obtenez, et les décisions de comptage qui changent ce que vous donnez.
- Buy one get one freeReconstruit
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveReconstruit
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsReconstruit
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemReconstruit
The least expensive thing in the cart discounted, once.
- BOGO across the cartReconstruit
Buy-and-get applied to the whole eligible selection rather than within one line.
Seuils de dépense
Des avantages qui se débloquent dès que le panier atteint un certain montant.
- Spend threshold, percentageReconstruit
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offReconstruit
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalLimite de Shopify
A threshold read from what was left after a code had already come off.
Livraison
Remiser la livraison, et les Scripts de livraison qui s'avèrent ne pas être des remises.
- Percentage off shippingReconstruit
A share taken off every delivery rate at checkout.
- Amount off shippingReconstruit
A flat sum off the delivery charge, floored at free.
- Flat rate shippingPas encore géré
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdReconstruit
Delivery drops to free once the cart is worth enough.
- Free shipping for tagged customersReconstruit
Free delivery for one group of customers and nobody else.
- Discount one named ratePas encore géré
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsPas encore géré
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesAutre API Shopify
A delivery option removed from checkout under a condition.
Qui la remise touchait
Tags client, historique de commandes et dépense cumulée.
- First order discountPas encore géré
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemPas encore géré
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountPas encore géré
A reward for customers who had spent enough over their lifetime.
- Customer tag discountReconstruit
A discount only tagged customers ever saw.
Codes de réduction
Les Scripts qui guettaient un code, en reconnaissaient toute une famille, ou en refusaient un.
- Reject a discount codePas encore géré
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenReconstruit
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternPas encore géré
A whole family of codes driving one rule through a prefix match.
Portée et exclusions
Ce qu'une remise avait le droit de toucher, et ce qu'elle devait laisser tranquille.
- Scoped to a tag or vendorReconstruit
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsReconstruit
Already-marked-down products protected from a second discount.
- Exclude gift cardsReconstruit
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyPas encore géré
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsPas encore géré
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsLimite de Shopify
Lines another discount had already touched, held back from a second one.
Pas une remise du tout
Les Scripts qui modifiaient le panier ou le paiement plutôt que le prix.
- Purchase quantity limitAutre API Shopify
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryAutre API Shopify
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodAutre API Shopify
A payment option taken off checkout under a condition.
Problèmes avec le fichier lui-même
Deux façons dont un collage devient illisible avant qu'on puisse en reconstruire quoi que ce soit.
- Several campaigns in one filePas encore géré
One file holding several separate rules that ran one after another.
- Copied from a forum threadVérifiez le collage
A paste that lost its instance variables on the way through a forum post.
Collez votre Script mort et voyez ce qu'il devient
La reconstruction est comparée au montant que facturait votre ancien Script avant toute publication.