News:

Support the VirtueMart project and become a member

Main Menu

Removing categories from Manufacturer page but no where else

Started by agerman, October 13, 2017, 18:30:04 PM

Previous topic - Next topic

agerman

Virtuemart version: 3.2.4
Joomla version: 3.8.1
PHP version: 7.0.24

Hi there. I am trying to remove the categories at the top of my manufacturer product page, I was able to do that with this code: if(!empty($this->category->children ) && !(boolean)JRequest::getVar('search', 'manufacturer', false))

However this removes all of my categories from other pages and I just want them removed from the manufacturer product page. Is there a different way or exceptions I can put into the code?

Ghost

Try this:
if (!empty($this->category->haschildren) && !vRequest::getInt('virtuemart_manufacturer_id'))

agerman

I replaced the previous code with the one provided and unfortunately nothing changed.  :-\

agerman

The categories that were showing up were categories that weren't necessary to show, so I just unpublished them however I'm getting a line of text at the top of my manufacturer page that reads "You don't have any category. Please add at least one." I've tried removing it a few ways in the css but it's still there. Any ideas on how to get rid of the pesky text?