Adding a item to cart at a different price than it's set price

New Member
15 0 0

Is it possible to add an item to the cart at a different price than what the set price is on the backend?


IE If I have product X setup for $100. If customer comes to the site and a criteria is met, and product X is added to the cart, I want the price to be $60 rather than $100. However if criteria is not met, price is the original $100.


I have tried Javascript and AJAX. I cannot figure out how to add an item to the cart and change it's set price in the backend.


Any ideas?

Shopify Partner
1343 22 204


If you are on Plus, you can use Scripts to modify the product price

This happens on backend. You control the logic.

Any other front end tricks are just exploits waiting to happend. tips, tricks & Shopify sections