Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

manual linking of categories


thr33

Recommended Posts

I asked a while back on here how should I insert links manually for my site.

I am linking everything I need to manually with the basic format of

 

<a href="<?php echo tep_href_link ('faq.php');?>">FAQ</a>

for a regular link, and

 

<a href="<?php echo tep_href_link ('index.php?cPath=1');?>">Strategy</a>

for a link to a category

 

my only concern is a category link in a clean install of oscommerce shows up as

http://domain/catalog/index.php?cPath=20&osCsid=ff0a2ac16396d3ec54f1343ffa834150

 

while my categories link shows up as

http://domain/catalog/index.php?cPath=20?osCsid=ff0a2ac16396d3ec54f1343ffa834150

 

:blink: (notice the question mark "?" after cPath=20 in my link, as the original link does not have the question mark, and in its place is an ampersand "&")

 

I am just curious if this will have any effect on the functionality of my site.

 

Also, does anyone know if the way I am inserting manual links is a way that will not harm the sessionID, and also will be compatible with SSL and NONSSL?

 

I would really appreciate any help.

 

Thanks! :D

Link to comment
Share on other sites

Do not add anything after and including the ?

The tep href links is the correct way to do it without losing the session id which is what that oscid is.

 

But I think the links need to be

<a href="<?php echo tep_href_link ('index.php','cPath=1');?>">Strategy</a>

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Do not add anything after and including the ?

The tep href links is the correct way to do it without losing the session id which is what that oscid is.

 

But I think the links need to be

<a href="<?php echo tep_href_link ('index.php','cPath=1');?>">Strategy</a>

 

Thanks Wendy,

 

Seems to be working great.

 

:D

Link to comment
Share on other sites

Has no effect other than making it work correctly. Without the tep href you will lose your session IDs.

 

 

This will work too:

 

<a href="<?$DOCUMENT_ROOT?>/catalog/filename.php?$sid">

 

or if you want to get the cPath:

 

<a href="<?$DOCUMENT_ROOT?>/catalog/filename.php?cPath=1&$sid">

 

$sid is the variable for inserting the session ID information.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...