Jump to content
Xcorpion306

Bank transfer problems

Recommended Posts

Hi

 

I´ve been testing a lot of banwire modules and any of them have worked OK.

 

I use Prestashop 1.5.2

 

I can add the items to cart, choose the payment method, in what it appears the order resume without problems but also the following error message:

 

Notice: Object of class Cart could not be converted to int in ..\..\classes\PaymentModule.php on line 721

 

The line 721 is this one:

if (!(int)$current_id_currency)
  $current_id_currency = Context::getContext()->currency->id;

 

Anyway, if I click on "Confirm order" it appears a blak page with the following error message:

 

Catchable fatal error: Argument 4 passed to ToolsCore::displayPrice() must be an instance of Context, boolean given, called in ..\..\modules\bankwire\bankwire.php on line 223 and defined in ..\..\classes\Tools.php on line 452

 

The mentioned lines are

 

On bankwire.php

'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false, false),

 

On Tools.php

public static function displayPrice($price, $currency = null, $no_utf8 = false, Context $context = null)

 

The order appears correctly at my Back Office.

 

I´ll be waiting for your help PLEASE.

Regards, THANKS A LOT in advance.

Share this post


Link to post
Share on other sites

Did you fixed it?

 

I'm having the same problem when checking out, getting the following error:

 

PHP Catchable fatal error: Argument 4 passed to ToolsCore::displayPrice() must be an instance of Context, integer given, called in /usr/home/site/www.pinklife.com.br/www/pinklife/modules/pagseguro/pagseguro.php on line 439 and defined in /usr/home/site/www.pinklife.com.br/www/pinklife/classes/Tools.php on line 451, referer: http://www.pinklife....uro/payment.php

 

Please, help.

Share this post


Link to post
Share on other sites

yes, i encounter the same problem too, but im in the shop by price module.

 

Object of class Currency could not be converted to int in C:\xampp\htdocs\testsite\modules\blockshopbyprice\blockshopbyprice.php on line 55

 

anyone?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More