Exemplos de migração do Shopify Scripts
Todos os formatos de Shopify Script que catalogamos, com o Ruby original, no que cada um vira, o carrinho exato que comprova e as recusas escritas por inteiro.
- Formatos de Script
- 42
- Reconstruídos hoje
- 38
- Recusados, com motivo
- 21
Por que as recusas estão nesta página
Nenhuma ferramenta de migração publica o que não consegue fazer, então o lojista que procura um formato específico de Script encontra marketing e mais nada. Cada recusa aqui está escrita com o motivo, o texto exato que o aplicativo mostra e um link para a documentação da própria Shopify sempre que o motivo for da Shopify e não nosso.
13 das 21 recusas desta biblioteca são falta nossa, e dizemos isso. 2 são limites da Shopify que nenhum aplicativo de descontos contorna, e 4 nem são descontos: precisam de outro tipo de aplicativo Shopify, citado na página.
Como o seu Script foi escrito
Os dois dialetos em que está escrita a maior parte do Ruby colado, e o que cada um entrega de cara.
- Help Center script templateReconstruído
The dialect Shopify’s own documentation taught, with its settings block above a do-not-edit banner.
- Script Creator outputReconstruído
Generator output, with a CAMPAIGNS array at the bottom that states the merchant’s intent as data.
Preços e porcentagens
Definir um preço, tirar um valor, e o par que se diferencia por um único sinal de menos.
- Fixed price per itemReconstruído
Everything in the clearance line repriced to one round number per unit.
- Amount off each itemReconstruído
A flat sum taken off every unit, however many the shopper bought.
- Amount off the orderReconstruído
One lump sum off the whole cart, spread across the lines.
- Sitewide percentage offReconstruído
One percentage off the whole catalogue, with no condition attached.
- Capped percentage discountReconstruído
A percentage with a ceiling on it, so a large cart never gave away more than a set maximum.
- Remove VAT outside the EUReconstruído
Tax-inclusive prices reduced for shoppers outside the VAT area.
Quantidades, BOGO e unidades grátis
Ofertas de compre-e-ganhe, e as decisões de contagem que mudam quanto você dá.
- Buy one get one freeReconstruído
A set of paid units earns an extra unit at no charge.
- Buy X get Y, inclusiveReconstruído
The same buy-and-get offer, counted so the reward sits inside each set rather than beside it.
- Limit the discounted unitsReconstruído
The discount applied to the first few units only, with the rest at full price.
- Percentage off the cheapest itemReconstruído
The least expensive thing in the cart discounted, once.
- BOGO across the cartReconstruído
Buy-and-get applied to the whole eligible selection rather than within one line.
Faixas de valor gasto
Recompensas que liberam quando o carrinho atinge um certo valor.
- Spend threshold, percentageReconstruído
A percentage that unlocks once the cart is worth enough.
- Spend threshold, amount offReconstruído
A flat sum off the order once the cart crosses a value.
- Discounted cart subtotalLimite da Shopify
A threshold read from what was left after a code had already come off.
Frete
Descontar a entrega, e os Scripts de frete que no fim não são descontos.
- Percentage off shippingReconstruído
A share taken off every delivery rate at checkout.
- Amount off shippingReconstruído
A flat sum off the delivery charge, floored at free.
- Flat rate shippingAinda sem suporte
Every delivery rate rewritten to one price rather than reduced by an amount.
- Free shipping over a thresholdReconstruído
Delivery drops to free once the cart is worth enough.
- Free shipping for tagged customersReconstruído
Free delivery for one group of customers and nobody else.
- Discount one named rateAinda sem suporte
One delivery option discounted while the others stayed at full price.
- Free shipping on certain productsAinda sem suporte
Delivery went free because of what was in the cart, not what it was worth.
- Hide shipping ratesOutra API da Shopify
A delivery option removed from checkout under a condition.
Quem o desconto alcançava
Tags de cliente, histórico de pedidos e gasto acumulado.
- First order discountAinda sem suporte
A discount for shoppers with no order history, or with enough of it.
- First time customer, cheapest itemAinda sem suporte
A new-customer gate wrapped around a cheapest-item reward.
- Lifetime spend discountAinda sem suporte
A reward for customers who had spent enough over their lifetime.
- Customer tag discountReconstruído
A discount only tagged customers ever saw.
Códigos de desconto
Scripts que procuravam um código, reconheciam uma família inteira deles ou recusavam algum.
- Reject a discount codeAinda sem suporte
A code the shopper typed, turned away at checkout with a message.
- Discount code drivenReconstruído
Script logic that only ran when the shopper had typed a particular code.
- Discount code patternAinda sem suporte
A whole family of codes driving one rule through a prefix match.
Alcance e exclusões
O que um desconto podia atingir, e o que ele tinha que deixar em paz.
- Scoped to a tag or vendorReconstruído
A discount limited to products carrying one tag, vendor or type.
- Exclude sale itemsReconstruído
Already-marked-down products protected from a second discount.
- Exclude gift cardsReconstruído
Gift cards left out of a discount that would otherwise have hit them.
- Line item propertyAinda sem suporte
A discount keyed on a property attached to one cart line.
- Exclude subscription itemsAinda sem suporte
Subscription lines held apart from the discount that hit everything else.
- Skip already discounted itemsLimite da Shopify
Lines another discount had already touched, held back from a second one.
Nem é desconto
Scripts que mudavam o carrinho ou o checkout em vez do preço.
- Purchase quantity limitOutra API da Shopify
A cap on how many units a shopper could buy, enforced by trimming the cart.
- Remove products by countryOutra API da Shopify
Products that could not ship to the shopper’s country, quietly deleted.
- Hide a payment methodOutra API da Shopify
A payment option taken off checkout under a condition.
Problemas no próprio arquivo
Duas formas de o texto colado ficar ilegível antes que dê para reconstruir qualquer coisa.
- Several campaigns in one fileAinda sem suporte
One file holding several separate rules that ran one after another.
- Copied from a forum threadConfira o texto colado
A paste that lost its instance variables on the way through a forum post.
Cole o seu Script desativado e veja no que ele vira
A reconstrução é comparada com o valor que o seu Script antigo cobrava antes que qualquer coisa possa ser publicada.