News:

Support the VirtueMart project and become a member

Main Menu

Currency changer

Started by HenrikS, October 06, 2022, 02:44:55 AM

Previous topic - Next topic

HenrikS

Currency changer not working just stays on the same amount on each currency instead of switching the value.

Also the currency list just says 0.0000 on all currencies.

Any ideas how the get that to work. Running on Joomla 4.2.3 Virtuemart 4.0.7.10717 ----- Php8.1.11 MariaDB 10.6.10

HenrikS

Does anyone have a solution for this?

Milbo

Works for me, you must press the button. We may should change that, so if you select a currency, it should reload the page directly. There is no reason for a button and waiting, right.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

HenrikS

It only changes the currency symbol .. not the amount .. also tried with a fresh install.

HenrikS

I have tried everything now even a clean install og Joomla 4.2.3 and VM4.0.7.10720.

It only changes the Currency symbol NOT the amount.

Cowboy Hat

Base price for variant: £10.00
Sales price: £12.00
Sales price without tax: £10.00
Tax amount: £2.00

Base price for variant: $10.00
Sales price: $12.00
Sales price without tax: $10.00
Tax amount: $2.00

Base price for variant: 10,00 €
Sales price: 12,00 €
Sales price without tax: 10,00 €
Tax amount: 2,00 €

GJC Web Design

I assume the currency rates have been set?

administrator/index.php?option=com_virtuemart&view=currency
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hazael

#6
Quote from: HenrikS on October 14, 2022, 04:02:29 AM
It only changes the Currency symbol NOT the amount.
I confirm. I have the same problem on my test website.
https://szeregowe.pl

But I guess it might be a template problem. I don't see this bug everywhere

HenrikS

Did anyone find a solution for this yet?

Milbo

I just can say there is no problem on j3, currently. Maybe it is a PHP8.1 or J4.2 problem.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

#9
By default, the daily.xml file should be generated to the "/administrator/cache" directory
However, this is not in this case

Does not work with Joomla 4 and Joomla 3.
Does not work with PHP 8.0 and PHP 7.4

Maybe a problem with PHP setup to connect to ecb? but I don't think so. Older versions of VMs work fine on the same server

I think it stopped working for me - since was added to the configuration the option "price by currency". By default I have 0
Older VM versions worked with my new template. I used the default Virtuemart template - it doesn't change anything

Milbo - maybe it works only for you, because an incomplete update has been made available again?  ;)

jenkinhill

Just tested on VM 4.0.7 10720 on J3.10.11 and confirm that while the currency symbols change the figures do not.

The data file in the /cache/convertECB   ( ####-cache-convertECB-#### ) is not downloaded daily as it should be.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

Quote from: hazael on October 18, 2022, 15:08:21 PM
By default, the daily.xml file should be generated to the "/administrator/cache" directory
However, this is not in this case

Does not work with Joomla 4 and Joomla 3.
Does not work with PHP 8.0 and PHP 7.4

Maybe a problem with PHP setup to connect to ecb? but I don't think so. Older versions of VMs work fine on the same server

I think it stopped working for me - since was added to the configuration the option "price by currency". By default I have 0
Older VM versions worked with my new template. I used the default Virtuemart template - it doesn't change anything

Milbo - maybe it works only for you, because an incomplete update has been made available again?  ;)

Thank you for this intensive testing on different versions. The problem was indeed the last committ of the currencydisplay.php. It checked the value on empty, but it was set in the constructor with 1, so it was always executed. The value is in the constructor since all times, literally.  I had the old cache file and so it worked for me for a simpel test. But did not update the currency rates. Great that we found that one.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sirius

Hello Milbo,
just an aside to point out that the transition from version 4.0.7 10720 to 4.0.7 10720 causes this error:
0 Call to undefined method VmConfig::updateDbEntry()
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

Jörgen

Quotetransition from version 4.0.7 10720 to 4.0.7 10720
:o

Try another update with the same version, error may go away.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.