Ejemplos de migración de Shopify Scripts
Todas las formas de Shopify Script que hemos catalogado, con el Ruby original, en qué se convierte, el carrito exacto que lo demuestra y los rechazos escritos por completo.
- Formas de Script
- 42
- Reconstruidos hoy
- 38
- Rechazados, con motivo
- 21
Por qué los rechazos están en esta página
Ninguna herramienta de migración publica lo que no puede hacer, así que un comerciante que busca una forma concreta de Script solo encuentra marketing. Cada rechazo de aquí está escrito con su motivo, el texto exacto que muestra la app y un enlace a la documentación de Shopify siempre que el motivo sea de Shopify y no nuestro.
13 de los 21 rechazos de esta biblioteca son una carencia nuestra, y lo decimos. 2 son límites de Shopify que ninguna app de descuentos puede sortear, y 4 no son descuentos: necesitan otro tipo de app de Shopify, indicada en la página.
Cómo se escribió tu Script
Los dos dialectos en los que está escrito casi todo el Ruby que se pega, y lo que cada uno revela de entrada.
- Help Center script templateReconstruido
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputReconstruido
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Precios y porcentajes
Fijar un precio, restar un importe, y el par que se diferencia por un solo signo menos.
- Fixed price per itemReconstruido
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemReconstruido
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderReconstruido
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offReconstruido
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountReconstruido
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EUReconstruido
Tax-inclusive prices reduced for shoppers outside the VAT area.
Cantidades, BOGO y unidades gratis
Ofertas de compra y regalo, y las decisiones de conteo que cambian cuánto regalas.
- Buy one get one freeReconstruido
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveReconstruido
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsReconstruido
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemReconstruido
The least expensive thing in the cart discounted, once.
- BOGO across the cartReconstruido
Buy-and-get applied to the whole eligible selection rather than within one line.
Umbrales de gasto
Recompensas que se desbloquean cuando el carrito alcanza cierto valor.
- Spend threshold, percentageReconstruido
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offReconstruido
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalLímite de Shopify
A threshold read from what was left after a code had already come off.
Envío
Descontar el envío, y los Scripts de envío que resultan no ser descuentos.
- Percentage off shippingReconstruido
A share taken off every delivery rate at checkout.
- Amount off shippingReconstruido
A flat sum off the delivery charge, floored at free.
- Flat rate shippingAún no admitido
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdReconstruido
Delivery drops to free once the cart is worth enough.
- Free shipping for tagged customersReconstruido
Free delivery for one group of customers and nobody else.
- Discount one named rateAún no admitido
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsAún no admitido
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesOtra API de Shopify
A delivery option removed from checkout under a condition.
A quién llegaba el descuento
Etiquetas de cliente, historial de pedidos y gasto acumulado.
- First order discountAún no admitido
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemAún no admitido
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountAún no admitido
A reward for customers who had spent enough over their lifetime.
- Customer tag discountReconstruido
A discount only tagged customers ever saw.
Códigos de descuento
Scripts que vigilaban un código, reconocían toda una familia de ellos o rechazaban alguno.
- Reject a discount codeAún no admitido
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenReconstruido
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternAún no admitido
A whole family of codes driving one rule through a prefix match.
Alcance y exclusiones
Lo que un descuento podía tocar, y lo que tenía que dejar en paz.
- Scoped to a tag or vendorReconstruido
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsReconstruido
Already-marked-down products protected from a second discount.
- Exclude gift cardsReconstruido
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyAún no admitido
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsAún no admitido
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsLímite de Shopify
Lines another discount had already touched, held back from a second one.
Nada que ver con un descuento
Scripts que cambiaban el carrito o el pago en lugar del precio.
- Purchase quantity limitOtra API de Shopify
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryOtra API de Shopify
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodOtra API de Shopify
A payment option taken off checkout under a condition.
Problemas con el propio archivo
Dos formas de que lo pegado sea ilegible antes de poder reconstruir nada.
- Several campaigns in one fileAún no admitido
One file holding several separate rules that ran one after another.
- Copied from a forum threadRevisa lo pegado
A paste that lost its instance variables on the way through a forum post.
Pega tu Script muerto y mira en qué se convierte
La reconstrucción se compara con el importe que cobraba tu Script antiguo antes de poder publicar nada.