category / listing.php override

  • Posts: 223
  • Thank you received: 1
11 years 9 months ago #120095

-- 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.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
11 years 9 months ago #120102

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.

  • Posts: 223
  • Thank you received: 1
11 years 9 months ago #120106

so I would need to add this for each specific category, correct?

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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
11 years 9 months ago #120113

yes

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

Time to create page: 0.059 seconds
Powered by Kunena Forum