Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Get Main Category Variable (cPath)


Guest

Recommended Posts

Posted

Hi All,

 

I would like to thank you in advance for any help or guidance you can give me with this issue. Heres the rundown of what I am trying to accomplish:

 

1. For example... I have 4 main categories when my site loads -

 

____Menu______

Category1 (cPath=1)

Category2 (cPath=2)

Category3 (cPath=3)

Category4 (cPath=4)

 

 

2. When A user Clicks on or in a category I need to either set a var that stores what the main parent category is or if this already exists I can you point me 2 it? Example below

_____Menu_____

( user clicked)

Category2

--Sub1

--Sub2

--Sub3

 

var stored(2)

 

or

 

_____Menu_____

( user clicks in 2 deep)

Category2

--Sub1

--a

--Sub2

--Sub3

 

var stored(2) still need the main parent

 

 

Once you go in 2 or three levels deep the variable I still need to get the MAIN Parent category of all the subs and not the parent of the one clicked. Also I cannot use the http address to get this variable because I am using the SEO Modules which takes the cPath out of it

 

 

Thanks a million for all your help,

-Joe

Archived

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

×
×
  • Create New...