Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to link to a product the proper way


Zuncan

Recommended Posts

Hi

 

I was just wondering how to link to a product the proper way?

 

I mean, if I link to a product with just <A HREF=""> the customers lose their session ID and that is not good of course..

 

Please give me a example code.

 

/Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

In osc..the correct way is to use this format:

 

<a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

 

 

if you want to use it in say product descriptions...you can find an excelent contrib here....

Link to comment
Share on other sites

Try this:

<td>
?<?php echo '<a title="Some Text" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=18&products_id=90', 'NONSSL') . '">' . "Some Text" . '</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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...