Jump to content

Missing Random Product Blocks


Recommended Posts

Hi

 

I see that some of your product names are holding two lines, and that causes some of your product list lines go down.

 

I suggest either to use shorter product names or to use the truncating function on the product listing. Truncation needs some code modification and basically, it shortens the names after some characters. For example, it replaces a product name of "CLAUDE REMIX 1 MENS- BLACK/GREY" to "CLAUDE REMIX 1 MENS..."

Link to comment
Share on other sites

That's a shame...

 

So, I've tried to change the truncate value in my product-list.tpl in my themes folder, but it doesn't seem to have any affect on the name lengths.

 

Any advice on that?

 

This is the code I'm trying to change...

 

<div class="right-block">

<h5 itemprop="name">
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>
</h5>
{hook h='displayProductListReviews' product=$product}
<p class="product-desc" itemprop="description">
{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
</p>

 

Thanks for your advice so far.

Link to comment
Share on other sites

Sorry! My bad... it was not set to recompile after every change! This has fixed the truncate issue!

 

Ok so that at least fixes the original issue. I just wish there was a way that I didn't have to cut off the product names like that. 

Link to comment
Share on other sites

I did try that also, but unfortunately that just changes the container size relatively equal between all products (title sizes).

 

This is satisfying the client for now! So I'll make this as solved (sorta). 

 

I appreciate the help! Definitely something I'll dive back into at a later date, but this is great for now. Thanks so much!

  • Like 1
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...