Post by robynice » Wed Mar 14, 2012 10:09 pm

Hi, is it possible to fix this issue? Thanks.

Image

New member

Posts

Joined
Mon Feb 13, 2012 9:33 am
Location - ITA

Post by inactiveaccount9912 » Thu Mar 15, 2012 12:06 am

Its normal , since the product name may differ. You could fixate the height for the product name div and limit the title characters not to go over the height.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by dimko » Thu Mar 15, 2012 3:00 am

florinsith wrote:limit the title characters not to go over the height.
Any help with this? :)

Thanks.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am

Post by inactiveaccount9912 » Thu Mar 15, 2012 3:32 pm

In controllers(catalog/controller/product/category.php, search.php, manufacturer.php, special.php , and module/latest , featured, bestseller, special) , find the line

Code: Select all

					'name'        => $result['name'],
replace it with:

Code: Select all

					'name'        => mb_substr($result['name'], 0, 50) . '..',
change the number of characters to fit your needs.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by dimko » Thu Mar 15, 2012 6:34 pm

Ok, you meant by dong that :) I thought there's some automatic way, like automatically truncating the length, according to the div's height :)

Thanks buddy.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am
Who is online

Users browsing this forum: No registered users and 18 guests