Jump to content

Catalog - Productlist (SOLVED)


Recommended Posts

Hello,
I need your help! Im on Prestashop 8.1.2
On the page with all the products I'm trying to change the number of product colums and I can't 😃 My brain bugs
I removed the left block with the categories and filters and I want to adjust the number of product colums.

Here's the produclist.tpl file that goes to ( templates/catalog/_partials )

I've tried a lot of modifications and I don't understand why it doesn't change. 

 

{capture assign="productClasses"}{if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture}

<div class="products{if !empty($cssClass)} {$cssClass}{/if}" itemscope itemtype="http://schema.org/ItemList">
    {foreach from=$products item="product" key="position"}
        {include file="catalog/_partials/miniatures/product.tpl" product=$product position=$position productClasses=$productClasses}
    {/foreach}
</div>

 

productlist.tpl

Edited by RMK_Code (see edit history)
Link to comment
Share on other sites

  • RMK_Code changed the title to Catalog - Productlist (SOLVED)

Solved! 
I had a module that had this css.that didn't allow me to see the changes.

#js-product-list .product {
  padding-left: 15px;
  padding-right: 15px;
  width: 33.33%;
}

 

After deleting this piece of css everything is fine, my initial code is correct.

 

{capture assign="productClasses"}{if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture}

<div class="products{if !empty($cssClass)} {$cssClass}{/if}" itemscope itemtype="http://schema.org/ItemList">
    {foreach from=$products item="product" key="position"}
        {include file="catalog/_partials/miniatures/product.tpl" product=$product position=$position productClasses=$productClasses}
    {/foreach}
</div>

 

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...