I'm currently looking for the proper way to work on a theme using the real image of a product and not its thumbnail (identified as $thumb
in the default theme).
I have found a abrupt trick by adding a line in the controller file:
$this->data['cover'] = $product_info['image'];
But does anybody have experienced a better method (eg with vqmod) to retrieve these real image data without changing controller content (for using in template pages, such as product.tpl
or category.tpl
for example)?
With help from members of OpenCart forum, I managed to find a functional solution (using vQmod). It is thus require to create an
.xml
file placed in thevqmod/xml
folder and containing, for example:If product image can not be found and assuming a
<default.jpg>
is put the root of the<image>
folder, the<add>
element can be replaced by:Other possible suggestions, by using: