Total ammount to pay not calculated in other currency

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 265
Joined: 07 Nov 2018, 14:55

Total ammount to pay not calculated in other currency

Post by Nidzo »

My default currency is set to Serbian Dinar. I set Euro for customers outside of Serbia and set exchange rate.
1 RSD = 0.0085 EUR
1 EUR = 117.64705882 RSD

Domestic shipping is set by Country rule and it's free
Shipping to other countries is set by Zone rules (countries grouped in three zones with different shipping costs)

Changing currencies works well but I have problem in checkout view when Euro is choosen.
It does not calculate total ammount to pay (subtotal-netto + shipping-brutto). When I switch to default currency, it calculates :shock:
Even Phoca Cart Cart module calculates as should for both currencies.

Joomla 4.2.9
Phoca Cart 4.0.5.

Image

Tags:
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 265
Joined: 07 Nov 2018, 14:55

Re: Total ammount to pay not calculated in other currency

Post by Nidzo »

One more thing. In generated PDF that is sent to customer by e-mail everything is OK. Ammounts are displayed correctly. BUT!

In Email Text (Customer) that is sent to customer on status change I use short code {totaltopay}.
When Euro currency is choosen {totaltopay} displays total ammount converted from Euro to default currency according to exchange rate with € sign.

Image

PDF


Image

Little bit a mess. 😃
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Total ammount to pay not calculated in other currency

Post by Jan »

Hi, can you paste a screenshot of list of currencies in administration?

Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 265
Joined: 07 Nov 2018, 14:55

Re: Total ammount to pay not calculated in other currency

Post by Nidzo »

Here is a screenshot.

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Total ammount to pay not calculated in other currency

Post by Jan »

Hi, thank you, found both problems.

Try to test the 4.0.6RC2 version:
https://github.com/PhocaCz/PhocaCart/re ... 0.6RC2.zip

1) Brutto should be OK now

Image

2) There are new variables:
- totaltopaynoformatcurrency
- totaltopaynoformatcommacurrency
- totaltopaycurrency

Use totaltopaycurrency instead of totaltopay. This will display correct price in selected currency. In case the selected currency is not used, it will fallback to standard currency:

Image


Image

Please let me know if this is OK.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 265
Joined: 07 Nov 2018, 14:55

Re: Total ammount to pay not calculated in other currency

Post by Nidzo »

You are my hero Jan :)
Both problems solved 👍
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Total ammount to pay not calculated in other currency

Post by Jan »

Hi, great to hear it.
If you find Phoca extensions useful, please support the project
Post Reply