Hi all,
I had added custom inputs to my product form and wanted the price to update live and to be sent to the cart when Added to Cart.
Below is an example of one of the inputs:
This alone does not pass the new price (with £0.80 added when the variant is selected). I’m aware that for it to update live it is a different thing so I’m using this script (which is currently not working)
So, at this moment, I’m not sure either how to pass the updated price value to the cart page, nor how to update it live. Has anyone have a good approach for this?
Just for reference, I wouldn’t want the product price to be updated on the backend (to all users), simply to the user on the website, so I would assume a new variable had to be created to get the new total price based on the custom variants selected and instead of using {{ product.price }} would use a new variable to be passed to the cart as the product price.
Also, for this I cannot use the in-built product variants on Shopify, had to be custom variants.
If anyone could provide some guidance it would be brilliant! Thank you all in advance.