// Fix discounts
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8442 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
a886313c61
commit
a25f1341ea
1 file changed
+2
-2
@@ -335,7 +335,7 @@ class DiscountCore extends ObjectModel
|
|||||||
$date_end = strtotime($this->date_to);
|
$date_end = strtotime($this->date_to);
|
||||||
if ((time() < $date_start OR time() > $date_end) AND !$cart->OrderExists()) return 0;
|
if ((time() < $date_start OR time() > $date_end) AND !$cart->OrderExists()) return 0;
|
||||||
|
|
||||||
if (!$this->isAssociatedToShop($shop->shopID()))
|
if (!$this->isAssociatedToShop($shop->getID()))
|
||||||
return 0;
|
return 0;
|
||||||
$products = $cart->getProducts();
|
$products = $cart->getProducts();
|
||||||
$categories = Discount::getCategories((int)$this->id);
|
$categories = Discount::getCategories((int)$this->id);
|
||||||
@@ -584,7 +584,7 @@ class DiscountCore extends ObjectModel
|
|||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM `'._DB_PREFIX_.'discount`
|
FROM `'._DB_PREFIX_.'discount`
|
||||||
WHERE `active` = 1
|
WHERE `active` = 1
|
||||||
') > 1);
|
') > 0);
|
||||||
return self::$feature_active;
|
return self::$feature_active;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user