Esempi di migrazione da Shopify Scripts
Ogni forma di Shopify Script che abbiamo catalogato, con il Ruby originale, in cosa si trasforma, il carrello esatto che lo dimostra e i rifiuti scritti per intero.
- Forme di Script
- 42
- Ricostruiti oggi
- 38
- Rifiutati, con motivo
- 21
Perché i rifiuti stanno su questa pagina
Nessuno strumento di migrazione pubblica ciò che non sa fare, così un merchant che cerca una forma di Script specifica trova solo marketing e nient'altro. Ogni rifiuto qui è scritto con il motivo, il testo esatto mostrato dall'app e un link alla documentazione di Shopify ogni volta che il motivo è di Shopify e non nostro.
13 dei 21 rifiuti di questa raccolta sono una mancanza nostra, e lo diciamo. 2 sono limiti di Shopify che nessuna app di sconti può aggirare, e 4 non sono affatto sconti: richiedono un altro tipo di app Shopify, indicata nella pagina.
Come è stato scritto il tuo Script
I due dialetti in cui è scritta la maggior parte del Ruby che viene incollato, e cosa lascia capire subito ciascuno dei due.
- Help Center script templateRicostruito
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputRicostruito
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Prezzi e percentuali
Fissare un prezzo, togliere un importo, e la coppia che differisce per un solo segno meno.
- Fixed price per itemRicostruito
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemRicostruito
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderRicostruito
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offRicostruito
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountRicostruito
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EURicostruito
Tax-inclusive prices reduced for shoppers outside the VAT area.
Quantità, BOGO e pezzi gratis
Offerte compra-e-ricevi, e le scelte di conteggio che cambiano quanto regali.
- Buy one get one freeRicostruito
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveRicostruito
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsRicostruito
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemRicostruito
The least expensive thing in the cart discounted, once.
- BOGO across the cartRicostruito
Buy-and-get applied to the whole eligible selection rather than within one line.
Soglie di spesa
Premi che si sbloccano quando il carrello raggiunge un certo valore.
- Spend threshold, percentageRicostruito
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offRicostruito
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalLimite di Shopify
A threshold read from what was left after a code had already come off.
Spedizione
Scontare la consegna, e gli Script di spedizione che alla fine non sono sconti.
- Percentage off shippingRicostruito
A share taken off every delivery rate at checkout.
- Amount off shippingRicostruito
A flat sum off the delivery charge, floored at free.
- Flat rate shippingNon ancora supportato
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdRicostruito
Delivery drops to free once the cart is worth enough.
- Free shipping for tagged customersRicostruito
Free delivery for one group of customers and nobody else.
- Discount one named rateNon ancora supportato
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsNon ancora supportato
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesAltra API Shopify
A delivery option removed from checkout under a condition.
Chi raggiungeva lo sconto
Tag cliente, storico ordini e spesa complessiva.
- First order discountNon ancora supportato
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemNon ancora supportato
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountNon ancora supportato
A reward for customers who had spent enough over their lifetime.
- Customer tag discountRicostruito
A discount only tagged customers ever saw.
Codici sconto
Script che cercavano un codice, ne riconoscevano un'intera famiglia oppure ne rifiutavano uno.
- Reject a discount codeNon ancora supportato
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenRicostruito
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternNon ancora supportato
A whole family of codes driving one rule through a prefix match.
Ambito ed esclusioni
Cosa uno sconto poteva toccare, e cosa doveva lasciare stare.
- Scoped to a tag or vendorRicostruito
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsRicostruito
Already-marked-down products protected from a second discount.
- Exclude gift cardsRicostruito
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyNon ancora supportato
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsNon ancora supportato
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsLimite di Shopify
Lines another discount had already touched, held back from a second one.
Non è affatto uno sconto
Script che cambiavano il carrello o il checkout invece del prezzo.
- Purchase quantity limitAltra API Shopify
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryAltra API Shopify
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodAltra API Shopify
A payment option taken off checkout under a condition.
Problemi con il file stesso
Due modi in cui il testo incollato è illeggibile prima ancora di poterci ricostruire qualcosa.
- Several campaigns in one fileNon ancora supportato
One file holding several separate rules that ran one after another.
- Copied from a forum threadControlla il testo
A paste that lost its instance variables on the way through a forum post.
Incolla il tuo Script fuori uso e guarda in cosa si trasforma
La ricostruzione viene confrontata con l'importo che il tuo vecchio Script applicava, prima che si possa pubblicare qualcosa.