yaniv14 Posted October 26, 2011 Posted October 26, 2011 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.
kenkja Posted October 26, 2011 Posted October 26, 2011 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
♥toyicebear Posted October 26, 2011 Posted October 26, 2011 Contact your template supplier for support. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
yaniv14 Posted October 26, 2011 Author Posted October 26, 2011 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.