Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Easy linking question - I bet you know!


Recommended Posts

Hey guys I'm a noob and this is my first cart. OK I have read through TONS of posts and online materials and could not find a solution, but it seems so easy!


The problem: I wrote a couple HTML pages to go in the user defined htmlareas like the mainpage. Now I want to link to a category with an image. No problem, BUT when when I do the cart is emptied? What am I doing wrong?


I've tried switching the links from absolute links to relative links:






and even




but the cart is still emptied??


Suggestions? Comments? Please help!


Thanks in advance.

Link to comment
Share on other sites

it sounds like it is losing the session. You can't use hardcoded links - links need to be created dynamically so they include the session ID.


An example:

<?php echo '<a href="' . tep_href_link('mypage.php') .'">My page</a>'; ?>




<a href="<?php echo tep_href_link('mypage.php'); ?>">My page</a>

Link to comment
Share on other sites

Thank you so much!!


This one:


<a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . '21_32_67'); ?>"> See PRODUCT 5100B</a>


That I found on another thread actually did the trick!


Now how would I go about showing search results in a link like this? For example I if I wanted to show all of a certain kind of product under a single link from the homepage htmlarea?

Link to comment
Share on other sites

Does anyone have any ideas?


I know this is possible I just am having an issue figuring it out. :(



1. How would I insert a link on the homepage HTMLarea to search results?


2. How can I insert a link from one product to another product?



As perfectpassion was kind enough to point out they have to be dynamic links and not hard coded as the shopping cart will empty!


Any help is much appreciated!

Link to comment
Share on other sites


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

  • Create New...