msg82256 Posted April 1, 2006 Posted April 1, 2006 My header has links for CART, CHECKOUT and MY ACCOUNT. I want to add a few links to pages that are outside of my website, and one to a top level Homepage. For the life of me, I can't find a posting that explains how to do this. Any help is appreciated.
Jack_mcs Posted April 1, 2006 Posted April 1, 2006 You just use regular html: <tr> <td><a href="http://some_url.com>Home<?a></td> </tr> It is not recommended to do so since you are apt to lose the session ID's. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
msg82256 Posted April 1, 2006 Author Posted April 1, 2006 You just use regular html:<tr> <td><a href="http://some_url.com>Home<?a></td> </tr> It is not recommended to do so since you are apt to lose the session ID's. Jack I tried inserting your code with my own url but keep getting a parse error. Can I insert the html right into the line in header.php (right around line 58). Here is the line of code that I'm trying to add my link to: <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> Thanks
Jack_mcs Posted April 1, 2006 Posted April 1, 2006 When you insert html code into php code you have to precede the html code with ?> and place this after the html code <?php Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
msg82256 Posted April 1, 2006 Author Posted April 1, 2006 When you insert html code into php code you have to precede the html code with ?> and place this after the html code <?php Jack hmmm..... still not working, this is the code as I tried to add it....my insert is in red. Any idea why I.m still getting the parse error??? Thanks a lot. MG <td align="right" valign="bottom"> <tr> <td>?><a href="http://some_url.com>Home<?a><?php</td> </tr> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td>
msg82256 Posted April 1, 2006 Author Posted April 1, 2006 Of course I changed some_url.com to my own link pictureh.com
Jack_mcs Posted April 1, 2006 Posted April 1, 2006 Try this <td align="right" valign="bottom"> <a href="http://some_url.com>Home</a> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.