Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cPath and Category URLs


Guest

Recommended Posts

A question about cPath and URLs.

 

I have 7 categories. I would like to put some links directly to each of the category pages from another site, and have been using cPath to do this. For example:

 

http://www.mydomain.com/catalog/index.php?cPath=1

 

This is the URL for Category 1. But for some whacked out reason the cats and cpaths don't line up:

 

Cat = cPath

 

1 = 1

2 = 2

3 = 3

4 = 22

5 = 23

6 = 24

7 = 25

 

 

Since I had just edited the defaults from osCommerce, I thought if I deleted all the categories/subcategories and reentered the categories first, that they may line up logically. Unfortunately they do not. The first one I entered ended up being cPath=26!!

 

Is there a way to RESET the cPaths? Or a better way to get solid Category URLs?

 

Thanks for any advice,

 

CK

Link to comment
Share on other sites

Ah!

 

Don't forget to change the "categories_id" in the "categories_description" table to match that in the "categories" table!

 

All fixed!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...