Jump to content

Archived

This topic is now archived and is closed to further replies.

sackling

displaying currency code

Recommended Posts

Is there a way to display the currency code next to the product price? I would like USD or CAD to display next to the price is possible.

Share this post


Link to post
Share on other sites

Robert,

 

You can try the following:

 

In catalog/product_info.php

 

around line: 93

 

Find:

 

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

 

and replace it with:

 

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?> <?php echo $currency; ?></td>

 

and in catalog/includes/modules/product_listing.php

 

around line: 112

 

Find:

 

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';

 

and replace it with:

 

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ' . $currency . ' ';

 

I just tried it on a test site and it worked perfectly.

Share this post


Link to post
Share on other sites

Robert,

 

I am reposting this because the code that I pasted in, was partially erased by the forum when using the code insert tool...

 

In catalog/product_info.php

 

around line: 93

 

Find:

 

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

 

Replace with:

 

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?> <?php echo $currency; ?></td>

 

and in catalog/includes/modules/product_listing.php

 

around line: 112

 

Find:

 

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';

 

Replace with:

 

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ' . $currency . ' ';

 

 

Good Luck!

Share this post


Link to post
Share on other sites

×