Snipcart

Permalink
Hi Everyone ,

I am using snipcart for e-commerce purposes for shopping cart and other stuff .
Following this documentation i wanted to create a own product by taking input from the customer.

http://docs.snipcart.com/getting-started/installation...

Depending on what they select the price of the product varies
and i am controlling that with the help of jquery depending on select .
The product is successfully getting added in the cart with the price expected but at last when i try to checkout i get an error.

"WE HAVE NOT BEEN ABLE TO COMPLETE YOUR ORDER. IT SEEMS THAT ONE OF THE ITEMS IN YOUR CART HAS AN INVALID PRICE"

anybody familiar with snipcart please do let me know some solution for this .

1 Attachment

 
mesuva replied on at Permalink Reply
mesuva
When an order is placed Snipcart returns to your site to verify that the price (or other details) hasn't been changed. It looks at the page specified by the data-item-url to try to find the markup of the Snipcart button/form.

Because you're dynamically changing the price, Snipcart isn't then able to find that exact product markup. If this wasn't in place, visitors could change prices in the DOM and put through order.

Snipcart does provide a way to change prices with an option though, see the 'Altering item prices' section on the page:
http://docs.snipcart.com/configuration/custom-fields...