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