Jump to content

Image not Available not working with SEF


Recommended Posts

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

  • 3 weeks later...

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

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

×
×
  • Create New...