You are here:  » Putting price with a currency desc

Support Forum



Putting price with a currency desc

Submitted by wilkins on Tue, 2007-06-26 11:07 in

hi

I am starting a new project for hotels and the feeds I am getting are in multiple currencies, because the comparison function is not that important I can import the prices as they are, the problem is that i need to describe which currency is beeing used for each item, I have taken off the currecy sign, what i need to do now is to put somthing like GBP / Euro under the shown price. the CSV file has a fiels called currency with these descriptions in, would it be posible to show thiese below the price on the searchresults/products pages.

I hope this makes sense.

Thanks

Brent

Submitted by support on Tue, 2007-06-26 11:13

Hi Brent,

That's doable. Basically, you need to follow the instructions in the following thread for adding a new field to your database / admin area - call it "currency"...

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

That thread also contains instructions for displaying your new field throughout the site; so, for example, on the search results page you could add code to html/searchresults.php to display the currency alongside the price by changing:

<strong><?php print $config_currencyHTML.$product["price"]; ?></strong><br />
to...
<strong><?php print $product["currency"].$product["price"]; ?></strong><br />

Ditto html/product.php, except you would use $mainProduct["price"] instead of $product["price"]...

Hope this helps!
Cheers,
David.