Jump to content

Edit History

sunilsmartwiz

sunilsmartwiz

Hi,

I have a website and i'm trying to do in a layout:

If category_cover is defined show that or else show the category_cover defined for Home category.

What I've got so far is:

{if isset($category.image.large)}
    <div class="category-cover">
       <img src="{$category.image.large.url}" alt="{$category.image.legend}">
     </div>
   {else}
    <div class="category-cover">
       Show here Category ID = 1 Cover
     </div>
   {/if}

How do I tell prestashop to show the categoryID=1 large image?

Thank you in advance

My website link is https://www.instahotstar.com/buy-instagram-followers

sunilsmartwiz

sunilsmartwiz

Hi,

I have a website and i'm trying to do in a layout:

If category_cover is defined show that or else show the category_cover defined for Home category.

What I've got so far is:

{if isset($category.image.large)}
    <div class="category-cover">
       <img src="{$category.image.large.url}" alt="{$category.image.legend}">
     </div>
   {else}
    <div class="category-cover">
       Show here Category ID = 1 Cover
     </div>
   {/if}

How do I tell prestashop to show the categoryID=1 large image?

Thank you in advance

My website link is https://iinstazood.com

×
×
  • Create New...