Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

How do infinite option apps work / Modifying prices dynamically

How do infinite option apps work / Modifying prices dynamically

daveluke
Shopify Partner
25 2 10

Hello.

 

I am building an app similar to the infinite options Shopify apps widely available, except with predefined product templates. These apps let you create products that can be customized by the customer on the product page. Based on the customizations chosen, the price should change. It seems that the customization aspect is accomplished by adding line item properties via the ajax cart API.

 

 

I am confused however about how to change the price of the product based on the options selected.

 

Originally, I thought these apps used Script Editor to dynamically change the price in cart, but I understand that this is a Plus only feature. I was considering having the app create all possible prices (each price point would be its own variant) based on the options created. When testing out some of the infinite option apps out there, I noticed that they do not add variants to products though.

 

Can anyone point me in the right direction on how to accomplish this? Thank you.

 

 

Replies 0 (0)