PDA

View Full Version : Dynamic Pricing


Tripwire
04-Dec-2003, 10:13 AM
Is it possible to dynamically change the product price with a php script for example?

I see you can add a product directly with a form post but there is no variable for the price, does anyone know where the price is being picked up from or how it can be substituted?

Thanks in advance.

Steve

Tripwire
04-Dec-2003, 03:30 PM
BUMP

NormanRouxel
04-Dec-2003, 03:39 PM
The price is held on the server in the .cat files (there's one such file for each sections products). There's no easy way to set a price dynamically without some Perl patching.

However you could have a product that costs say £1 and arrange for the quantity to be set to represent the number of £'s to pay.

If you really want to be able to calculate a price I have a set of patches that allows a price to be calculated at the client end (or via PHP) and passed back to the cart pages to override the original product price. These are not free so you'd have to contact me for more information.

Norman

Tripwire
04-Dec-2003, 03:49 PM
Thanks for the info Norman, thats kinda the answer I was expecting :)

I think I'll give it up for a bad job :D

Cheers

Steve