Liquid, JavaScript, themes, sales channels
Hi,
I'm developing a product custom fields app with cost impact and I would like to alter the product line price based on the fields values.
I searched but couldn't find a robust way to add a price impact, so here's my suggestion in this regard, I hope you find it useful:
- A line item can have a "customization" prop which is an ID
- This ID references a row containing a price and weight impact
- This customization can be added on the server side, so the app receives the fields then creates a new customization using the admin api and returns the ID
- The new customization ID is added to the line item props and the product is added to cart
- The line item would then show the combined cost/weight of the variant + customization
I think this would allow for a great way to customize products and at the same time protect against cart forgery
Please tell me if you need more details
Thank you
Sorry to bump but is this feasible? Is it a viable idea?
Thank you
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024