bigko Posted February 28, 2004 Posted February 28, 2004 Hi I am experiencing a problem with integrating my website with OS Commerce. Everything is built the way on my website and in OS Commerce the way I would like it. The only problem is that when someone adds something to the shopping cart, and clicks on the continue shopping button (I have it linking back to the website home page) and then adds something to the shopping cart, the previous item is gone...due to the user was assigned a new osCid. Can someone please give me some advice? The code before was <?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php <?php echo '<a href="http://www.domain.com/home.html">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php Is there a way of using the link to my home page with php code that will keep the session #? Thanks!
Guest Posted February 28, 2004 Posted February 28, 2004 The simplest way (IMO) is to build outside pages using one of the "blank" oscommerce files such as conditions.php as a basis, and using native osCommerce link and image functions to maintain your session - you will need to sprinkle a little PHP with your HTML :P For simplicity, I would install osCommerce in your root directory (no catalog directory) and rename index.php (both!) to something else, remembering to redefine it in filenames.php - you can call it what you like this way. Then you are free to create your own index and sub pages to your hearts content while linking to the catalog wherever you wish. HTH Matti
bigko Posted February 28, 2004 Author Posted February 28, 2004 wow thanks Matti, didn't think it would be that complicated, but thanks so much for your input!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.