Shopify Cart API

Highlighted
Tourist
7 0 1

Hi,

I am trying to build this functionality https://shopboxfox.com/products/build for my store https://justbox.ca/collections/create-a-just-box . 
I have done most of the functionality but I am stuck for the cart functionality now. I want to know is there any way to add a custom price for a particular product using add.js ?

I have tried this code but it's not working.

id:var_id, 

quantity:1,

price:$100.00

Initially, the price of the product is 0 I want to add the price for the product after adding all the products to the cart and the cart total will be the price for the zero price product. Please let me know if anybody can help me with this.

Thanks in advance.

 

0 Likes