Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
[*] MO - ebay : fixed order not retrieved when module is not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
tbigueres committed Oct 27, 2014
1 parent 8b6a7cc commit ce729ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ebay.php
Expand Up @@ -518,6 +518,9 @@ public function hookNewOrder($params)
if (!(int)$params['cart']->id)
return false;

if(!($this->ebay_profile instanceof EbayProfile))
return false;

if (version_compare(_PS_VERSION_, '1.5', '>'))
{
$sql = 'SELECT cp.`id_product`, ep.`id_ebay_profile`
Expand Down Expand Up @@ -938,6 +941,9 @@ public function hookUpdateProduct($params)
if (!($id_product = (int)$params['product']->id))
return false;

if(!($this->ebay_profile instanceof EbayProfile))
return false;

if ($this->is_multishop)
{
$sql = 'SELECT p.`id_product`, ep.`id_ebay_profile`
Expand Down

0 comments on commit ce729ef

Please sign in to comment.