Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2008
    Posts
    9
    Plugin Contributions
    0

    Default Adding descriptions to subcategory listing page

    I am trying to add a snippet of the category description to the subcategory listing page, but I cannot for the life of me find the sql that pulls that in. On the category_row.php page, there is a $category variable with the sub category info in it, but I can't tell which page is building this variable so I can add to it. Please help. Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding descriptions to subcategory listing page

    Not clear what or where you are seeking this??

    A link and additional description would help
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding descriptions to subcategory listing page

    http://www.bestuniformsinc.com/index...index&cPath=67

    This is a category page displaying 3 subcategories. The category description that is normally displayed on the category page after you click the category: I want that description to show up on this subcategory page along with the thumbnail and name. Make sense?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding descriptions to subcategory listing page

    I want that description to show up on this subcategory page along with the thumbnail and name. Make sense?
    No, not really - because I already see 3 sub-cat images and descriptions
    image=category_thumb_commbars.jpg
    Des= Blackinton Commendation Bars
    image = category_thumb_designabadge.jpg
    des = Blackinton Design-A-Badge
    img = blackinton_quick_ship_category_thumb.jpg
    des = Blackinton Quick Custom Badges
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding descriptions to subcategory listing page

    No, those "descriptions" you are seeing are the category name, not the "description". If you click on Blackinton Quick Custom Badges, you will see the "description" that I am talking about underneath the category title and before the products. Looks something like this:

    # Choose from 13 select Blackinton badge styles
    # Customize your lettering, finish and center seal
    etc...

    I would like this description to show up on the previous subcategory listing page. Make more sense now?

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Adding descriptions to subcategory listing page

    What you're looking for happens in /includes/modules/pages/index/main_template_vars.php starting at line 76. The SQL statements currently don't pull the categories' description.

  7. #7
    Join Date
    Oct 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding descriptions to subcategory listing page

    Thank you lat9. That is what I needed.

  8. #8
    Join Date
    Oct 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding descriptions to subcategory listing page

    One more question. Can you use the overide system somehow for this page?

    I created a folder within the modules/mytemplate/pages/index/main_template_vars.php and a folder within modules/pages/index/mytemplate/main_template_vars.php and neither worked. Only modifying the modules/pages/index/main_template_vars.php seemed to work.

    Thanks.

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Adding descriptions to subcategory listing page

    I found the following link via Google that provides an override method to allow overrides of the page-specific main_template_vars.php file(s):

    http://www.zen-cart.com/forum/showthread.php?t=69895

  10. #10
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Adding descriptions to subcategory listing page

    I'm running v1.3.9h
    My test site is at: http://fixyourprofile.com/fasteners/

    I would like to have category descriptions displayed on subcategories. I would like the descriptions for "tapping screws", etc. to appear next to the subcategory pictures on this page (and all subcategory pages): http://fixyourprofile.com/fasteners/threaded-products

    The only add-on I have installed is Ceon URI Mapping (SEO).

    Thanks in advance.

    Sean
    +<|:-)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Skip subcategory link and list all subcategory products as product listing
    By ellivir in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2010, 05:06 PM
  2. add descriptions under each subcategory on subcategory index?
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Oct 2009, 09:25 PM
  3. Eliminating subcategory listing page
    By threddies.com in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 May 2009, 06:31 PM
  4. How can i edit subcategory listing page?
    By wdh in forum Customization from the Admin
    Replies: 15
    Last Post: 2 Feb 2008, 11:18 PM
  5. Subcategory Listing Page Alignment
    By TurtleDove in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2006, 12:30 AM

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