VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: madpato on April 15, 2021, 20:55:26 PM

Title: 2 currencies questions
Post by: madpato on April 15, 2021, 20:55:26 PM
Hello

Im pretty new to VM (first time creating one from scratch), i have installed version 3.8.8 10472 on a Joomla 3.9.26 and PHP 7.2

I  need to configure a product with 2 prices with 2 different payment methods:

First on CLP with wire transfer as a payment method.
Second on USD with Paypal as a payment method (using sandbox atm).

I have enabled on config Prices by currency option.

I have created a test product with CLP 2000 and USD 100 but on the USD price i get a modification on the base price (tested other currencies this does not happen) and cant find why. I dont have a conversion rate on the USD currency. See attached image.
Also i cant find a way to show the 2 prices on the product page, you can have a look here: https://comisionminera.cl/component/virtuemart/talleres-y-seminarios/taller-12-de-mayo-2021-detail it shows only one price.
Is there a way to force pricing and payment option? So if i choose CLP i get the wire transfer data, if i choose USD i get the paypal option.

Any help is appreciated. Thanks
Title: Re: 2 currencies questions
Post by: jenkinhill on April 16, 2021, 12:03:44 PM
Use a hidden configuration option.  See http://forum.virtuemart.net/index.php?topic=144685.msg512622#msg512622

You can specify a currency for each payment plugin, eg set Paypal to USD only.
Title: Re: 2 currencies questions
Post by: madpato on April 16, 2021, 16:46:25 PM
Thanks what about the problem with the discount on the usd price seen on the screenshot?

Regards.
Title: Re: 2 currencies questions
Post by: Jörgen on April 16, 2021, 17:07:46 PM
Test using the same rules for both currencies. Now they are not the same.

Jörgen @ Kreativ Fotografi
Title: Re: 2 currencies questions
Post by: madpato on April 20, 2021, 17:48:41 PM
Ok now i have even only one price on a new product, it still shows that strange discount i dont have any tax rules (the section is empty).
Maybe since my default currency is CLP it is converting it? Even tried to manually edit final price but it goes back to the same.
Title: Re: 2 currencies questions
Post by: jenkinhill on April 20, 2021, 18:50:04 PM
I suspect that the currency converter is doing its job!  I have never tried it, but you could try renaming /administrator/components/com_virtuemart/plugins/currency_converter convertECB.php
Title: Re: 2 currencies questions
Post by: madpato on April 20, 2021, 19:16:39 PM
Hello just tried that, it crashed my administrator of VM, guess i have to override the final price. Did that but now i got a discount at checkout because of this conversion, which is not what i need...

Also how do i force the setting of a payment plugin to a specific currency? looking on the forum cant find the answer.

Thanks.
Title: Re: 2 currencies questions
Post by: pinochico on April 21, 2021, 10:15:06 AM
QuoteI suspect that the currency converter is doing its job!  I have never tried it, but you could try renaming /administrator/components/com_virtuemart/plugins/currency_converter convertECB.php

Better option is download noconverter.php from rupostel.com