Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Adding a new link on the main menu tabs

    Hi,

    The person whose help I was taking to code my main page has left, and I need to make an urgent change in the menu tab on main page.
    Name:  main tab.jpg
Views: 62
Size:  16.6 KB
    The tab option to change is "Coming Soon". Using developer toolkit ( thank God for this tool -- its my lifeline ! ) I have found that it is defined in tpl_drop_menu.php as :

    <li class="submenu" style="background-color:#ffe103;"><a href="<?php echo zen_href_link(FILENAME_OFFERS); ?>"><?php echo HEADER_TITLE_OFFERS; ?></a></li>

    But there is no other mention of this constant - FILENAME_OFFERS anywhere. I am assuming this person never defined it.
    I want to link this to a category ( its main category ) - FREE GIFTS.

    How do I do it?

    Any help ??

    Thanks !

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,537
    Plugin Contributions
    3

    Default Re: Adding a new link on the main menu tabs

    A link to the site would help a lot.

  3. #3
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Adding a new link on the main menu tabs

    Quote Originally Posted by stevesh View Post
    A link to the site would help a lot.
    its www.bambino.co.in

  4. #4
    Join Date
    Jan 2004
    Posts
    60,305
    Blog Entries
    4
    Plugin Contributions
    51

    Default Re: Adding a new link on the main menu tabs

    Quote Originally Posted by devyani View Post
    But there is no other mention of this constant - FILENAME_OFFERS anywhere. I am assuming this person never defined it.
    I want to link this to a category ( its main category ) - FREE GIFTS.

    How do I do it?
    Well, you said you want to point it to a CATEGORY, so you would NOT define FILENAME_OFFERS at all.

    Change zen_href_link(FILENAME_OFFERS) to zen_href_link(FILENAME_DEFAULT, 'cPath=555')

    (replacing 555 with whatever category your "free gifts" category is)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



  5. #5
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Adding a new link on the main menu tabs

    Thanks, will try it right away !

  6. #6
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Adding a new link on the main menu tabs

    It worked !
    will you have the time to explain what does zen_href_link() do ?
    I can use this information :)

  7. #7
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Adding a new link on the main menu tabs

    It worked !
    will you have the time to explain what does zen_href_link() do ?
    I can use this information :)

  8. #8
    Join Date
    Jan 2004
    Posts
    60,305
    Blog Entries
    4
    Plugin Contributions
    51

    Default Re: Adding a new link on the main menu tabs

    zen_href_link prepares the http:// your_site.com/index.php?main_page=xxxxxxxxx correctly for your pages
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



 

 

Similar Threads

  1. Adding a link to the Admin Menu
    By MartynG in forum Basic Configuration
    Replies: 3
    Last Post: 10 Dec 2010, 11:11 AM
  2. How do make the main menu tabs into images?
    By adem.i in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Jul 2010, 04:46 AM
  3. Limiting the number of category tabs on the top menu
    By pedleyonline in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Mar 2010, 04:16 PM
  4. Adding link to main menu with different formatting
    By toothpickdog in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 14 Oct 2009, 12:39 PM
  5. The ‘All Products ...’ link does not work / Adding a link on the Main Page
    By lancebotha in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2006, 01:03 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
  •