yuande Posted January 12, 2006 Posted January 12, 2006 Hello, on my first page of my catalog, there is a picture with links inside > theses links goes to products. The path a gave to those links are : "..catalog/index.php?cPath=1_4" or ../catalog/index.php?cPath=1_8 ... but the complete adress should be with a lot of numbers behind index.php?cPath=1_4 something like index.php?cPath=1_4&osCsid=5e1fa401ccb8502e45856e779ae532ca So, what kind of path should I give to my links ? If I have undesrtood the process, OsCommerce create a new path (I mean behind index.php?cPath=1_4) to every session, so the path behin is not always the same ... !? So, what should I write ? Or is there a php code to insert to the links to call the page ...? I`m a little lost :blush: Thank you for your help ... :rolleyes:
AlanR Posted January 12, 2006 Posted January 12, 2006 If you're always seeing all those "numbers" your configure file is set up incorrectly. Setting up links is a topic we'll reserve for later. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
vasttech Posted January 12, 2006 Posted January 12, 2006 If you are just creating links to a product from outside your store, you do not need (in fact do not use) the session id. You can just link to the product as such with the /index.php?cPath=1_8 or whatever. However, if you are trying to create new links within your store use the tep_href_link function. That will add the proper session information to the url to ensure the customer's login/cart information stays with them. Hope that makes sense. osCommerce Knowledge Base osCommerce Documentation Contributions
yuande Posted January 12, 2006 Author Posted January 12, 2006 If you're always seeing all those "numbers" your configure file is set up incorrectly. what kind of ? I`d touched nothing in configure.php ? use the tep_href_link function where should I put this function ? The links are in an image on my catalog`s first page. ... I created these links via Image Map with Dreamweaver and placed it in index.php in the language folder : define('TEXT_MAIN', '<div align=center> <img src="../catalog/images/accueil/accueilv4.gif" border="0" usemap="#Map"> <map name="Map"> <area shape="rect" coords="292,77,401,185" href="../catalog/index.php?cPath=1_4"> <area shape="rect" coords="407,78,515,187" href="../catalog/index.php?cPath=1_8"> <area shape="rect" coords="520,79,624,186" href="../catalog/index.php?cPath=1_126"> <area shape="rect" coords="631,77,731,187" href="../catalog/index.php?cPath=1_16"> <area shape="rect" coords="14,162,236,362" href="../catalog/create_account.php"> </map></div>'); so, where should I put the function ? Thank you .. :thumbsup:
Phosky Posted January 13, 2006 Posted January 13, 2006 Hi! Verify that in your catalog/includes/configure.php, the cookies are as this: define('HTTP_COOKIE_DOMAIN', 'www.YOURDOMAIN.com'); define('HTTPS_COOKIE_DOMAIN', 'www.YOURDOMAIN.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); This code is if your "start folder" is in root. If your catalog is in the folder "catalog", you must will add the word "catalog" in the cookie_path: define('HTTP_COOKIE_PATH', '/catalog/'); Now, for to see the changes, in firefox push SHIFT and clic Refresh (without release shift), and in explorer push CONTROL and refresh (or Shift). Forums, the perfect place to practice my English. From Spain.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.