Geoc112 Posted September 8, 2020 Share Posted September 8, 2020 Hello, anyone have any idea why on mobile there are blank spaces between products in the listings page ? I am using the sp_shopping theme. Link to comment Share on other sites More sharing options...
Razi Posted September 8, 2020 Share Posted September 8, 2020 This issue is due to discount price, its consume little extra space thats why. you can set this by changing in css. send here site link, we will check the css file and update you. Thanks Link to comment Share on other sites More sharing options...
Geoc112 Posted September 8, 2020 Author Share Posted September 8, 2020 (edited) 8 minutes ago, Razi said: This issue is due to discount price, its consume little extra space thats why. you can set this by changing in css. send here site link, we will check the css file and update you. Thanks The site is alinut.ro Edited September 8, 2020 by Geoc112 (see edit history) Link to comment Share on other sites More sharing options...
Razi Posted September 8, 2020 Share Posted September 8, 2020 find the file 1.7.x Prestashop themes/theme_name/templates/catalog/_partials/miniatures/product.tpl find {$product.name|truncate:25:'...'} and replace with this line <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:25:'...'}</a></h3> Link to comment Share on other sites More sharing options...
Geoc112 Posted September 8, 2020 Author Share Posted September 8, 2020 3 minutes ago, Razi said: find the file 1.7.x Prestashop themes/theme_name/templates/catalog/_partials/miniatures/product.tpl find {$product.name|truncate:25:'...'} and replace with this line <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:25:'...'}</a></h3> Doesn't this just truncate the name of the product to 25 characters ? At the moment i have it truncated to 45 characters. I can't really truncate it to 25 because of the way the products are named. Link to comment Share on other sites More sharing options...
Razi Posted September 8, 2020 Share Posted September 8, 2020 truncate: make the issue, due to long product name the height of product div also increase and the next product div disturb. other solution is increase the all product div height using css 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