Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

losing cart contents from link


Guest

Recommended Posts

Posted

Hi All,

 

i have a info box in which i've placed 3 images (to use as banners to flag up exciting content on the site).

 

The link i'm using is for example:

 

<tr>

<td><?php echo '<a href="' . tep_href_link('index.php?manufacturers_id=1718', '', 'NONSSL','true' ) . '">' . tep_image(DIR_WS_IMAGES . 'image.gif', 'image') . '</a>'; ?>

</td>

</tr>

 

 

This takes me to the correct manufacturers page, but if someone has contents in their basket then its lost.

 

Please help!

Posted

At the end of the url you need to add session id i can remember seeing in a contrbuiton how it was done but cant remember which one or how might be $OSC_custid or $OSC_session

so url in browser will look like this /index.php?manufacturers_id=1718&session_id=4f26c95b4c6eb61b59c53c64459cdfbb

 

or you can turn on force cookies but might give you problems as i had to turn mine off

Posted

Try this instead

<td><?php echo '<a href="' . tep_href_link('index.php','?manufacturers_id=1718', 'NONSSL','true' ) . '">' . tep_image(DIR_WS_IMAGES . 'image.gif', 'image') . '</a>'; ?>

 

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

Archived

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

×
×
  • Create New...