Jump to content

Horizontal product view (product list) in default prestashop 1.3 theme


Recommended Posts

Hi everyone,
I try to edit product-list.tpl in default prestashop 1.3 theme to display products (for example http://www.ceskynakup.cz/39-prikryvky-polstare-prosivane-z-duteho-vlakna-pro-alergiky ) horizontaly. Here is code, my code, but not working.. any ideas?

           {assign var='liHeight' value=175}
           {assign var='nbItemsPerLine' value=4}
           {assign var='nbLi' value=$products|@count}
           {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
           {assign var='ulHeight' value=$nbLines*$liHeight}

           {foreach from=$products item=product name=products}



getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" />


Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More