Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default 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...dex&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"?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Category descriptions appearing twice

    Quote Originally Posted by 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.ph...o_find_content
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default Re: Category descriptions appearing twice

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

 

 

Similar Threads

  1. contact details appearing twice
    By aiss in forum Customization from the Admin
    Replies: 1
    Last Post: 10 Oct 2007, 06:01 AM
  2. Manufacturers List appearing twice
    By finkdawg5 in forum Basic Configuration
    Replies: 1
    Last Post: 1 Sep 2007, 10:22 PM
  3. Products appearing twice in search
    By Rasputin in forum General Questions
    Replies: 8
    Last Post: 12 May 2007, 06:02 AM
  4. search_header.php appearing twice?
    By Fred9V in forum Basic Configuration
    Replies: 5
    Last Post: 28 Dec 2006, 11:58 PM
  5. Create Account - Same Alert Message Appearing twice
    By Stenrique in forum General Questions
    Replies: 4
    Last Post: 28 Nov 2006, 10:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR