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)
Add the code to your theme
Add the Liquid code
Add a Custom Liquid block to your product page in the theme editor:
- Go to Online Store > Themes in your Shopify admin
- Click Customize on your active theme
- Navigate to a product page using the page selector dropdown
- In the left sidebar, click Add block in the product information section
- Select Custom Liquid from the block options

- Paste the following code into the Custom Liquid field:
Configure the variables
Update these variables to match your setup:
| Variable | Description | Examples |
|---|---|---|
new_label | Label shown for the new product option. | New, Buy New |
linked_label | Label shown for the Supercycle product option. | Resale, Rental, Circular, Buy refurbished |
linked_suffix | Suffix added to the base product handle to identify the Supercycle version. | -circular, -resale, -rental |
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.