Forums / General Questions / Adding a new link on the main menu tabs

Adding a new link on the main menu tabs

Views: 972

Results 1 to 8 of 8
26 May 2014, 2:39 PM
#1
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

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.
Attachment 14106
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 !

26 May 2014, 3:40 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Adding a new link on the main menu tabs

A link to the site would help a lot.

26 May 2014, 5:03 PM
#3
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Adding a new link on the main menu tabs

stevesh:

A link to the site would help a lot.

its https://www.bambino.co.in

27 May 2014, 8:07 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding a new link on the main menu tabs

devyani:

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!
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.

28 May 2014, 1:10 PM
#5
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Adding a new link on the main menu tabs

Thanks, will try it right away !

28 May 2014, 1:19 PM
#6
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Adding a new link on the main menu tabs

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

28 May 2014, 1:20 PM
#7
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Adding a new link on the main menu tabs

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

29 May 2014, 5:13 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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!
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.