Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: [SOLVED] hiding categories on manufacturer pages?

[SOLVED] hiding categories on manufacturer pages? 11 years 6 months ago #506

Is there a way to hide categories listing on manufacturer pages.

Thank you.
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

How to hide categories on manufacturer pages? 11 years 6 months ago #511

Hi,

Do you mean the child categories?
Can you provide me your website URL to let me check it out? and give me the exact URL where you want to hide the categories.

Cheers.
The topic has been locked.

How to hide categories on manufacturer pages? 11 years 6 months ago #518

Hi,

No. the main categories which are located on the top of all manufacturer pages.
Pls. check your email. I have sent a msg. with admin details.

Thank you.
The topic has been locked.

How to hide categories on manufacturer pages? 11 years 6 months ago #530

Hi,

Hi,

It is because how the Virtuemart was designed. But you can change it with a little tweak.
Please open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php

and find this line: (it is 60th line)
if ( VmConfig::get('showCategory',1) and empty($this->keyword)) {

and change it with this:
if ( VmConfig::get('showCategory',1) and empty($this->keyword) && !(boolean)JRequest::getVar('search', 'manufacturer', false)) {

Then categories will be hidden from manufacture pages.

Cheers.
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

How to hide categories on manufacturer pages? 11 years 6 months ago #553

Hi,

I have try this solution before, it is also hide sub-categories under categories section. (sub categories are active on vm configuration)
I could not find a solution which hide categories from manufacturer pages also show sub categories on categories page.

Ps. It is not a core solution but I have instaled an extended manufacturer module to show sub categories on categories pages.

Thank you.
The topic has been locked.

How to hide categories on manufacturer pages? 11 years 6 months ago #556

Hi,

You might have seen that code since i took it from forum.virtuemart.net, i did the test in my local server and i saw that it was working, i just didn't notice also the sub-categories are gone. Apparently the problem you are having is an issue in Virtuemart as well, since exactly same thing is happening in official Virtuemart too (i just tried and confirmed).
But looks like somehow you found a way to solve your problem by yourself. I am glad things get worked as you expected.

Cheers.
Flexible Support Team.
The topic has been locked.
Time to create page: 0.089 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo