Skip to main content

Category listing and working of links

More
11 years 11 months ago #177485 by Burov
-- 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.

More
11 years 11 months ago #177535 by nicolas
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:
Code:
if( !$this->module || $this->params->get('links_on_main_categories')){
to:
Code:
if( !$this->module || $this->params->get('links_on_main_categories') || empty($row->childs)){

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

More
11 years 11 months ago #177830 by Burov

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:

Code:
if( !$this->module || $this->params->get('links_on_main_categories')){
to:
Code:
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.127 seconds
Powered by Kunena Forum