Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Q; about SID and custom LINKs


Guest

Recommended Posts

I have created custom links in product_info.php above and under my products description, for Actors, Directors ect. (DVD Store).

 

My problem - I thought I read somewhere a while back that new links need to be defined in (application top or english files - not important at the moment) because if you dont! and place a standard HTML link on a page it can break the SID or shopping cart contents if the guest customer clicks the link while shopping?

 

My question is: Can I safely use a custom link like this:

 

<a href="actors.php?starring=<?php echo $product_info['products_st1']; ?>">CLICK HERE</a>

 

or do I need hyperlinks to be defined SOMETHING like this example:

 

<a href="<?php echo tep_href_link(FILENAME_PRODUCT_ACTORS) '?starring=' <?php echo $product_info['products_st1']; ?>">CLICK HERE</a>

 

I cant tell because Im always on my store, I have cookies on my PC and I cant see the SID anymore.

 

I want to do it right.

 

Cheers Lee

Link to comment
Share on other sites

You need to use the tep_href_link() so that you do not lose your session id.

 

You can see the results dramatically if you add an item to you cart and then click on a non- tep_href_link().....the items in the cart will be lost.

 

BTW......Don't forget, you can turn your browsers cookies on and off for testing.

Link to comment
Share on other sites

I am trying to call a session variable inside of two classes but neither one of them work. Am just going crazy?

 

All of the other pages that I have it on it works fine and I am calling it the same way.

 

I did not use the included session class when I created my session variable. is this my problem?

 

I have been calling it successfully by just accessing it normally like:

$shopping_status

 

Please help. :oops:

 

- Cordes

Link to comment
Share on other sites

I am trying to call a session variable inside of two classes but neither one of them work. Am just going crazy?

 

All of the other pages that I have it on it works fine and I am calling it the same way.  

 

I did not use the included session class when I created my session variable.  is this my problem?

 

I have been calling it successfully by just accessing it normally like:

$shopping_status

 

Please help.  :oops:  

 

- Cordes

 

 

What???????? :?

Link to comment
Share on other sites

Can I use a Javascript History Button Link, with-out killing the SID?

 

 

<a href="#" onClick="history.go(-1)">Back</a>

 

 

I have written this into my page, and disable and deleted old cookies and its seems to work ok! - my shopping cart does not loose its contents or break the SID.

 

or should it be intergrated into a "tep_href_link"

some how? i had no luck with that..

 

thanks I just had to ask...

 

Lee.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...