VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: zhumar on May 14, 2013, 19:03:35 PM

Title: Changing product price
Post by: zhumar on May 14, 2013, 19:03:35 PM
We have a client that wants to offer discounts to users that visit his site if they navigate to a certain URL and get redirected. For example, let's say his site is at mystore.com. We set up a redirect for test.mystore.com. If a user goes to test.mystore.com, the user should get redirected to mystore.com and get a 15% discount on all items. I know I should be able to use the referrer URL in PHP to work out some discount calculations. What I don't know is how to update the product price to apply the calculated discount. Is there something I can do to get discounts to work in this way?