Post by tsvetko.krastev » Fri Mar 25, 2016 10:10 pm

Hey guys! I'm experiencing problems with the following shipping module - http://www.opencart.com/index.php?route ... arch=спиди
When I place an order and when I choose it for shipping method I get the following error:
Warning: Missing argument 2 for Cart\Currency::format(), called in C:\wamp64\www\upload\catalog\model\shipping\speedy.php on line 30 and defined in C:\wamp64\www\upload\system\library\cart\currency.php on line 24Notice: Undefined variable: currency in C:\wamp64\www\upload\system\library\cart\currency.php on line 25Notice: Undefined index: in C:\wamp64\www\upload\system\library\cart\currency.php on line 25Notice: Undefined variable: currency in C:\wamp64\www\upload\system\library\cart\currency.php on line 26Notice: Undefined index: in C:\wamp64\www\upload\system\library\cart\currency.php on line 26Notice: Undefined variable: currency in C:\wamp64\www\upload\system\library\cart\currency.php on line 27Notice: Undefined index: in C:\wamp64\www\upload\system\library\cart\currency.php on line 27Notice: Undefined variable: currency in C:\wamp64\www\upload\system\library\cart\currency.php on line 30Notice: Undefined index: in C:\wamp64\www\upload\system\library\cart\currency.php on line 30
Could anyone help me out please?

Thank you in advance!

New member

Posts

Joined
Wed Mar 23, 2016 3:36 pm
Location - Sofia, Bulgaria

Post by Johnathan » Fri Mar 25, 2016 11:05 pm

That means you're using an extension on OpenCart 2.2 that has not be updated for 2.2 compatibility. You'll need to get the developer to add the proper code for the changes that have occurred in 2.2.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by tsvetko.krastev » Fri Mar 25, 2016 11:19 pm

Thank you for the information! :)

New member

Posts

Joined
Wed Mar 23, 2016 3:36 pm
Location - Sofia, Bulgaria

Post by iMateo » Mon May 16, 2016 1:20 am

tsvetko.krastev wrote:Thank you for the information! :)
If your issue still actual, please send wrong string (30th from \catalog\model\shipping\speedy.php) and I will make right.

Actually, problem with:

Old code:

Code: Select all

$this->currency->format($some_value)
Should be:

Code: Select all

$this->currency->format($some_value, $this->session->data['currency'])

Newbie

Posts

Joined
Sat Feb 06, 2016 6:11 am
Who is online

Users browsing this forum: No registered users and 4 guests