Category listing and working of links

  • Posts: 19
  • Thank you received: 2
10 years 10 months ago #177485

-- HikaShop version -- : 2.3.4

Good Day,

I'm make the category listing module looking like on the left area on Hika demo website
"Link on main categories" is Off
But some first level categories don't have subcategories, and I need when clicking on it, will open the category page with product list
But the same time, I need that for first level categories which have the subcategories, menu will working like on the left area on Hika demo website

Please help :-)

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

  • Posts: 84319
  • Thank you received: 13708
  • MODERATOR
10 years 10 months ago #177535

Hi,

You should turn off the "link on main categories" option of your module.
Then, edit the file "listing_list" of the "category" view via the menu Display>Views and change the line:

if( !$this->module || $this->params->get('links_on_main_categories')){
to:
if( !$this->module || $this->params->get('links_on_main_categories') || empty($row->childs)){

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

  • Posts: 19
  • Thank you received: 2
10 years 10 months ago #177830

nicolas wrote: Hi,

You should turn off the "link on main categories" option of your module.
Then, edit the file "listing_list" of the "category" view via the menu Display>Views and change the line:

if( !$this->module || $this->params->get('links_on_main_categories')){
to:
if( !$this->module || $this->params->get('links_on_main_categories') || empty($row->childs)){


Thank you Nicolas, very mach.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum