vzero Posted September 22, 2011 Share Posted September 22, 2011 Hello, I have just updated a site we have under development and noticed that when I go to Language > No-picture image and put in my custom one the site no longer pulls my custom image. If I turn off the htaccess sef the image is pulled fine. the permission on the images in the p folder are 664 I am also using 1.4.4.1 and am using the new location for images being store. http://benbows.com/6-decafs is the link to a page with 4 images that should be the no image found. Thanks Link to comment Share on other sites More sharing options...
vzero Posted October 10, 2011 Author Share Posted October 10, 2011 Looks like it is giving an odd link to the image On the category page it is https://benbows.com/en-default-medium/water-process-house-blend.jpg while on the product page it is http://benbows.com/img/p/en-default-large.jpg which works Link to comment Share on other sites More sharing options...
vzero Posted October 10, 2011 Author Share Posted October 10, 2011 Looks like I answered my own question. on the product_list.tpl file didn't have the else statement had to add in {if $have_image} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /></a> {else} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$img_prod_dir}{$lang_iso}-default-medium.jpg" id="bigpic" alt="" title="{$product->name|escape:'htmlall':'UTF-8'}" /> </a> {/if} Link to comment Share on other sites More sharing options...
vzero Posted October 10, 2011 Author Share Posted October 10, 2011 Actually that doesn't work since $have_images doesn't work on this page had to change to {if $product.id_image != "en-default"} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /></a> {else} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$img_prod_dir}{$lang_iso}-default-medium.jpg" alt="{$product.legend|escape:'htmlall':'UTF-8'}" title="{$product.legend|escape:'htmlall':'UTF-8'}" /> </a> {/if} Anyone know why {$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')} isn't pulling the default image on the product-list.tpl page? Link to comment Share on other sites More sharing options...
Recommended Posts