Skip to main content

category / listing.php override

More
13 years 1 month ago #120095 by plumbingdeals
-- HikaShop version -- :2.2
I have created an override for the category / listing.php page, however, I don't want it to apply to every product category. Is the a way to apply the override to a specific category or categories?

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #120102 by nicolas
You can add checks on the current category in the file like that:
if($this->element->category_id==18){
//display for the listing with the current category being the 18
}else{
//display for others
}

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #120106 by plumbingdeals
so I would need to add this for each specific category, correct?

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #120113 by nicolas
yes

Please Log in or Create an account to join the conversation.

Time to create page: 0.157 seconds
Powered by Kunena Forum