Jump to content

Trying to get property of Non Object in tools.php (Payment Currency Conversion Error for Safari)


Designinfo.in

Recommended Posts

When anyone tries to place an order from my website (Prestashop 1.6.1.7) from MAC - Safari or Iphone - Safari browser, the following error is displayed: 

Trying to get property of Non Object in tools.php on line 768 & 769

 

This error is shown before the button 'I confirm my Order' is clicked on the top of the page.

When the person is redirected to the payment gateway and error with 'oops' is displayed.

 

On line 768 & 769 in tools.php the following codes are there:

$c_id = (is_array($currency) ? $currency['id_currency'] : $currency->id);
        $c_rate = (is_array($currency) ? $currency['conversion_rate'] : $currency->conversion_rate);

To BE NOTED: This error is not there in Google Chrome & Mozilla Firefox. This error is only there for Safari browser for iPhone & MAC.

 

P.S. No changes were made in tools.php by me. Decimals are used for INR Currency.

 

Payment Gateway Module is - PayZapp HDFC Payment Gateway.

 

Error Screenshot & tools.php has been attached.

Tools.php

post-1102264-0-23360900-1502518668_thumb.jpeg

post-1102264-0-30743700-1502518677_thumb.jpeg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...