Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! I need somebody, Help!


yaniv14

Recommended Posts

Hi,

 

I am using a modified template and I am trying to change on the header that instead of having aboutus or contact us, to have a link to Mens or Women (this is clothing site).

 

I know how to add more pages but I am not looking to add pages just a link instead.

 

all I need is that when I press the button it will direct me to: http://mydomain.com/index.php?cPath=23

 

this is how my header look like (only part of it, the part that i need to change):

 

 

<li class="menu_item <?php if ($tab_sel == tep_href_link(FILENAME_REVIEWS)) echo "selected"?>" onClick="document.location='<?php echo tep_href_link(FILENAME_REVIEWS);?>'"><?php echo tep_draw_menu_top()?><a><?php echo MODULE_BOXES_REVIEWS_BOX_TITLE?></a><?php echo tep_draw_menu_bottom()?></li>

<li class="menu_item <?php if ($tab_sel == tep_href_link(FILENAME_ABOUTUS)) echo "selected"?>" onClick="document.location='<?php echo tep_href_link(FILENAME_ABOUTUS);?>'"><?php echo tep_draw_menu_top()?><a>מי אנחנו</a><?php echo tep_draw_menu_bottom()?></li>

<li class="menu_item <?php if ($tab_sel == tep_href_link(FILENAME_CONTACT_US)) echo "selected"?>" onClick="document.location='<?php echo tep_href_link(FILENAME_CONTACT_US);?>'"><?php echo tep_draw_menu_top()?><a><?php echo MODULE_BOXES_INFORMATION_BOX_CONTACT?></a><?php echo tep_draw_menu_bottom()?></li>

 

 

all I want is instead of sending it to filename_aboutus (for example) is to send to the link I mentioned above.

 

 

Thank you.

Link to comment
Share on other sites

Yaniv, I sorry I can't probably help you myself, but if you post what version you are using and what template you have installed there may be someone who can

 

apologies

 

ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Link to comment
Share on other sites

Hi Nick,

 

I purchased that template from super-template.com and they are not the author of the template, they just sell it like template monster but much cheaper.

this is OsCommerce v2.3.1

 

I only what to know how to change:

<li class="menu_item <?php if ($tab_sel == tep_href_link(FILENAME_ABOUTUS)) echo "selected"?>" onClick="document.location='<?php echo tep_href_link(FILENAME_ABOUTUS);?>'"><?php echo tep_draw_menu_top()?><a>About Us</a><?php echo tep_draw_menu_bottom()?></li>

 

to a link.

right now the way it is you press on the button that says "About Us" that located on the top menu [(header) - Home, Contact Us, About Us, Login, Etc....] and it will direct you to the file 'aboutus.php'.

I just need to know how to set it to direct you instead of the php file to a link. I tried to put instead of "document.location='<?php echo tep_href_link(FILENAME_ABOUTUS),?> ----> "document.location='<a href="http://mydomain.com/index.php?cPath=23"</a>' ".

 

But its not working.

 

Please try to explain how I add a link inside a php.

 

Thank you

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...