- My Freespirits
- Freespirits Forum
- Main Forum
- English Section
- Virtuemart
- Remove category list from manufacture page
×
English Section!
We will be more than happy to help you with problems related to our services and products. Please feel free to write it down as clear as possible
We will be more than happy to help you with problems related to our services and products. Please feel free to write it down as clear as possible
Remove category list from manufacture page
- infogate
- Συντάκτης θέματος
- Αποσυνδεμένος
- Administrator
- Imagination is the beginning of creation
3 Χρόνια 10 Μήνες πριν #137
από infogate
The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
Remove category list from manufacture page δημιουργήθηκε από infogate
As said by jenkinhill, the list use same file as category.
What you have to do, is add a condition in the file.
YOURSITE\components\com_virtuemart\views\category\tmpl\default.php
in this file search for
add after :
next line
change to
to remove the children categories when you have a manufacturer set
Note : this is the case when you come from the manufacturer view, but if you use filter manufacture it's same.
to prevent that the categories are hide when you are already in a category and using the manufacturer filter then replace
by
because the category is empty when you come from the manufacturer view, but not in when you are in a category.
I think this is the code you need.
Don't forget to make a backup of file and the best is to use template overide to not loose your changes on virtuemart updates.
What you have to do, is add a condition in the file.
YOURSITE\components\com_virtuemart\views\category\tmpl\default.php
in this file search for
/* Show child categories */
$manufacturer_id = JRequest::getInt('virtuemart_manufacturer_id',0);
if (VmConfig::get ('showCategory', 1) and empty($this->keyword)) {
if (VmConfig::get ('showCategory', 1) and empty($this->keyword) and !$manufacturer_id) {
Note : this is the case when you come from the manufacturer view, but if you use filter manufacture it's same.
to prevent that the categories are hide when you are already in a category and using the manufacturer filter then replace
if (VmConfig::get ('showCategory', 1) and empty($this->keyword)) {
if (VmConfig::get ('showCategory', 1) and empty($this->keyword) and !$manufacturer_id and !empty($this->category)) {
I think this is the code you need.
Don't forget to make a backup of file and the best is to use template overide to not loose your changes on virtuemart updates.
The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.
- My Freespirits
- Freespirits Forum
- Main Forum
- English Section
- Virtuemart
- Remove category list from manufacture page
Χρόνος δημιουργίας σελίδας: 0.034 δευτερόλεπτα