You are here:  » old price - new price

Support Forum



old price - new price

Submitted by rolli1 on Sun, 2007-03-18 11:06 in

Hi David,
I searched the forum but did not finde anything matching.
One of my merchants provides two prices and price reduction:

The original Price, the new price and the price reduction. How can I display all three prices.

Regards

Roland

Submitted by support on Sun, 2007-03-18 11:21

Hi Roland,

All you need to do is add the 2 new fields (old price, reduction) to your system. There are detailed instructions for doing this, and then using the new fields throughout the site in the following thread:

http://www.pricetapestry.com/node/313

In addition to the changes described in that thread, you might want to use the same decimalise function that the import procedure uses against the normal price field. To do this, in includes/admin.php search for the following code (line 166):

$record[$admin_importFeed["field_price"]] = tapestry_decimalise($record[$admin_importFeed["field_price"]]);

... you could then add the following on the next line:

$record[$admin_importFeed["field_old_price"]] = tapestry_decimalise($record[$admin_importFeed["field_old_price"]]);
$record[$admin_importFeed["field_price_reduction"]] = tapestry_decimalise($record[$admin_importFeed["field_price_reduction"]]);

This is assuming of course that you called the new fields old_price and price_reduction when making the changes to add the new fields. What you actually call the fields is up to you...

Hope this helps!
Cheers,
David.