Jump to content

Blank spaces in product listings


Geoc112

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...