Pink Posted October 16, 2005 Posted October 16, 2005 I need to link to my main product category pages from my home page without visitors losing their osCid's. It seems like this should be rather simple, in that the catalog box menu does this, but I have not been able to accomplish this in my introductory copy on my home page. If anybody could help, I would be most grateful. -Pink
1Putts Posted October 16, 2005 Posted October 16, 2005 I need to link to my main product category pages from my home page without visitors losing their osCid's. It seems like this should be rather simple, in that the catalog box menu does this, but I have not been able to accomplish this in my introductory copy on my home page. If anybody could help, I would be most grateful. -Pink <a href="<?php echo tep_href_link('index.php', 'cPath=xx')?>" Where xx is the actual number associated with the category you want to link to. If you don't know the numbers, just mouse over the link in the category box and you'll see what it is.
resoman Posted January 27, 2006 Posted January 27, 2006 <a href="<?php echo tep_href_link('index.php', 'cPath=xx')?>" Where xx is the actual number associated with the category you want to link to. If you don't know the numbers, just mouse over the link in the category box and you'll see what it is. Thanks for this, I had numerous products linked from other pages, and other pages attached to my site that werent part of OSC. By including application top and using your link method my sessions are stored! This is a fix for anyone using other pages outside of OSC. To include application top <?php/* $Id: shopping_cart.php,v 1.73 2003/06/09 23:03:56 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require("includes/application_top.php"); ?> Then link to products use this method <a href="<?php echo tep_href_link('index.php', 'cPath=xx')?>" To link to just pages use this method <a href="<?php echo tep_href_link('index.php')?>" Jesse Rooney
Guest Posted January 27, 2006 Posted January 27, 2006 none of this is going to work if its outside the osc root directory. You need to use a contribution like external sessions or create specific code to maintain the session passed. That's what I understood of the original question: I need to link to my main product category pages from my home page without visitors losing their osCid's. Home page: www.mysite.com osc root: www.mysite.com/catalog/ http://www.oscommerce.com/community/contributions,3257 so then you can link back and forth to pages that reside on separate folders or domains.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.