[Skip to main content](#vessel-content)

#   Display all Currency Prices in various views?

##

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 3 weeks ago [\#71408](#71408) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  *[Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71408 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")* was created by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")*

Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.

I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.

So it should display something like

$220.00 each
R$ 440.00
€180.00
£160.00

thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 weeks ago [\#71459](#71459) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71459 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Hi,

To display the 4 currencies on a product view or listing view, you just have to edit the view "product / listing_price".

And in this view, copy and paste the following code: Code:

echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);

Replace the "$price-&gt;price_currency_id" by the currency id wanted, you can find the currencies id in HikaShop &gt; System &gt; Currencies.

You will have: Code:

echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,2); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,28); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,1); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,4);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 3 weeks ago [\#71621](#71621) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71621 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Thanks for the solution, though can you tell me where in this template to insert the code as there are lots of conditional statements in it, thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 weeks ago [\#71623](#71623) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71623 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Hi,

If you need this display everywhere, you can replace all the occurence of "echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);".
Else it depends of your options.

If you display the price with tax, display "$price-&gt;price_value_with_tax" else "$price-&gt;price_value".

The following user(s) said Thank You: [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#71628](#71628) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71628 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Thanks, i've replaced some of the content in the template with the code you suggested. It now displays all the currencies, though they are in a line and also the same numerical value though the correct currency icon is displayed, just the different values aren't.

[ ![Screen&#95;Shot&#95;2012-10-23&#95;at&#95;1&#95;48&#95;03&#95;pm.png](/forum/attachment/6427) ](/forum/attachment/6427 "...1&#95;48&#95;03&#95;pm.png")

- [ ![Screen&#95;Shot&#95;2012-10-23&#95;at&#95;1&#95;48&#95;03&#95;pm.png](/forum/attachment/6427) ](/forum/attachment/6427 "...1&#95;48&#95;03&#95;pm.png") [ ](/forum/attachment/6427?download=1 "...1&#95;48&#95;03&#95;pm.png")

Last edit: 14 years 3 weeks ago by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile"). Reason: add image

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 3 weeks ago [\#71771](#71771) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71771 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Is it possible to show the "converted currency" prices as well as the main default cost, one below the other?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#71822](#71822) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71822 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Hi,

Here is the solution, replace the line: Code:

echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value,$price-&gt;price_currency_id);

By: Code:

$dollarId = 2; $bLivreId = 28; $euroId = 1; $livreId = 4; $dollarPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $dollarId); $bLivrePrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $bLivreId); $euroPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $euroId); $livrePrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $livreId); echo $this-&gt;currencyHelper-&gt;format($dollarPrice,$dollarId)."&lt;br/&gt;"; echo $this-&gt;currencyHelper-&gt;format($bLivrePrice,$bLivreId)."&lt;br/&gt;"; echo $this-&gt;currencyHelper-&gt;format($euroPrice,$euroId)."&lt;br/&gt;"; echo $this-&gt;currencyHelper-&gt;format($livrePrice,$livreId)."&lt;br/&gt;";

Don't forget to update your currencies rates in HikaShop &gt; System &gt; Currencies, update rates in the toolbar.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#71827](#71827) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71827 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Ha genius! thats awesome.

I have changed the code a little to make it more obvious what each is to:

$dollarId = 2;
$brazilId = 28;
$euroId = 1;
$britId = 4;
$dollarPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $dollarId);
$brazilPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $brazilId);
$euroPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $euroId);
$britPrice = $this-&gt;currencyHelper-&gt;convertUniquePrice($price-&gt;price_value, $price-&gt;price_currency_id, $britId);
echo $this-&gt;currencyHelper-&gt;format($dollarPrice,$dollarId)."&lt;br/&gt;";
echo $this-&gt;currencyHelper-&gt;format($brazilPrice,$brazilId)."&lt;br/&gt;";
echo $this-&gt;currencyHelper-&gt;format($euroPrice,$euroId)."&lt;br/&gt;";
echo $this-&gt;currencyHelper-&gt;format($britPrice,$britId)."&lt;br/&gt;";

However it seems to put the currency icon in the wrong order (before the line return) so i get the attached picture

[ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;12&#95;42&#95;09&#95;pm.png](/forum/attachment/6440) ](/forum/attachment/6440 "...2&#95;42&#95;09&#95;pm.png")

If i can get this solved i'd like to be able to wrap the currency icons in a class and the converted prices in another class so i can style them all individually, if you can point me in the right direction to doing this it would be appreciated and i am very thankful for all your assistance with this, regards...

- [ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;12&#95;42&#95;09&#95;pm.png](/forum/attachment/6440) ](/forum/attachment/6440 "...2&#95;42&#95;09&#95;pm.png") [ ](/forum/attachment/6440?download=1 "...2&#95;42&#95;09&#95;pm.png")

Last edit: 14 years 2 weeks ago by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#71842](#71842) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71842 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

You can maybe try to put the "&lt;br/&gt;" before, like: echo "&lt;br/&gt;".$this-&gt;currencyHelper-&gt;format($dollarPrice,$dollarId);

To add classes on the symbol and on the value, you will have to use the PHP function str_replace() like:
Code:

echo "&lt;span class='currValue'&gt;".str_replace('$','&lt;span class=\'yourClass\'&gt;',$this-&gt;currencyHelper-&gt;format($britPrice,$britId))."&lt;/span&gt;&lt;/span&gt;" ;

Be careful on the span order, because some currency symbol are before the value and other after.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 2 weeks ago [\#71861](#71861) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71861 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Hi, i've tried putting it before and after but it doesn't seem to make any difference. In looking at the source code of the outputted page it show the output correctly though it seems to change the break tag to a &lt;br&gt;.

[ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;2&#95;23&#95;45&#95;pm.png](/forum/attachment/6443) ](/forum/attachment/6443 "...2&#95;23&#95;45&#95;pm.png")

- [ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;2&#95;23&#95;45&#95;pm.png](/forum/attachment/6443) ](/forum/attachment/6443 "...2&#95;23&#95;45&#95;pm.png") [ ](/forum/attachment/6443?download=1 "...2&#95;23&#95;45&#95;pm.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 2 weeks ago [\#71883](#71883) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#71883 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

okay, i have nearly got this working how i want it to but it seems to be stripping out some of the information, seemingly the $ sign as the dollar price just doesn't show in the output, as the dollar price just shows the price and no symbol and the Brazilian Real just show the iso code BRL and not the symbol R$ as it's configured in the currency setting. Any ideas as to what would be causing this?, thanks again...

[ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;3&#95;24&#95;52&#95;pm.png](/forum/attachment/6446) ](/forum/attachment/6446 "...3&#95;24&#95;52&#95;pm.png")

- [ ![Screen&#95;Shot&#95;2012-10-24&#95;at&#95;3&#95;24&#95;52&#95;pm.png](/forum/attachment/6446) ](/forum/attachment/6446 "...3&#95;24&#95;52&#95;pm.png") [ ](/forum/attachment/6446?download=1 "...3&#95;24&#95;52&#95;pm.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#72025](#72025) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#72025 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Hi,

Are you using the code: Code:

echo "&lt;span class='currValue'&gt;".str_replace('$','&lt;span class=\'yourClass\'&gt;',$this-&gt;currencyHelper-&gt;format($britPrice,$britId))."&lt;/span&gt;&lt;/span&gt;" ;

Because in this code, you have to add the currency symbol after "&lt;span class=\'yourClass\'&gt;" like: Code:

echo "&lt;span class='currValue'&gt;".str_replace('$','&lt;span class=\'yourClass\'&gt;$',$this-&gt;currencyHelper-&gt;format($britPrice,$britId))."&lt;/span&gt;&lt;/span&gt;" ;

For the BRL, with the str_replace you can change it with R$ like: Code:

echo "&lt;span class='currValue'&gt;".str_replace('BRL','&lt;span class=\'yourClass\'&gt;R$',$this-&gt;currencyHelper-&gt;format($britPrice,$britId))."&lt;/span&gt;&lt;/span&gt;" ;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")**
- [![WillPatterson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4703-willpatterson "View WillPatterson's Profile") Topic Author
- [ Offline](/forum/user/4703-willpatterson)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 2 weeks ago [\#72031](#72031) by [WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")  Replied by *[WillPatterson](/forum/user/4703-willpatterson "View WillPatterson's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#72031 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Ah, thanks for that, i hadn't added in the currency values, which was a bit confusing as it was automatically adding in the £ and Euro.

I want to end the currency symbol class after the symbol so i can style it differently to the actual numerical value so i guess this should just be something like:

echo "&lt;span class='currValue'&gt;".str_replace('$','&lt;span class=\'yourClass\'&gt;$'"&lt;/span&gt;",$this-&gt;currencyHelper-&gt;format($britPrice,$britId))."&lt;/span&gt;" ;

thanks again for your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#72032](#72032) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display all Currency Prices in various views?](/forum/4-how-to/71408-display-all-currency-prices-in-various-views#72032 "Hi, I'm new to using Hikashop so it's taking a while to find my way around templates etc.  I am in the process of creating a shop which has 4 currencies on it - american dollar, british pound, euro and the Brazilian real. I know there is a built in convertor for the various currencies but i want to then display the current currency values on each of the product detail pages and the category view.  So it should display something like  $220.00 each R$ 440.00 €180.00 £160.00  thanks.")*

Yes, you should do like that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcxNDA4LWRpc3BsYXktYWxsLWN1cnJlbmN5LXByaWNlcy1pbi12YXJpb3VzLXZpZXdzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.108 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
