Guest Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
leeherron Posted April 4, 2003 Share Posted April 4, 2003 Here's a recent Thread with notes regarding this issue -- still waiting on a response from anyone on the team. Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
CordesOwen Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
Guest Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
Guest Posted April 5, 2003 Share Posted April 5, 2003 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 More sharing options...
Guest Posted April 5, 2003 Share Posted April 5, 2003 Well.....I'd say if it ain't broke, don't fix it. :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.