Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Liniing to Store Categories from outside the catalog folder


Guest

Recommended Posts

I am trying to link to each individual category from outside the catalog folder.

 

Does anyone know what the category link would be without the Csid number? Such as www.sitename.com/catalog/category=whatever?

 

I am at a loss here. Any assistance would be appreciated

 

:wub:

Link to comment
Share on other sites

I am trying to link to each individual category from outside the catalog folder.

 

Does anyone know what the category link would be without the Csid number? Such as www.sitename.com/catalog/category=whatever?

 

I am at a loss here. Any assistance would be appreciated

 

Click on your category link in OSC, and look at the address bar. The category path is displayed in the cPath parameter :

/index.php?cPath=30

index.php?cPath=38

index.php?cPath=<number>

 

Corrie

Link to comment
Share on other sites

Ok, I figured out how to link categories from outside your catalog script. Sometimes the simplest thing is so hard to see. After so many installations of OSCommerce in the previous years, I am embarrassed that I did not see this.

 

For anyone else who has blinders on, here is the answer.

 

When you click on the main catalog link, the URL with populated Csid will look something like this.

 

http://yoursite.com/catalog/index.php?cPath=21&osCsid=a541a2a893c2bff9bd65dcb6ff5e4a62

 

The red is of course your base catalog URL. Orange denotes the catalog path and blue the Csid (cookie I am assuming)

 

The top category and main catalog will have the same cPath #. Each category after the top category increases by 1. (ex: http://yoursite.com/catalog/index.php?cPath=22&osCsid=a541a2a893c2bff9bd65dcb6ff5e4a62 is the 2nd category you added under the top category.)

 

Each category and subcategory that is added after that increases by 1 IN ORDER OF ADDITION. (ex: cat. 1 added = Cpath=22, cat. 2 added = cPath 23, sub-category 1 under cat. 2 = cPath=23_24) Subcategories will be listed with an underscore between the main catalog # (22) and then the numerical increase.

 

http://housewitch.com/catalog/index.php?cPath=22_23&osCsid=a541a2a893c2bff9bd65dcb6ff5e4a62 (3rd category added)

 

http://housewitch.com/catalog/index.php?cPath=22_24&osCsid=a541a2a893c2bff9bd65dcb6ff5e4a62 (4th category added)

 

http://housewitch.com/catalog/index.php?cPath=22_25&osCsid=a541a2a893c2bff9bd65dcb6ff5e4a62 (5th category added)

 

I hope that helps someone else.

Link to comment
Share on other sites

Click on your category link in OSC, and look at the address bar. The category path is displayed in the cPath parameter :

/index.php?cPath=30

index.php?cPath=38

index.php?cPath=<number>

 

Corrie

 

Thanks for the reply Corrie. I did not see this when I posted the solution I found.

 

I appreciate it!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...