diff --git a/ps_crossselling.php b/ps_crossselling.php index 0356b1a..bf8e932 100755 --- a/ps_crossselling.php +++ b/ps_crossselling.php @@ -251,7 +251,7 @@ protected function getOrderProducts(array $productIds = []) FROM ' . _DB_PREFIX_ . 'orders o LEFT JOIN ' . _DB_PREFIX_ . 'order_detail od ON (od.id_order = o.id_order) WHERE o.valid = 1 - AND od.product_id IN (' . implode(',', $productIds) . ') + AND od.product_id IN (' . implode(',', $productIds) . ') and od.id_shop = ' . $this->context->shop->id. ' ORDER BY o.id_order DESC LIMIT ' . ((int) Configuration::get('CROSSSELLING_NBR')) * static::LIMIT_FACTOR;