Skip to main content
This is a temporary solution while we implement a proper integration.
You can link a product from new, as well as offer circular methods like resale, rental, or subscription, on the same product page. To do this you’ll need to create 2 separate Shopify products, one for the new product and one for the circular methods.

Example of new and resale product switcher on a product page

Prerequisites

  • A Shopify product for the new item (e.g t-shirt)
  • A separate Shopify product setup with Supercycle with a suffix (e.g t-shirt-circular)

How it works

The code uses product handle naming conventions to automatically link products:
  • Base product: t-shirt (new product from Shopify)
  • Linked product: t-shirt-circular (product with circular methods via Supercycle)
When a customer views either product, they see a switcher that lets them toggle between the new and circular versions.

Add the code to your theme

1

Add the Liquid code

Add a Custom Liquid block to your product page in the theme editor:
  1. Go to Online Store > Themes in your Shopify admin
  2. Click Customize on your active theme
  3. Navigate to a product page using the page selector dropdown
  4. In the left sidebar, click Add block in the product information section
  5. Select Custom Liquid from the block options
Shopify theme editor showing Custom Liquid block option
  1. Paste the following code into the Custom Liquid field:
2

Configure the variables

Update these variables to match your setup:
3

Style the switcher

The switcher uses the same classes as the Supercycle methods app block.
The switcher only appears when both the base product and the linked Supercycle product exist. If either product is missing, the switcher won’t display.