FROM CACHE - en_header

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

Webdibs
Shopify Partner
29 2 8

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?

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
Replies 3 (3)
ThomazReis
Shopify Staff
Shopify Staff
19 8 6

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

Webdibs
Shopify Partner
29 2 8

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.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
ThomazReis
Shopify Staff
Shopify Staff
19 8 6

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