- Priority: 0
- Status: Queued
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 01.12.26, 20:38
- Opened by: Nicu Mihalcescu
Ticket #26571 - Columns Switcher
Hello
We are using Alysum 9.4.2 with PrestaShop 8.2.1.
We have encountered an issue with the Columns Switcher on Product Listing pages.
The Columns Switcher buttons ( 3, 4, 5 and 6 columns) are displayed correctly, and clicking them updates the corresponding classes on the #products element (view_grid2, view_grid3, etc.).
However, the product grid does not display the selected number of columns. The layout continues to use automatic column calculation instead of respecting the selected view.
We investigated the generated CSS and found the following rule in:
modules/pkthemesettings/views/css/dynamic/generatedcss1.css
#main-content #products:not(.view_list) .product_list .grid-container {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
We also found column-specific rules in product-listing.css, but they do not correctly control the actual .grid-container layout.
Temporary workaround
We managed to make the Columns Switcher work correctly by adding the following custom CSS:
@media (min-width: 992px) {
body #main-content #products.view_grid2 .product_list .grid-container {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
body #main-content #products.view_grid3 .product_list .grid-container {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
body #main-content #products.view_grid4 .product_list .grid-container {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
body #main-content #products.view_grid5 .product_list .grid-container {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
body #main-content #products.view_grid6 .product_list .grid-container {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
}
With this CSS, all five buttons work as expected and display exactly the selected number of columns on desktop screens (992px and above).
Our Product Listing settings are:
Product Listing: Grid
Columns Switcher: Enabled
Max Product Item Width: 200px
Products Gap: 40px
We noticed that the Alysum 9.4.2 changelog specifically mentions:
“Theme: fixed columns switcher on Product Listing pages.”
Could you please investigate why the Columns Switcher is still not working correctly in our installation?
Thank you.
Comments
No comments yet