How do we add Subscrpition code to product page and cart, etc?

Webdibs
Excursionist
13 0 3

How can I find the correct place to add the Subscription code at product page, cart page (if doesn't exists), etc?

I find each theme so different and with the new architecture it's like another thing. Could you suggest or give ideas on how it should be?

0 Likes
ThomazReis
Shopify Staff
Shopify Staff
13 5 5

Hi Webdibs,

Can you explain a bit more what you want to do?

Maybe this documentation might help you: https://shopify.dev/apps/online-store

0 Likes
Webdibs
Excursionist
13 0 3

Hi, we want to add any missing subscription code to the themes. As far as I know, if I do a Subscription add, I need to add the code to dipslay plans in the product page, show selected plan in the cart, on my account, etc.

Some new themes already offer support for all these things except on product page. So I would like to know what's the process to add this code. Because each theme is unique.

0 Likes
ThomazReis
Shopify Staff
Shopify Staff
13 5 5

Hi,

you need to use the Selling Plan Group liquid object: https://shopify.dev/api/liquid/objects/selling-plan-group

And the selling plan liquild object: https://shopify.dev/api/liquid/objects/selling-plan

 

0 Likes