hurray Posted September 22, 2011 Share Posted September 22, 2011 Hi, While creating a category, I added all the info, name, description, Meta-title etc. However I do not understand why the image I uploaded for the category does not get displayed in the front end. Thanks in advance. Link to comment Share on other sites More sharing options...
hurray Posted September 29, 2011 Author Share Posted September 29, 2011 I am using prestashop 1.3.1.1 and here is code from category.tpl {include file=$tpl_dir./breadcrumb.tpl} {include file=$tpl_dir./errors.tpl} {if $category->id AND $category->active} <h2 class="category_title"> {$category->name|escape:'htmlall':'UTF-8'} {if $nb_products|intval > 0}<span>{$nb_products|intval} {if $nb_products>1}{l s='products'}{else}{l s='product'}{/if}</span>{/if} </h2> {if $category->description} <div class="cat_desc">{$category->description}</div> {/if} {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} <img src="{$img_cat_dir}default-medium.jpg" alt="" /> {/if} </a> <br /> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} </ul> <br class="clear"/> </div> {/if} {if $products} {include file=$tpl_dir./product-sort.tpl} {include file=$tpl_dir./product-list.tpl products=$products} {include file=$tpl_dir./pagination.tpl} {elseif !isset($subcategories)} <p class="warning">{l s='There is no product in this category.'}</p> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} Link to comment Share on other sites More sharing options...
Mike Kranzler Posted September 29, 2011 Share Posted September 29, 2011 Hi Hurray, Can you please post your URL so that I can check this out for you? -Mike Link to comment Share on other sites More sharing options...
hurray Posted October 1, 2011 Author Share Posted October 1, 2011 Hi Mike, It is www.ametibetaine.com (french site). Thanks for your time. -Hurray Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 3, 2011 Share Posted October 3, 2011 Hi Hurray, Can you give me a link or screenshot of the exact spot where you're having this issue? -Mike Link to comment Share on other sites More sharing options...
hurray Posted October 4, 2011 Author Share Posted October 4, 2011 Hi Mike, Here are 2 screen shots. In the first one you can see that I have uploaded a category image of the category "Bijoux Tibetains" inn the back end. Now on the second screen-shot, you do not see the image in the front end. Should this image not be displayed where I have marked an arrow? I hope this helps. -Hurray Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 4, 2011 Share Posted October 4, 2011 I think you forgot to post the screenshots... -Mike Link to comment Share on other sites More sharing options...
hurray Posted October 4, 2011 Author Share Posted October 4, 2011 oops.. Here they are Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 4, 2011 Share Posted October 4, 2011 Hi Hurray, It appears that the image you're trying to upload is too large for that section. I would suggest that you try messing around with the file size and dimensions to try to find the best quality that will allow it to be displayed. -Mike Link to comment Share on other sites More sharing options...
Recommended Posts