[-] MO : Blockwishlist no product image when id_product_attribute is defined, thanks @Broceliande
This commit is contained in:
@@ -68,6 +68,11 @@ if ($context->customer->isLogged())
|
||||
$combination_imgs = $obj->getCombinationImages($context->language->id);
|
||||
if (isset($combination_imgs[$products[$i]['id_product_attribute']][0]))
|
||||
$products[$i]['cover'] = $obj->id.'-'.$combination_imgs[$products[$i]['id_product_attribute']][0]['id_image'];
|
||||
else
|
||||
{
|
||||
$cover = Product::getCover($obj->id);
|
||||
$products[$i]['cover'] = $obj->id.'-'.$cover['id_image'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -62,6 +62,11 @@ if (empty($token) === false)
|
||||
$combination_imgs = $obj->getCombinationImages($context->language->id);
|
||||
if (isset($combination_imgs[$products[$i]['id_product_attribute']][0]))
|
||||
$products[$i]['cover'] = $obj->id.'-'.$combination_imgs[$products[$i]['id_product_attribute']][0]['id_image'];
|
||||
else
|
||||
{
|
||||
$cover = Product::getCover($obj->id);
|
||||
$products[$i]['cover'] = $obj->id.'-'.$cover['id_image'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user