Add a switcher between a product sold new and its circular twin on the same product page
This snippet goes in a Custom Liquid block in the theme editor, so it works in any Online Store 2.0 theme. It styles itself with the Methods app block’s classes, so the Supercycle Engine app embed needs to be on.
You can sell a product new and offer it through circular methods such as resale, rental, or subscription from the same product page. To do that, create 2 Shopify products, one for the new product and one for the circular methods, and add a switcher that links them. Supercycle finds the pair by a suffix on the product handle.
A product page with a New and Resale switcher above the methods
The switcher relies on a naming convention for product handles:
Base product. The product sold new, for example t-shirt.
Linked product. The product with circular methods in Supercycle, with a suffix on the same handle, for example t-shirt-circular.
When a customer views either product, the block looks up the other by handle and shows a switcher between the new and circular versions. It only renders when both products exist, so a product without a twin shows nothing.You need both products before you start: a Shopify product for the new item, and a separate Shopify product set up in Supercycle with the suffix on its handle.