[-] Classes : fixed bug #PSFV-300 - Bug on Orders
This commit is contained in:
1 parent
8e84c47a1d
commit
7ba36f20ae
1 file changed
+4
-1
@@ -1724,7 +1724,10 @@ class AdminOrdersControllerCore extends AdminController
|
||||
$name = 'product_mini_'.(int)$product['product_id'].(isset($product['product_attribute_id']) ? '_'.(int)$product['product_attribute_id'] : '').'.jpg';
|
||||
// generate image cache, only for back office
|
||||
$product['image_tag'] = cacheImage(_PS_IMG_DIR_.'p/'.$product['image']->getExistingImgPath().'.jpg', $name, 45, 'jpg');
|
||||
$product['image_size'] = getimagesize(_PS_TMP_IMG_DIR_.$name);
|
||||
if (file_exists(_PS_TMP_IMG_DIR_.$name))
|
||||
$product['image_size'] = getimagesize(_PS_TMP_IMG_DIR_.$name);
|
||||
else
|
||||
$product['image_size'] = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user