// Fix not found products
This commit is contained in:
1 parent
3dbab4751d
commit
5d932788f7
1 file changed
+5
-5
@@ -70,15 +70,15 @@ class ProductControllerCore extends FrontController
|
|||||||
else
|
else
|
||||||
$this->canonicalRedirection();
|
$this->canonicalRedirection();
|
||||||
|
|
||||||
if (Pack::isPack((int)$this->product->id) && !Pack::isInStock((int)$this->product->id))
|
|
||||||
$this->product->quantity = 0;
|
|
||||||
|
|
||||||
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
|
|
||||||
|
|
||||||
if (!Validate::isLoadedObject($this->product))
|
if (!Validate::isLoadedObject($this->product))
|
||||||
$this->errors[] = Tools::displayError('Product not found');
|
$this->errors[] = Tools::displayError('Product not found');
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (Pack::isPack((int)$this->product->id) && !Pack::isInStock((int)$this->product->id))
|
||||||
|
$this->product->quantity = 0;
|
||||||
|
|
||||||
|
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the product is associated to the shop
|
* If the product is associated to the shop
|
||||||
* and is active or not active but preview mode (need token + file_exists)
|
* and is active or not active but preview mode (need token + file_exists)
|
||||||
|
|||||||
Reference in new issue
Block a user