Page 1 of 1

Non aligned 'add to cart' image button

Posted: Wed Mar 14, 2012 10:09 pm
by robynice
Hi, is it possible to fix this issue? Thanks.

Image

Re: Non aligned 'add to cart' image button

Posted: Thu Mar 15, 2012 12:06 am
by inactiveaccount9912
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.

Re: Non aligned 'add to cart' image button

Posted: Thu Mar 15, 2012 3:00 am
by dimko
florinsith wrote:limit the title characters not to go over the height.
Any help with this? :)

Thanks.

Re: Non aligned 'add to cart' image button

Posted: Thu Mar 15, 2012 3:32 pm
by inactiveaccount9912
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.

Re: Non aligned 'add to cart' image button

Posted: Thu Mar 15, 2012 6:34 pm
by dimko
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.