I'm pretty new to Shopify Scripts and need your help. So here is the problem:
We are running a promotion, but only people who purchase a product via this promotion page should get the discounted price. We do not want to use discount code, we want to simply show the reduced price in the cart.
There is a sample script which allows me to change the price. So far so good. All I would now need is, that it only happens when a specific condition occurs. I have a couple of ideas: