Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / line break in product description in category list

line break in product description in category list

Locked

Views: 4,688

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
8 Nov 2008, 7:45 AM
#1
czepp avatar

czepp

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

line break in product description in category list

Lets say i have a category called DVD's with no subcategories.

Now inside of here there are a few products with the following description all with this format...


<BR><font color="#FF6600">Languages:</font> English/Spanish
<BR><font color="#FF6600">Subtitles:</font> None
<BR><font color="#FF6600">Year:</font> 2005
<BR><font color="#FF6600">Discs:</font> 2
<BR>
<BR>
Long description to follow here.

When I click on the individual product, everything looks the way that I intend (with line breaks and fonts), but when the items are listed in the DVD category list, it shows up without the formatting I wanted (no font colors/line -breaks, etc).

Anyone know how to get these line-breaks/fonts/etc to work in the category list?

Thanks!!

8 Nov 2008, 8:56 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: line break in product description in category list

Are you using html area as the editor?

8 Nov 2008, 4:59 PM
#3
czepp avatar

czepp

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: line break in product description in category list

kobra:

Are you using html area as the editor?

Yes. In the admin, I am editing the product from 'Catalog' -> 'Categories/Products'. Then going into my DVD category (type Product -General) and ediitng my test product. In the large textarea 'Products Description', i am entering the html code below...


<BR><font color="#FF6600">Languages:</font> English/Spanish
<BR><font color="#FF6600">Subtitles:</font> None
<BR><font color="#FF6600">Year:</font> 2005
<BR><font color="#FF6600">Discs:</font> 2
<BR>
<BR>
Long description to follow here.

It looks good in the store when I click the individual product. When when the items are listed in the DVD category page, all of my formatting is stipped out.

9 Nov 2008, 3:43 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: line break in product description in category list

Because only a portion of the products_description is displayed, all formatting is stripped as partial formatting will result in errors on the display ...

17 Dec 2009, 8:11 PM
#5
helensama avatar

helensama

New Zenner

Join Date:
Dec 2006
Location:
Northwest Connecticut
Posts:
87
Plugin Contributions:
0

Re: line break in product description in category list

This is an old thread, but it is one of the problems I am having... I understand and see that line breaks are being stripped out of the product description when on the category list page.... Is there any way to not have them stripped? Any work around?

Thanks, Helen

17 Dec 2009, 9:31 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: line break in product description in category list

Search on zen_clean_html for a thread with the instructions. It is very easy to do; you just have to be careful that the description doesn't truncate closing HTML tags, as that would cause problems.