Author Topic: Determining the display currency  (Read 450 times)


  • Beginner
  • *
  • Posts: 4
  • A beginner
Determining the display currency
« on: October 30, 2018, 22:21:55 pm »
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


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8828
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Determining the display currency
« Reply #1 on: October 30, 2018, 23:19:18 pm »
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
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
Contact for any VirtueMart or Joomla development & customisation


  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Determining the display currency
« Reply #2 on: October 31, 2018, 10:55:32 am »
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