Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Current category id - how do I find it?


matthewrevell

Recommended Posts

Posted

I want to know what the current category's id is.

 

I'm trying to call $current_category_id; in an STS Plus template but it's blank.

 

Does anyone have any thoughts on why $current_category_id is showing blank for me?

 

I'm not sure what more info you might need, sorry.

 

Thanks in advance for any help you can offer! :)

Posted

the current_category_id represents the selected category ID in the categories sql table. It's the tail element of the cPath string. And it's not a function to call. You can use it to fetch additional information of the selected category from the database.

Archived

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

×
×
  • Create New...