You are here:  » long descriptions

Support Forum



long descriptions

Submitted by Diana on Wed, 2007-09-12 22:56 in

First off, love your product!!

Descriptions are cut off at the 255 char limit. Is there a way allow longer descriptions? I tried changing the field to "text" to get around the 255 limit, but it displays a one long block with no formatting.

I thought of dividing text and placing some in an extra field, but I don't know how I would divide the desc fields "en mass". Obviously would not want to divide 1000's of desc individually.

Also the html in the descriptions is not being recognized, although I have noticed that category names with "&" instead of & display wrong.
ie, Coffee____ Espresso Accessories instead of Coffee & Espresso Makers. I think a search and replace will fix that , but any ideas on how to get the html to function? Such as <li> <p> ect.
Thanks, Diana

Submitted by support on Thu, 2007-09-13 09:28

Hello Diana,

Thank you for your comments.

The description is only limited to 255 on the serch results page. On the product page, the full description should be displayed. If you want to remove the limit on the search results page, have a look in html/searchresults.php where you will find the following code on line 17:

<p><?php print substr($product["description"],0,250); ?></p>

...and simply change this to:

<p><?php print $product["description"]; ?></p>

To enable HTML in the description field, look for the following code on line 161 of includes/admin.php

$record[$admin_importFeed["field_description"]] = strip_tags($record[$admin_importFeed["field_description"]]);

If you remove this line (or just comment it out), HTML will be allowed in the description. I would recommend that you check the HTML that is present in your descriptions as merchants are well known to include deep links to their website that will bypass your affiliate link if you're not careful!

Hope this helps,
Cheers,
David.