Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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

Webdibs
Shopify Partner
30 2 9

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
25 11 7

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

To learn more visit the Shopify Help Center or the Community Blog.

Webdibs
Shopify Partner
30 2 9

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
25 11 7

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

 

To learn more visit the Shopify Help Center or the Community Blog.