Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Gaining control over header menu

    I am modifying my cart (v1.3.8) to add control over which top-level categories' links show in the header menu.

    So far I've:
    • added a column to the categories table called 'menu_status', which will have a value of 1 or 0.
    • edited the sql query in the header that retrieves the top-level categories to build the header links menu
    • edited the admin/categories.php file to show a radio group (modeled after another radio group on that page) while action='edit_category', but they do not work yet


    At this point I can manually edit the db 'menu_status' value 1 or 0 and control which categories show links in the header.

    So my question - where are the sql queries for admin/categories.php that select and update a category when editing?

    Thanks very much!

  2. #2
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Got this working! I now have full control over which top-level categories display in the header menu. Control is from simple red/green buttons (like Category/Product Status) in the Categories/Products table in the ACP. If anyone is interested in this code, please PM me and I'll get you the instructions.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Gaining control over header menu

    It would be VERY NICE to see some in-depth detail here... Look at how "popular" your post is...
    20 years a Zencart User

  4. #4
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by schoolboy View Post
    It would be VERY NICE to see some in-depth detail here... Look at how "popular" your post is...
    I'd be happy to answer any questions I can, but I don't know how 'popular' the thread is, you are the only other person to post in it!
    In the screenshot below, you can see the Header Navigation Menu, which ZC normally populates with all your top-level categories. I added a new column to the 'Categories - Top' page in the admin with buttons that control if each category will display in the header nav menu. Note that if the regular 'Category Status' is off, it will act as it did before and not display in the menu.


    [SCR]http://www.bassface3d.com/uploads/headercontrol.jpg[/SCR]
    Last edited by Kim; 17 Nov 2009 at 02:58 AM. Reason: additional information added

  5. #5
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Gaining control over header menu

    Definitely interested in this! Could you please post the step-by-step? This would be worth packaging up for the contributions section. Thanks for sharing!!

    Zen Cart and it's community are the best!!

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    I have to agree, this would make a good add-on module.

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    I'd be happy to answer any questions I can, but I don't know how 'popular' the thread is, you are the only other person to post in it!
    ... but nearly 1000 have looked at it...

    (Almost better results than an "adult" site ! )
    20 years a Zencart User

  8. #8
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by lankeeyankee View Post
    Definitely interested in this! Could you please post the step-by-step? This would be worth packaging up for the contributions section. Thanks for sharing!!
    Working on making this a contribution; turning text into language constants and writing up install instructions. Stay tuned....

  9. #9
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Could someone give this a try before I submit it as a Contribution and post back here with their results?

    HeaderMenuControl.zip

    Thanks!

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    Could someone give this a try before I submit it as a Contribution and post back here with their results?

    HeaderMenuControl.zip

    Thanks!
    You've only provided one file to be uploaded.

    As a general rule you should provide ALL the files necessary for the mod to work.
    • admin/categories.php
    • admin/includes/modules/category_product_listing.php
    • admin/includes/languages/english/extra_definitions/header_menu_control.php
    • includes/modules/categories_tabs.php

    (Just make sure you've add comments to the changed files where you made the edits:
    //BOF header menu control

    //EOF header menu control

    provide the necessary sql file (header_menu_control.sql)

    Make sure you note in the readme.txt file that the mod does overwrite 3 core files.

    Make sure you include an install.txt file with the mod. (this is in addition to the html files

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 Control over layout of attributes?
    By Naldinho in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 27 Apr 2013, 10:15 PM
  2. Header Menu Control (Category Tabs)
    By iddy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Jun 2010, 04:39 PM
  3. Control over products
    By illuvatar in forum Managing Customers and Orders
    Replies: 0
    Last Post: 27 Jun 2006, 06:58 PM

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