Subscribe & Save
There are several options to prompt consumers to upgrade one-time products to subscription (recurring) products
Checkout page checkbox
This solution allows consumers to change all one-time products in the shopping cart to recurring products
Add a form checkbox to the checkout page
Set Id = Subscribe
Style the box as needed
Save and Publish
When the box is checked on a live page any one-time products in the cart are changed to the first recurring product found of the same base product. If a one-time product has variants then the variant is retained. If a one-time product does not have a recurring option then it remains in the cart unchanged. If a recurring product is already in the cart then it remains unchanged. When the box is unchecked the cart reverts to the original state.
Checkout page popup
This solution shows a popup to the consumer. The popup presents an option to submit the order AND change all one-time products in the shopping cart to recurring products
Add a popup named “Subscribe” to the checkout page
Add 2 buttons on the popup. These must be buttons. Links are not supported.
Set both buttons to Action = Submit + Route
On the button that will trigger the Subscribe & Save, set Title = submitOnSubscribe
The other button will submit the order with no changes
Close the popup
On the checkout page choose any button or link that will submit the page
Set Action = Open Popup
Choose the “Subscribe” popup to open
When this button or link is pressed on the live page it will open the Subscribe popup if there are recurring products available to subscribe. If there are no products available to subscribe then the button or link will submit the order (yes, it will submit the order with Action = Open Popup).
When the submitOnSubscribe button is pressed on a live page the order is submitted and any one-time products in the cart are changed to the first recurring product found of the same base product. If a one-time product has variants then the variant is retained. If a one-time product does not have a recurring option then it remains on the order unchanged. If a recurring product is already in the cart then it remains unchanged.
Side cart checkbox
This solution allows consumers to change all one-time products in the shopping cart to recurring products
Add a form checkbox to the side (drawer) cart
Set Id = Subscribe
Style the box as needed
Save and Publish
When the box is checked on a live page any one-time products in the cart are changed to the first recurring product found of the same base product. If a one-time product has variants then the variant is retained. If a one-time product does not have a recurring option then it remains in the cart unchanged. If a recurring product is already in the cart then it remains unchanged. When the box is unchecked the cart reverts to the original state.
Product Detail pages
This solution allows a consumer to choose a subscription when viewing a Product Detail page
Go to any Product Detail page
Go to Basic Elements. Products tab. Drag the Subscribe element to the page. [This step may not be necessary as all Product Detail templates contain this element by default. It is ok to remove this default element if desired.]
Style the element as desired. Do not remove any elements or classes from the dragged element. You may add classes if needed to style.
The Subscribe element is automatically populated with product names and prices on the live page if the base product has a subscription (recurring) option. Only the first recurring product is available.
The Subscribe element is automatically hidden on the live page if the base product does not have a subscription (recurring) option.
Last updated