Creating a Custom TryNow Experience
Updated over a week ago

We understand that some merchants may not use our app blocks and may want to create a more custom experience for various reasons:

  1. Perhaps you want to use your own custom button styling.

  2. You may use another page builder outside of Shopify that requires more custom logic.

Below is guidance to pass on to your developers on how they can identify selling_plan values and pass them along in the ATC function:

  • You will want to include the selling_plan value when a shopper selects the TBYB option to add an item to the cart. You can obtain this value from the product page by searching for an input[name="selling_plan"] in the HTML elements. Alternatively, you can use the meta tag embedded by our app with the attribute name="trynow:selling_plan_id" and copy its content, which should be the same as the selling_plan ID.

  • If the selling_plan value is not included when submitting the add-to-cart form, you will need to address this in the add-to-cart function within your theme. This is similar to how you already pass the item quantity, ID, and properties.

Did this answer your question?