Jump to content

Prestasjop Layout


Recommended Posts

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

Edited by sunilsmartwiz (see edit history)
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...