Errors in some Products Lists

Hello,

I found an error in catalogue and advanced search lists -grid mode- and could not solve:

Different from DEMO site, the first item of second row is align to right and top (alone). Others items of same row is aligned left and below first as show in attached picture:

Attachment 33250
Attachment 33252

Any help, please?

Thanks in advance

4 answers

Profile photo of harper 0.00 $tone January 24, 2014
Public

The problem seems to relate to product titles’s length.
You can open the file app\design\frontend\default\jm_megamalltemplate\c atalog\product\list.phtml and find:

HTML Code:

<h5 class="product-name">
	<a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
							<?php 
								if (strlen($_product->getName()) > 35) :
									echo strip_tags(substr($_product->getName(), 0, 25)).'...';
								else : 
									echo $_product->getName();
								endif;
							?>
	</a>
</h5>

Then change the length value (bstr($_product->getName(), 0, 35))…) from 35 to 40 in code block below:

HTML Code:

<h5 class="product-name">
	<a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">
							<?php 
								if (strlen($_product->getName()) > 40) :
									echo strip_tags(substr($_product->getName(), 0, 35)).'...';
								else : 
									echo $_product->getName();
								endif;
							?>
	</a>
</h5>
#3

This question is now closed

Written By

Comments