Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

maintaining session id within product description


MCousin76

Recommended Posts

I am trying to add a page link within one of my product descriptions but whenever i try and add the different types of links listed below, they don't work. The only link that actually works does not maintain the session id.

 

Does anyone know how to create a link to another page inside a product description that holds the session id?

 

LINKS THAT I'VE TRIED THAT DO NOT WORK:

. <a href="<?php echo tep_href_link(FILENAME_GUIDELINE_TEMPLATES); ?>">Guideline Templates</a>

. <A href="' . tep_href_link(FILENAME_GUIDELINE_TEMPLATES) . '">Guideline Templates</A>

 

LINK THAT DOES WORK BUT DOES NOT HOLD THE SESSION ID

. <a href="guideline_templates.php">Guideline Templates</a>

Link to comment
Share on other sites

If you put this at the top of guideline_templates.php:

 

  require('includes/application_top.php');

You should retain the session ID.

 

If you're unsure of it's placement in the code, just look at other PHP files used by osC on your site.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If you put this at the top of guideline_templates.php:

 

  require('includes/application_top.php');

You should retain the session ID.

 

If you're unsure of it's placement in the code, just look at other PHP files used by osC on your site.

Jim,

 

Is it possible to use this technique to link to another product description page?

 

Thanks,

Ron

"Outside of a dog, a book is man's best friend.

Inside of a dog, it's too dark to read."

 

GROUCHO (1895-1977)

Link to comment
Share on other sites

I don't folllow exactly what you mean.

:huh:

 

You should only need to do this on PHP pages you've inserted into the osC code that weren't there to begin with.

 

All the osC pages already have this (so they don't lose the session ID among other reasons).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...