sunilsmartwiz Posted March 28, 2020 Share Posted March 28, 2020 (edited) 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 July 4, 2020 by sunilsmartwiz (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now