Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I hyperlink to a hyperlink!?


charmed-imsure

Recommended Posts

On my front page I have the Welcome guest would you like to log yourself in bit. I've made 3 buttons now, 1 for log in, 1 for create account & 1 for log out. How do I get those images to display & hyperlink them to the log in/log out/create account respectively? I'm guessing I need to write script to make the images display which will be written as a hyperlink, but how do I hyperlink that hyperlink?

 

Confused much? Me too!!!

Link to comment
Share on other sites

On my front page I have the Welcome guest would you like to log yourself in bit. I've made 3 buttons now, 1 for log in, 1 for create account & 1 for log out. How do I get those images to display & hyperlink them to the log in/log out/create account respectively? I'm guessing I need to write script to make the images display which will be written as a hyperlink, but how do I hyperlink that hyperlink?

 

Confused much? Me too!!!

 

Standard oscommerce does exactly this in includes/header.php about line 58.

Link to comment
Share on other sites

Standard oscommerce does exactly this in includes/header.php about line 58.

 

I see, I paid someone to set this site up for me but they completely trashed it & so I had to start again. Loads of things got removed that I didn't want removing so I can't see that line 58.

 

I just want to add my own little button that links to the respective php file. I don't actually want it in the header, I want it on the main page includes/languages/english/index.php

Just need to know how to write it!

Link to comment
Share on other sites

Here is the full code

 

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

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Here is the full code

 

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

 

Not sure that's the right thing... that's all my account & cart contents.

 

I have the standard "Welcome guest, would you like to log yourself in or create an account?" displaying. I've actually made 3 buttons, one to log in, one to create account, one to log out. So instead of dislaying that text above, it shows 3 buttons & you can click on them to point to it's respective title. They'd also need to be central & an equal distance apart (just to make it more fussy!!!).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...