News:

Support the VirtueMart project and become a member

Main Menu

Determining the display currency

Started by Dvdb, October 30, 2018, 22:21:55 PM

Previous topic - Next topic

Dvdb

Hi all,

I am using joomla 3.8.12 and virtuemart 3.2.14

My show is multicurrency (aus, us, Euro)
I need to create a free shipping banner, but would like to display the value and currency in line with the currency

E.g. free shipping
Aus orders above 150
Us orders above 110
Euros orders above 100

To do this I need to find what the display currency is. Can anybody help how to find this?

P.s. I experimented with the  vmconfig option, but the display currency does not seem to be part of it

Appreciate your response

Dirk

GJC Web Design

does this get it ( from the curr module)

$mainframe = JFactory::getApplication();
$currencyModel = VmModel::getModel('currency');
$currencies = $currencyModel->getVendorAcceptedCurrrenciesList($vendorId);
$currencyDisplay = CurrencyDisplay::getInstance();
$virtuemart_currency_id = $mainframe->getUserStateFromRequest( "virtuemart_currency_id", 'virtuemart_currency_id',vRequest::getInt('virtuemart_currency_id',$currencyDisplay->_vendorCurrency) );
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

Dvdb

Thank you GFC web design, with a bit of tweaking you set me on the right path.

After spending the good part of two evenings researching it, you solved it very quickly.

Much appreciated

DVDB