SeizeTheDay Posted June 16, 2020 Share Posted June 16, 2020 Hi everyone. I want to show the products in 2 product column on mobile devices (include homepage and categories). What codes should I change? Could you help me? Thanks... ps version: 1.7.6.4 website: https://www.edirnemarket.com.tr current view on mobile : Link to comment Share on other sites More sharing options...
Prescol Posted June 16, 2020 Share Posted June 16, 2020 You must edit the product.tpl file, and then modify according to the css framework your theme is using. If it is default them: bootstrap4 Link to comment Share on other sites More sharing options...
SeizeTheDay Posted June 17, 2020 Author Share Posted June 17, 2020 11 hours ago, Prescol said: You must edit the product.tpl file, and then modify according to the css framework your theme is using. If it is default them: bootstrap4 Hi @Prescol thank you for support but I still don't know what to do. If you want, I can send the product.tpl file and the css file to you. I don't know what codes to change. Link to comment Share on other sites More sharing options...
Prescol Posted June 17, 2020 Share Posted June 17, 2020 I will not edit code on demand. There are thousand of tutorials online and thousand of programmers ready to do it. Perform a search and you will see a lot of information, even in this forum. Link to comment Share on other sites More sharing options...
SeizeTheDay Posted June 17, 2020 Author Share Posted June 17, 2020 I didn't want you to do it. I just want to know which codes I need to change. so i said i can send the files. Anyway thank you. Is there anyone else who can help? Link to comment Share on other sites More sharing options...
Prescol Posted June 17, 2020 Share Posted June 17, 2020 (edited) Well, the difference between writing the code or telling you what to do and where is not so big... Edited June 17, 2020 by Prescol (see edit history) Link to comment Share on other sites More sharing options...
SeizeTheDay Posted June 17, 2020 Author Share Posted June 17, 2020 anyone else*?? Link to comment Share on other sites More sharing options...
luisleitaoaudio Posted June 19, 2020 Share Posted June 19, 2020 (edited) Big confusion You have some css errors in your code add this to your file custom.css @media (max-width: 767px){ .products .product-miniature { width:100%!important; float:left!important; } } To add custom css code do this: after code you will see : Edited June 19, 2020 by luisleitaoaudio (see edit history) Link to comment Share on other sites More sharing options...
pinwheel Posted December 16, 2020 Share Posted December 16, 2020 On 6/17/2020 at 12:36 AM, Prescol said: I will not edit code on demand. There are thousand of tutorials online and thousand of programmers ready to do it. Perform a search and you will see a lot of information, even in this forum. On 6/17/2020 at 1:24 AM, Prescol said: Well, the difference between writing the code or telling you what to do and where is not so big... There are no tutorials on how to do this for prestashop 1.7.6. I'm not sure why you even answered the person, only to be snarky. There are plenty of other shopping carts, where the community help each other. 1 Link to comment Share on other sites More sharing options...
Prescol Posted December 18, 2020 Share Posted December 18, 2020 (edited) On 12/16/2020 at 8:31 PM, pinwheel said: There are no tutorials on how to do this for prestashop 1.7.6. I'm not sure why you even answered the person, only to be snarky. There are plenty of other shopping carts, where the community help each other. There are a lot of professional programmers ready to work. You only need to hire them. This is a forum, not a free service. Value your work. Edited December 18, 2020 by Prescol (see edit history) Link to comment Share on other sites More sharing options...
pinwheel Posted December 18, 2020 Share Posted December 18, 2020 4 hours ago, Prescol said: There are a lot of professional programmers ready to work. You only need to hire them. This is a forum, not a free service. Value your work. Yes, I'm well aware that you are after shekels. Where other people are happy to help on this forum. 1 Link to comment Share on other sites More sharing options...
Julio Barbosa Posted June 21, 2021 Share Posted June 21, 2021 On 17/06/2020 at 04:41, SeizeTheDay said: Eu não queria que você fizesse isso. Só quero saber quais códigos preciso alterar. então eu disse que posso enviar os arquivos. De qualquer forma, obrigada. Há mais alguém que possa ajudar? Conseguiu fazer o que precisava? Link to comment Share on other sites More sharing options...
Mikael Mortensen Posted February 24, 2023 Share Posted February 24, 2023 (edited) I did the following on 1.7.8.8: Open file /themes/classic/templates/catalog/listing/product-list.tpl change: {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-12 col-sm-6 col-xl-4"} to {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-4"} AND In the file: themes/classic/templates/catalog/_partials/productlist.tpl change {if !empty($productClass)}{$productClass}{else}col-xs-12 col-sm-6 col-xl-4{/if}{/capture} to {if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture} That worked for me. Best regards, Mikael Edited February 24, 2023 by Mikael Mortensen (see edit history) 2 Link to comment Share on other sites More sharing options...
bartzmc Posted March 18, 2023 Share Posted March 18, 2023 (edited) Hello, I'm using 8.0.1 version with classic theme and it doesn't work. Can it be done just with css? Edited March 18, 2023 by bartzmc (see edit history) Link to comment Share on other sites More sharing options...
daninapoli Posted May 4, 2023 Share Posted May 4, 2023 On 24/2/2023 at 1:19 PM, Mikael Mortensen dice: I did the following on 1.7.8.8: Open file /themes/classic/templates/catalog/listing/product-list.tpl change: {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-12 col-sm-6 col-xl-4"} to {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-4"} AND In the file: themes/classic/templates/catalog/_partials/productlist.tpl change {if !empty($productClass)}{$productClass}{else}col-xs-12 col-sm-6 col-xl-4{/if}{/capture} to {if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture} That worked for me. Best regards, Mikael Ha funzionata anche a me... che tu sappia è possibile modificare il modulo nuovi prodotti e prodotti popolari nello stesso modo ? Link to comment Share on other sites More sharing options...
RikMK Posted May 5, 2023 Share Posted May 5, 2023 On 2/24/2023 at 1:19 PM, Mikael Mortensen said: I did the following on 1.7.8.8: Open file /themes/classic/templates/catalog/listing/product-list.tpl change: {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-12 col-sm-6 col-xl-4"} to {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-6 col-xl-4"} AND In the file: themes/classic/templates/catalog/_partials/productlist.tpl change {if !empty($productClass)}{$productClass}{else}col-xs-12 col-sm-6 col-xl-4{/if}{/capture} to {if !empty($productClass)}{$productClass}{else}col-xs-6 col-xl-4{/if}{/capture} That worked for me. Best regards, Mikael Thank you, works. Reminder for others: copy those files and paste them in your child theme folder to save after updates. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 16, 2023 Share Posted May 16, 2023 On 4/5/2023 at 1:18 PM, daninapoli dice: Ha funzionata anche a me... che tu sappia è possibile modificare il modulo nuovi prodotti e prodotti popolari nello stesso modo ? In teoria dovrebbe già funzionare così perché entrambi i file (/catalog/listing/best-sales.tpl e /catalog/listing/new-products.tpl) richiamano sempre lo stesso file: /catalog/listing/product-list.tpl Link to comment Share on other sites More sharing options...
MONASHOP Posted August 26, 2023 Share Posted August 26, 2023 @bartzmc I'm using 8.0.1 then it's working. You did an error for sure, read the instruction and do it again. Link to comment Share on other sites More sharing options...
vinzo Posted April 25, 2024 Share Posted April 25, 2024 not working please help i read and do the same instruction again and again with no changes . prestashop 8.1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted April 26, 2024 Share Posted April 26, 2024 Have you cleared cache? Link to comment Share on other sites More sharing options...
vinzo Posted April 27, 2024 Share Posted April 27, 2024 YES ALL THE STEPS Link to comment Share on other sites More sharing options...
vinzo Posted May 1, 2024 Share Posted May 1, 2024 help please guys i still have the same problem i cant make it work Link to comment Share on other sites More sharing options...
daninapoli Posted May 4, 2024 Share Posted May 4, 2024 On 1/5/2024 at 4:25 PM, vinzo dice: help please guys i still have the same problem i cant make it work non ha funzionato con la modifica che ho fatto io ? Link to comment Share on other sites More sharing options...
mk2-pronat Posted May 8, 2024 Share Posted May 8, 2024 On 5/1/2024 at 5:25 PM, vinzo said: help please guys i still have the same problem i cant make it work Hello, It is so silly that PrestaShop doesn't have this feature but anyway, this worked for me. You also need to fiddle around with paddings and margins to make it right but if you are familiar with the browser console, you should be able to select specific items you want to adjust. The good thing about this is that you don't need to edit any core files to make it work, you can just add the css to the Theme Editor in back-office. @media only screen and (max-width: 600px) { .products.row > .col, .products.row > [class*="col-"] { padding: 0rem; max-width: 50%!important; } Hope this helps you. 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