Billeskov Posted October 6 Share Posted October 6 Hello, Can i change from 1 product on row on mobile to 2 product on mobile? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted October 7 Share Posted October 7 (edited) Hi, which PS version and theme? Edited October 7 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
Billeskov Posted October 7 Author Share Posted October 7 Version 8.20. Theme is Pixtron – Responsive Prestashop Theme Link to comment Share on other sites More sharing options...
Prestashop Addict Posted October 8 Share Posted October 8 Hi, you need to modify following templates of your theme (search in sub folders): manufacturer.tpl, product-list.tpl, search.tpl, supplier.tpl and change parameter productClass="col-xs-12 col-sm-6 col-xl-4" to productClass="col-xs-6 col-sm-6 col-xl-4" Link to comment Share on other sites More sharing options...
Billeskov Posted October 12 Author Share Posted October 12 I can't not find it. product-list.tpl: {** * 2007-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file=$layout} {block name='content'} <section id="main"> {block name='product_list_header'} <h2 class="h2">{$listing.label}</h2> {/block} <section id="products"> {if $listing.products|count} <div id=""> {block name='product_list_top'} {include file='catalog/_partials/products-top.tpl' listing=$listing} {/block} </div> {block name='product_list_active_filters'} <div id="" class="hidden-sm-down"> {$listing.rendered_active_filters nofilter} </div> {/block} <div id=""> {block name='product_list'} {include file='catalog/_partials/products.tpl' listing=$listing} {/block} </div> <div id="js-product-list-bottom"> {block name='product_list_bottom'} {include file='catalog/_partials/products-bottom.tpl' listing=$listing} {/block} </div> {else} {include file='errors/not-found.tpl'} {/if} </section> </section> {/block} Link to comment Share on other sites More sharing options...
Nickz Posted October 12 Share Posted October 12 (edited) On 10/6/2024 at 8:24 PM, Billeskov said: Can i change from 1 product on row on mobile to 2 product on mobile? just imagine 2 products on a smallish 4.5" screen. Edited October 14 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted October 14 Share Posted October 14 It depends on theme implementation, the code above is for classic. Search in catalog/_partials/products.tpl 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