Skip to main content

Migrating from Legacy Smart Cart to V2 for Shopify Scripts Discounting Deprecation

How to migrate from Smart Cart Legacy (V1) to the latest Smart Cart (V2) and switch your Rebuy discounts to Shopify Functions.

Written by Tom

⚠️ Shopify Scripts for discounting are being deprecated on June 30th, 2026. If you discount through Shopify Scripts on a Smart Cart Legacy, you can keep your discounts working by selecting Enable Shopify Functions for This Cart in the cart editor, with no V2 upgrade required to recover. After enabling, remove your Rebuy discount Script from the Shopify Script Editor before June 30th, 2026 to stop the discount from applying twice. Enabling Shopify Functions on Smart Cart Legacy is a recovery step. Upgrading to the latest Smart Cart (V2) is the recommended long-term move, and this guide walks you through that upgrade.

One-click Enable Shopify Functions on Smart Cart Legacy

If you are using Smart Cart Legacy, you can make this switch in place by selecting Enable Shopify Functions for This Cart callout in the cart editor, which is the fastest way to keep your existing discounts working through the sunset. After enabling, remove your old Rebuy discount Script from the Shopify Script Editor to avoid double-discounting. Upgrading to the latest Smart Cart (V2) is the recommended long-term move and is the focus of this guide.

(Screenshot above: Legacy Smart Cart editor's One-click transfer from scripts to functions using the Enable Shopify Functions for this cart button)

The recommended long-term move is to upgrade to the latest Smart Cart (V2). This article covers the V2 upgrade: what it involves, what carries over automatically, what requires manual work, and where Rebuy Support can help.

How to tell if you're on Legacy Smart Cart

In your Rebuy Admin, navigate to Smart Carts to open the Smart Cart manager page. Here each created Smart Cart will be listed. If your cart version is labeled "Legacy", you are on V1. All new Smart Carts created in Rebuy are automatically the latest version (V2) — you cannot convert a Legacy cart in place.

Upgrading to the latest Smart Cart: What carries over automatically

Very little carries over without manual action. Here's what does and doesn't transfer:

Item

Carries over automatically?

Notes

Existing widgets (cross-sell, upsell, GWP)

⚠️ Partially

Widgets are compatible with V2 but must be manually re-added and reconfigured in the new cart editor.

Cart settings and layout

❌ No

Layout must be rebuilt from scratch in the V2 drag-and-drop editor.

Tiered Progress Bar tiers and rewards

❌ No

Tiers must be manually recreated in the V2 Tiered Progress Bar component.

Buy More Save More configuration

❌ No

Must be reconfigured in V2. Eligible products must be re-added.

Custom CSS

⚠️ Partially

CSS can be copied to V2 Global Settings, but selectors and class names differ between V1 and V2 — expect adjustments to be needed.

Custom JavaScript

⚠️ Partially

JS can be copied, but DOM structure is different in V2. Scripts targeting V1 elements will need to be updated.

Custom cart templates (Liquid/HTML)

❌ No

V1 and V2 use different HTML structure and class names. Templates do not transfer and must be rebuilt.

Shopify Scripts for discounting

❌ No

Scripts are deprecated June 30, 2026. In V2, enable Shopify Functions instead via the toggle in each component's settings.

Steps to take

1. Identify and remove legacy Shopify Scripts

First remove any Shopify Scripts from your Script Editor app that were powering Rebuy discounts. To identify Rebuy-generated scripts:

  • Go to Shopify Admin → Apps → Script Editor.

  • Look for scripts with names referencing Rebuy features — common names include "Rebuy Tiered Progress Bar", "Rebuy GWP", or "Rebuy Buy More Save More".

  • Scripts containing logic like cart.calculate_line_items or free gift thresholds are likely Rebuy-generated.

  • Once Shopify Functions is confirmed working in V2, disable and delete these scripts before June 30, 2026.

2. Create a new V2 Smart Cart

  • In Rebuy Admin, go to Smart Carts → click New Smart Cart.

  • Choose a layout (single or double column) and add a widget.

  • Leave the new cart unpublished/inactive while you configure and test it.

For further instructions on creating the latest Smart Cart see How to Enable Smart Cart

3. Rebuild your cart configuration

  • Re-add any cart widgets using the Smart Cart's latest drag-and-drop editor.

  • Recreate your Tiered Progress Bar tiers and reward thresholds.

  • Reconfigure Buy More Save More, including re-adding eligible products.

  • Copy CSS/JS to your new Smart Cart in the Global Settings (Gear Icon) → Advanced settings and adjust element selectors to match the latest Smart Cart's DOM structure.

  • Rebuild any custom templates — Legacy templates are not compatible with the latest Smart Cart (V2) version.

Important: The steps in this section, including custom CSS, JavaScript, and template rebuilds, are merchant-managed and fall outside Rebuy Support's scope. Rebuy Support can answer configuration questions and direct you to the correct latest Smart Cart settings, but does not perform migrations, edit custom code, or rebuild templates. For hands-on work, Schedule a session with the Rebuy Activation Team

Related Sources

4. Enable Shopify Functions (replaces Shopify Scripts)

Once your latest Smart Cart (V2) is configured, enable Shopify Functions for each discounting feature:

  • Tiered Progress Bar: Smart Cart → Tiered Progress Bar component → Advanced Bar Settings → toggle "Use Shopify Functions (Recommended)" on → Save.

  • Buy More Save More: Smart Cart → Buy More Save More component → Discount settings → enable Shopify Functions → Save.

  • Widgets: Widget Editor → Discount tab → toggle "Discounted By Functions" → Save.

Related Sources

5. Test before going live using Rebuy Preview Mode

  • Use Rebuy's preview mode to validate cart behavior before publishing.

  • Test each Tiered Progress Bar tier — add items to cart and confirm rewards unlock at the correct thresholds.

  • Confirm Buy More Save More discounts apply at checkout, not just visually in the cart.

  • Test gift-with-purchase items: confirm the item is added and the discount is applied (price shows $0 or correct discounted price).

  • Check that other Shopify discounts (e.g., discount codes) are set to combinable so they don't conflict with Rebuy's Functions discounts.

  • Once satisfied, publish the V2 cart and disable the Legacy cart.

Learn more about Rebuy's Preview Mode at Using Rebuy preview mode

Shopify Functions: what's supported

Rebuy's Shopify Functions integration supports the following discount types:

  • ✅ Percentage off (e.g., 100% off for a free gift)

  • ✅ Fixed amount off (e.g., $5 off)

  • ✅ Tiered Progress Bar rewards (free products, order discounts, up to 4 tiers)

  • ✅ Buy More Save More

  • ✅ Gift With Purchase and Selectable Gift With Purchase widgets

  • ✅ Cart widgets and product page widgets

  • ✅ Rebuy's Bundle Builder

  • ❌ Conditional discounting (e.g., data source discounting rules) — not yet supported

If your business relies on complex discounts, consider using a third-party app. Shopify's Scripts Migration Tool can help, but ensure that the apps you choose are compatible with Rebuy. One such app is SupaEasy: AI Functions Creator. However, note that Rebuy Support can’t modify or customize third-party app discounts for you.

NOTE: Third-party discounting apps (including SupaEasy) are not a Rebuy product, and unfortunately, Rebuy Support is unable to create, modify, or customize third-party app discounts to align with your specific needs.

If you encounter challenges with using third-party discounting apps (including SupaEasy), we suggest reaching out to the application's support team for assistance.

For additional details on Rebuy's support scope, please consult our policy page. Your understanding is greatly appreciated.

What Rebuy Support can and cannot help with

Rebuy Support CAN help with

Rebuy Support CANNOT help with

Answering questions about V2 configuration and settings

Performing the migration for you (creating, configuring, or publishing your V2 cart)

Explaining where settings are located in the V2 editor

Copying or migrating custom CSS, JS, or Liquid templates from Legacy to V2

Troubleshooting Shopify Functions toggle visibility and configuration

Writing or modifying custom code or templates on your behalf

Guiding you through testing steps and confirming expected behavior

Identifying or modifying Shopify Scripts in your Script Editor (these are not a Rebuy product)

Pointing you to Rebuy Partners for hands-on migration help

Configuring or troubleshooting third-party discounting apps

If you need hands-on help with custom code, CSS, or template migration, we recommend working with an accredited Rebuy Partner. You can find one via Rebuy's Partner Matchmaking page. Meet our Agency Partners

Related resources

Did this answer your question?