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
It would be best if you post your site url here, so that I can take a look and help you out.
It would be best if you post your site url here, so that I can take a look and help you out.
Just sent you an PM
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>
Great work lieult!!
Thanks you very much!!
This question is now closed