TheThing Posted November 24, 2016 Share Posted November 24, 2016 Hi, I have a problem with packs. I created a pack with some product, but in the front office I don't see images of products who composed the pack. The <img> tag is not created. How can I fix this bug ? Thanks a lot Link to comment Share on other sites More sharing options...
rocky Posted November 28, 2016 Share Posted November 28, 2016 Are you using a custom theme? The default theme has the following in product.tpl at about line 494, so product-list.tpl is used to display the pack products: {if isset($packItems) && $packItems|@count > 0} <section id="blockpack"> <h3 class="page-product-heading">{l s='Pack content'}</h3> {include file="$tpl_dir./product-list.tpl" products=$packItems} </section> {/if} 1 Link to comment Share on other sites More sharing options...
TheThing Posted December 7, 2016 Author Share Posted December 7, 2016 I'm using warehouse theme Link to comment Share on other sites More sharing options...
TheThing Posted December 7, 2016 Author Share Posted December 7, 2016 <a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" > {if isset($productimg[$product.id_product]) && !empty($productimg[$product.id_product])} <img class="replace-2x img-responsive img_0 lazy {if isset($productimg[$product.id_product].1) && !empty($productimg[$product.id_product].1)} img_1e{/if}" {if (isset($iqit_lazy_load) && $iqit_lazy_load == 1) || (isset($warehouse_vars.iqit_lazy_load) && $warehouse_vars.iqit_lazy_load == 1)} data-original="{$link->getImageLink($product.link_rewrite,$product.id_product|cat:"-"|cat:$productimg[$product.id_product].0.id_image, 'home_default')|escape:'html':'UTF-8'}" {else} src="{$link->getImageLink($product.link_rewrite,$product.id_product|cat:"-"|cat:$productimg[$product.id_product].0.id_image, 'home_default')|escape:'html':'UTF-8'}" {/if} alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> {/if} {hook h='displayCountDown' product=$product} </a> This is the product-list.tpl code Link to comment Share on other sites More sharing options...
rocky Posted December 14, 2016 Share Posted December 14, 2016 Sorry, I'm not familiar with that theme. You should ask the developer of the theme for support. It appears the $productimg variable isn't being created. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now