Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Contact us Page on NavCatTabs

    I want the categories, then Contact us page at the end of category tabs at the top. Is that possible to do?

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

    Default Re: Contact us Page on NavCatTabs

    Add this to the bottom of the /includes/modules/categories_tabs.php file
    (if there's a ?> at the end of the file, put this before it) :

    Code:
    $links_list[] = '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a> ';
    .

    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
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    Wow, it works! Thank you!

  4. #4
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    One last thing:

    So I have 'Contact Us' now on the end of NavCatTabs. However, when I go in there, The link for it at the top does not show as active. For example, all the other category links in NavCatTabs are bold when active, except Contact Us.

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

    Default Re: Contact us Page on NavCatTabs

    Add another line of code above that to set $new_class to whatever class you want it to use to denote that it's selected, like this:

    Code:
    if ($current_page_base == FILENAME_CONTACT_US) $new_class = 'category-subs-selected';
    Change the class name to suit however you've customized your site.
    .

    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.

  6. #6
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    So it will be:
    Code:
    #category-subs-selected { font-weight: bold; }
    in CSS to make the word "Contact Us" bold?

  7. #7
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    This did not work for me to make it as active:

    Quote Originally Posted by sle39lvr View Post
    So it will be:
    Code:
    #category-subs-selected { font-weight: bold; }
    in CSS to make the word "Contact Us" bold?

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

    Default Re: Contact us Page on NavCatTabs

    Try this variation in the PHP code. Shouldn't require any CSS change to make it work, although you can certainly restyle the CSS if you wish to change the appearance:

    Code:
    $span_class = ($current_page_base == 'contact_us') ? 'category-subs-selected' : 'category-subs-unselected';
    $links_list[] = '<a class="category-top" href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . '<span class="' . $span_class . '">' . BOX_INFORMATION_CONTACT . '</span></a> ';
    .

    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.

  9. #9
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    Works perfectly! Thank you!!

  10. #10
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Contact us Page on NavCatTabs

    Quote Originally Posted by DrByte View Post
    Try this variation in the PHP code. Shouldn't require any CSS change to make it work, although you can certainly restyle the CSS if you wish to change the appearance:

    Code:
    $span_class = ($current_page_base == 'contact_us') ? 'category-subs-selected' : 'category-subs-unselected';
    $links_list[] = '<a class="category-top" href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . '<span class="' . $span_class . '">' . BOX_INFORMATION_CONTACT . '</span></a> ';
    Since this worked perfectly for Contact Us, How can I do the same for Home link ?

 

 

Similar Threads

  1. Removing default contact info on contact us page/adding form to page
    By haggis0929 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Dec 2009, 06:41 PM
  2. Contact us page with multiple contact choices?
    By plymgary1 in forum General Questions
    Replies: 1
    Last Post: 19 Aug 2009, 12:07 PM
  3. Contact US page + One more Contact FORM :blink:
    By Orange Wacko in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Jul 2009, 10:29 PM
  4. Replies: 2
    Last Post: 13 Jul 2006, 11:25 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