Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Category descriptions appearing twice

Category descriptions appearing twice

Locked

Views: 1,186

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 Aug 2006, 8:22 AM
#1
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Category descriptions appearing twice

Anything typed into the category description field in the admin shows up twice on the site. You can see this happening here:
http://www.preciouspaperie.com/index.php?main_page=index&cPath=7_70

The code says:

<p class="categoriesdescription"><b>Available to ship AUGUST 22nd...pre-order yours today!</b> <div id="indexProductListCatDescription" class="content"><b>Available to ship AUGUST 22nd...pre-order yours today!</b></div>

I can't tell why this is happening...what is the difference between "categoriesdescription" and "indexProductListCatDescription"?

12 Aug 2006, 8:57 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Category descriptions appearing twice

lemuria:

<p class="categoriesdescription"><b>Available to ship AUGUST 22nd...pre-order yours today!</b>

It sounds like you have added the extra <p class="categoriesdescription">.......... section in your template while customizing.
Zen Cart does not contain anything with that class by default, at least not in v1.3.x. And in v1.2.7, that class is only used on table or TD tags, not P tags.

The second instance you mentioned is the one that "should" be showing, and it is generated in your includes/templates/YOURTEMPLATE/tpl_index_product_list.php file.

Perhaps doing a search through all your site's files for the categoriesdescription class would be the best starting point. Then remove the code that generates it, leaving the proper one to do its job.

This may help: http://www.zen-cart.com/forum/faq.php?faq=template_customize#faq_where_to_find_content

14 Aug 2006, 5:26 AM
#3
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: Category descriptions appearing twice

Thank you! I forgot that we customized that template, and we were just echoing the description twice.