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

#   Display original currency in checkout cart total

##

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 11 months ago [\#285176](#285176) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285176 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")* was created by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")*

-- HikaShop version -- : 3.2.2

Hello,

I am trying to make own currency switcher module that will work with cache.
What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.

Only place where I still can't get both prices is cart total, as pictured bellow:
[ ![checkouthika.jpg](/forum/attachment/41973) ](/forum/attachment/41973 "checkouthika.jpg")

I need to have price in EURO (it is original currency) in total too.

I know where I should put the code, but I do not know the code, I tried this without success, it is always zero: Code:

echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_without_discount_with_tax,$price-&gt;price_orig_currency_id); echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[1]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[1]-&gt;price_currency_id);

Thanl you in advance,
F.

- [ ![checkouthika.jpg](/forum/attachment/41973) ](/forum/attachment/41973 "checkouthika.jpg") [ ](/forum/attachment/41973?download=1 "checkouthika.jpg")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 10 months ago [\#285197](#285197) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285197 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi,

The variable Code:

$this-&gt;full_total-&gt;prices[1]

doesn't exists.
You want to use Code:

$this-&gt;full_total-&gt;prices[0]

instead. Code:

$this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax

contains the total in the current currency. Code:

$this-&gt;full_total-&gt;prices[0]-&gt;price_orig_value_with_tax

should contain the total in the original currency.

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285202](#285202) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285202 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello Nicolas,

unfortunately, this is not working for me.
It is always zero.

Products are in EUR currency and my default Hikashop currency is CZK.

Do you have any other tips? Or is this variable working for you?

Thank you,
Filip

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 10 months ago [\#285205](#285205) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285205 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi,

It is working when I add it to the "cart" file of the "checkout" view with the legacy checkout.
Now I don't know in which view you're doing your changes since you didn't say.
I assumed it was the cart view file of the legacy checkout since you were trying to use $this-&gt;full_total which is only there.
If you're using the new checkout and editing the view file show_block_cart, then it's not $this-&gt;full_total but $cart-&gt;full_total that you want to use.

The following user(s) said Thank You: [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago -  8 years 10 months ago [\#285216](#285216) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285216 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello Nicolas,

not sure what legacy checkout means but yes, I am editing cart.php of view checkout.
The changes appear but variable is blank or zero if I use currency helper.

This is my code: Code:

&lt;td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_total_value" data-title="&lt;?php echo Jtext::_('HIKASHOP_TOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_final_total" style="font-size:32px;"&gt; &lt;?php //echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); echo $this-&gt;full_total-&gt;prices[0]-&gt;price_orig_value_with_tax; ?&gt; &lt;/span&gt; &lt;/td&gt;

Do you have any other ideas what could be wrong?

I am again telling that my products are in currency CZK, main currency of hikashop is EUR and I need to get price in CZK in this variable. Both currencies are visible and active.

I tested also on testing site and the result is same.

F.

Last edit: 8 years 10 months ago by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile").

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 10 months ago -  8 years 10 months ago [\#285243](#285243) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285243 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello,

Let's check something, can you provide a screenshot of your **Legacy settings**, like on this image :

[ ![&#91;img](https://cdn.pbrd.co/images/H12uLuC.png) ](https://cdn.pbrd.co/images/H12uLuC.png "&#91;img")

Awaiting news from you to better understand what's going on.

Regards

Last edit: 8 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285256](#285256) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285256 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello Nicolas,

thank you, here it is.

[ ![legacysettings.png](/forum/attachment/41986) ](/forum/attachment/41986 "...cysettings.png")

BR,
F.

- [ ![legacysettings.png](/forum/attachment/41986) ](/forum/attachment/41986 "...cysettings.png") [ ](/forum/attachment/41986?download=1 "...cysettings.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 10 months ago [\#285258](#285258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285258 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi,

Add that code:
var_dump($this-&gt;full_total-&gt;prices[0]);
and you'll see all the attributes that you can use instead of price_orig_value_with_tax which apparently doesn't exist there.

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285282](#285282) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285282 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi!

Briliant idea! It seems there is no variable with original currency, here is output.

[ ![hikashopoutput.png](/forum/attachment/41990) ](/forum/attachment/41990 "...shopoutput.png")

Any other ideas how to get that variable, please?

Thank you,
Filip

- [ ![hikashopoutput.png](/forum/attachment/41990) ](/forum/attachment/41990 "...shopoutput.png") [ ](/forum/attachment/41990?download=1 "...shopoutput.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 10 months ago [\#285286](#285286) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285286 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello,

Please read carefully the Nicolas message :

> and you'll see all the attributes that you can use instead of price\_orig\_value\_with\_tax which apparently doesn't exist there.

He is telling you that there is no "orig" price since there is no conversion of the price.
But he is telling you that you will have all the elements which will help you to continu your customization since you will have the available data.
Afterwards you might want to perform a conversion to another currency using the currency helper that you're using to format the price.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285326](#285326) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285326 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello,

as I said, my products are in CZK currency. I set main currency in Hika configuration to EUR as to as there will appear two currencies in product listing and product view.

Is there any work around or configuration that will make two prices visible? Can you advise something, please?
Filip

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 10 months ago [\#285328](#285328) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285328 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi,

Since the orig prices are not available there. You need to convert them.
For example: Code:

$currencyClass = hikashop_get('class.currency'); $currencyClass-&gt;format($currencyClass-&gt;convertUniquePrice($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax, $this-&gt;full_total-&gt;prices[0]-&gt;price_curreny_id, XXX), XXX);

where XXX is to be replaced with the id of the currency you want to convert the price back to.

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285371](#285371) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285371 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello Nicolas,

perfect! It worked! Thank you very much.
I have a very last question, is there any way how to access this class and conversion method from banktransfer_end.php (file of plugin banktransfer) and order_creation_notification_preload.modified.php?

Thank you very muhc for all your help,
Filip

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 10 months ago [\#285379](#285379) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285379 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hi,

You can use the same code there, except for the variables.
in banktransfer_end, the total amount should be in $this-&gt;order-&gt;order_full_price instead of $this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax and the currency id should be in $this-&gt;order-&gt;order_currency_id instead of $this-&gt;full_total-&gt;prices[0]-&gt;price_curreny_id
In the preload, it's the same but with $data-&gt;cart instead of $this-&gt;order

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

8 years 10 months ago [\#285426](#285426) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[Display original currency in checkout cart total](/forum/27-checkout/893310-display-original-currency-in-checkout-cart-total#285426 "-- HikaShop version -- : 3.2.2  Hello,  I am trying to make own currency switcher module that will work with cache. What I need is to display both prices everywhere, listing, product view, checkout and then I will show or hide one of them.  Only place where I still can't get both prices is cart total, as pictured bellow:  I need to have price in EURO (it is original currency) in total too.  I know where I should put the code, but I do not know the code, I tried this without success, it is always zero:  Thanl you in advance, F.")*

Hello!

Thank you very much! I finally made my javascript no-cache currency switcher modification ![:)](/media/kunena/emoticons/3.png ":)")).

Thank you very much for your great and kind support!

Filip

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzMxMC1kaXNwbGF5LW9yaWdpbmFsLWN1cnJlbmN5LWluLWNoZWNrb3V0LWNhcnQtdG90YWw/dG1wbD1tYXJrZG93bg==) 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.099 seconds

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