Feature request: A secure way to add a line item cost

tunisoft
Shopify Partner
18 4 1

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

Reply 1 (1)

tunisoft
Shopify Partner
18 4 1

Sorry to bump but is this feasible? Is it a viable idea?

Thank you