Usman Ahmed Posted April 24, 2011 Share Posted April 24, 2011 Hi,Help me on this. I want to load category default images on the category list. I got some example websites which have done that and made on Prestashop.http://www.peugeotsport-store.com/http://www.presqueparfait.com/http://www.cadeau-maestro.com/http://www.snkrs.com/fr/How can I load category default images in the category list (Block Categories)? Link to comment Share on other sites More sharing options...
S@nya Posted September 26, 2011 Share Posted September 26, 2011 Try <img src="{$link->getCatImageLink($node.name, $node.id, 'medium')}" > in your template. Or this : {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} And you can find this: {if $category->id_image} <div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> {/if} in default category.tpl 1 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