Author Topic: 2 currencies questions  (Read 456 times)

madpato

  • Beginner
  • *
  • Posts: 9
2 currencies questions
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28131
  • Always on vacation
    • Jenkin Hill Internet
Re: 2 currencies questions
« Reply #1 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

madpato

  • Beginner
  • *
  • Posts: 9
Re: 2 currencies questions
« Reply #2 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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3479
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: 2 currencies questions
« Reply #3 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

madpato

  • Beginner
  • *
  • Posts: 9
Re: 2 currencies questions
« Reply #4 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28131
  • Always on vacation
    • Jenkin Hill Internet
Re: 2 currencies questions
« Reply #5 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

madpato

  • Beginner
  • *
  • Posts: 9
Re: 2 currencies questions
« Reply #6 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.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: 2 currencies questions
« Reply #7 on: April 21, 2021, 10:15:06 am »
Quote
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

Better option is download noconverter.php from rupostel.com
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates