Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

"CURRENCY" global variable not loading ok
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: "CURRENCY" global variable not loading ok

"CURRENCY" global variable not loading ok 13 years, 9 months ago #20116

I am using UPSv2 shipping module, www.lowmips.com/joomla/free-software/category/4-upsv2
When creating a pdf file, vminvoice gives the following error, Fatal error: Call to a member function convert() on a non-object in ../classes/shipping/upsv2.php on line 1340

line 1340: // convert the currency to whatever the user chose
$user_currency_shipping = $GLOBALS['CURRENCY']->convert($order_shipping,$shipping_currency,$this->currency);

How can I add the CURRENCY variable in vminvocie?
The topic has been locked.

Re: "CURRENCY" global variable not loading ok 13 years, 9 months ago #20169

  • jaku
Hello,

note sure where this $CURRENCY variable should be coming from.
In the latest VirtueMart versions, variable $CURRENCY_DISPLAY is used for currency values display.

This shipping plugin possibly uses some external class that needs to be loaded and the loading call is missing.
I have checked the code and it rewrites many of the VirtueMart default files, so it may thus create incompability.

In case you would need to get this resolved, we would need to debug the call to this module line by line to be able to reveal the reason and fix it. This would however fall already within a paid support.
The topic has been locked.

Re: "CURRENCY" global variable not loading ok 13 years, 9 months ago #20179

according to the maker:
The global $CURRENCY is set in global.php, lines 40-53. It is a user-chosen currency conversion class, but VirtueMart only ships with one default converter, located in administrator/components/com_virtuemart/classes/currency/convertECB,php.
The topic has been locked.

Re: "CURRENCY" global variable not loading ok 13 years, 9 months ago #20211

  • jaku
In such case, you may need add call to load the global.php file or the Currency module self directly.
Last Edit: 13 years, 9 months ago by .
The topic has been locked.
  • Page:
  • 1
User Login Empty