Page 1 of 1
Total ammount to pay not calculated in other currency
Posted: 16 Mar 2023, 19:43
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
Even Phoca Cart Cart module calculates as should for both currencies.
Joomla 4.2.9
Phoca Cart 4.0.5.
Re: Total ammount to pay not calculated in other currency
Posted: 17 Mar 2023, 00:27
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.
PDF
Little bit a mess.
Re: Total ammount to pay not calculated in other currency
Posted: 17 Mar 2023, 01:15
by Jan
Hi, can you paste a screenshot of list of currencies in administration?
Jan
Re: Total ammount to pay not calculated in other currency
Posted: 17 Mar 2023, 02:15
by Nidzo
Here is a screenshot.
Re: Total ammount to pay not calculated in other currency
Posted: 17 Mar 2023, 02:46
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
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:
Please let me know if this is OK.
Thank you, Jan
Re: Total ammount to pay not calculated in other currency
Posted: 17 Mar 2023, 16:29
by Nidzo
You are my hero Jan
Both problems solved
Re: Total ammount to pay not calculated in other currency
Posted: 18 Mar 2023, 11:17
by Jan
Hi, great to hear it.
Re: Total ammount to pay not calculated in other currency
Posted: 26 Jun 2024, 08:57
by jjawatches
Hello,
I have same problem,but i can't update Phoca Cart to 4.0.6 version because I still use Joomla 3.
It is possible to fix it in my Phoca Cart and Joomla version?
Joomla 3.10.2
Phoca Cart 3.5.8
Thank You
Re: Total ammount to pay not calculated in other currency
Posted: 27 Jun 2024, 16:13
by Jan
Hi, you can fix it of course but unfortunately I can add some clue advice here, as I didn't see Joomla 3 for years (developing now for Joomla 5 and preparing for Joomla 6).
Jan