Jump to content

[PS 1.7.5] How to add root category id in body class on catalog pages


Semaphore

Recommended Posts

Hi,

I get this in my old PS 1.5 templatesand I can't do it now in PS 1.7. I want to be able to get the root or older category call that like you want in each sub-category and product page in order to customize the css based on that. For example I get cat A -> sub-cat A1 -> product A1p and i want  <body class="categoryid-A"> on catalog pages.

I have look on new ps 1.7 global variable there is nothing about that.

Thanks for your help

 

Link to comment
Share on other sites

  • 9 months later...
On 5/29/2019 at 5:19 PM, Semaphore said:

Hi,

I get this in my old PS 1.5 templatesand I can't do it now in PS 1.7. I want to be able to get the root or older category call that like you want in each sub-category and product page in order to customize the css based on that. For example I get cat A -> sub-cat A1 -> product A1p and i want  <body class="categoryid-A"> on catalog pages.

I have look on new ps 1.7 global variable there is nothing about that.

Thanks for your help

 

Hello! Did you find a solution? I'm trying to do the same things

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...