PrS Posted July 22, 2019 Share Posted July 22, 2019 Hello, I am looking for a way to display a products attributes on the product listing page. for eg. show all available sizes of my product on product listing page and user can select any size from product listing too. Thanks for any kind of help Link to comment Share on other sites More sharing options...
Simonas Invertus Posted July 23, 2019 Share Posted July 23, 2019 There are a lot of modules that do that: E.g. https://addons.prestashop.com/en/combinaisons-customization/26567-attribute-in-product-list-simple.html https://addons.prestashop.com/en/combinaisons-customization/31071-show-combinations-or-product-attributes-in-product-list.html https://addons.prestashop.com/en/combinaisons-customization/28389-show-combination-product-attribute-list.html And there are more https://addons.prestashop.com/en/search?search_query=attributes in product list Link to comment Share on other sites More sharing options...
stevensf Posted May 28, 2020 Share Posted May 28, 2020 why everybody says "buy a module" each time we ask something !!! 3 Link to comment Share on other sites More sharing options...
Daresh Posted February 5, 2021 Share Posted February 5, 2021 (edited) Actually you can do it without a module - Prestashop already displays colors on product listing, so all we need to do is to change this into sizes. You need to know ID of your sizes attribute group, having that (example for the classic theme): 1. put the attached Product.php file into override/classes 2. in that file, replace ATTR_GROUP_ID in line 22 with ID of your attribute group responsible for sizes (for example 1) 3. modify \themes\classic\templates\catalog\_partials\variant-links.tpl to show variant name (also see attached file) 4. clear the cache and you should be done Product.php variant-links.tpl Edited February 5, 2021 by Daresh (see edit history) 4 1 Link to comment Share on other sites More sharing options...
sandra nanou Posted February 14, 2022 Share Posted February 14, 2022 Hi, Do you think it's possible to display the colors and another attribute? I tried to change your code (thanks for that) @Daresh but could not manage to find a solution. Thanks! Link to comment Share on other sites More sharing options...
Daresh Posted February 15, 2022 Share Posted February 15, 2022 Rather hard, it's for one attribute. Link to comment Share on other sites More sharing options...
dn-graphisme Posted September 13 Share Posted September 13 Hello @Daresh its possible to reupload yours modifications please ? Thanks in advance for your help :) Link to comment Share on other sites More sharing options...
Daresh Posted September 13 Share Posted September 13 I see them still here. 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