Hi all,
Just finished implementing the paypal login button and I have 2 things I want to mention.
1. It works mostly.
2. It has problems.
All functionality seems OK on the surface ie. user logs in and all data is transfered to a user account.
However:
1. The user is never given the 'User Group' chosen in the paypal login module. He is registered in the 'Default' user group.
2. When loging into paypal using paypal login, with an account that does not exist in opencart yet, the paypal pop-up window begins to fade away and an error message shows for a split second and an error is posted in the error log:
2017-01-05 4:46:26 - PHP Notice: Undefined property: stdClass::$region in /catalog/controller/extension/module/pp_login.php on line 94
The offending line :
$zone = $this->db->query("SELECT `zone_id` FROM `" . DB_PREFIX . "zone` WHERE country_id = '" . (int)$country_id . "' AND name = '" . $this->db->escape($user->address->region) . "'");
This error does not happen in subsequent logins.
Can these be fixed? Any help appreciated.
Thanks
Who is online
Users browsing this forum: No registered users and 15 guests