getProductImage in tpl prestashop code example
Example 1: getProductImage in tpl prestashop
{assign var='product_image' value=Product::getCover($product->id)}
<img src="{$link->getImageLink($product->link_rewrite, {$product_image['id_image']}, 'home_default')|escape:'html':'UTF-8'}" alt="" style="width:100%">
Example 2: getProductImage in tpl prestashop
{assign var='product_image' value=Product::getCover($product->id)}
<img src="{$link->getImageLink($product->link_rewrite, {$product_image['id_image']}, 'home_default')|escape:'html':'UTF-8'}" alt="" style="width:100%">