News:

Looking for documentation? Take a look on our wiki

Main Menu

Show/hide product manufacturer (single product page)?

Started by EvanGR, December 21, 2019, 13:36:34 PM

Previous topic - Next topic

EvanGR

Trying to find the option to show/hide the product manufacturer in a product page.

In the template there's this...
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) {
            echo $this->loadTemplate('manufacturer');
          }

Therefore, there is a switch somewhere...

Also, which template file is it referencing?

I appreciate any help.

Thanks

Jörgen

html/com_virtuemart/manufacturer/default.php

perhaps?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

EvanGR

#2
Quote from: Jörgen on December 21, 2019, 14:17:28 PM
html/com_virtuemart/manufacturer/default.php

This seems to be the manufacturer page.

The snippet I posted, is for the manufacturer section in a single product page.

EDIT: Found it... it's default_manufacturer.php in com_virtuemart/productdetails.

The only info missing now is how to toggle show/hide manufacturers from the VM dashboard.

Thanks

Studio 42

If you dont see it in the config, then it's a hidden config setting.
Then you need to change it directly in the config file. See https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html