Jump to content

Dont display images in subcategory


Recommended Posts

Hello,

I've a problem with my prestashop. I have many categories and subcategories within these categories.

The problem is that if i did not add an image to an subcategorie (a car) you'll always see the "No image available". But I dont want this, I want the subcategories (cars) to view under eachother.

What i mean is this:

This is te situatian at the moment:
huidig.JPG

And I want this:
doel.JPG

Link to comment
Share on other sites

    {if isset($subcategories)}
   <!-- Subcategories -->

{l s='Subcategories'}

       {foreach from=$subcategories item=subcategory}

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
                   {if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                   {else}


                   {/if}



getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}

       {/foreach}




   {/if}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...