LevelTen Web Design | Dallas, TX

Unix

How to keep osCommerce Session ID's on non-store pages.

Solution: 

Instead of using the standard link convetion: <a href="new-page.php">

Use the following format: <a href="<?=tep_href_link('new-page.php')?>">

If you really want to get creative and are looking at SEO specifically you can create custom pages for each product category by copying the index.php page and saving it as new-category-specific-index.php page. This page will function just like the default index.php page in osCommerce, to have the page return only the specific category you need, you'll need to use the following code:
<a href="<?=tep_href_link('new-category-specific-index.php','cPath=28')?>">

Remember to change the cPath=28 to the actual desired category or you'll get all the products.

If you create pages that are not part of the osCommerce engine then they will not carry over the unique session ID, thus dropping items from your shopping cart if you continue to browse.

Syndicate content