VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: EvanGR on December 21, 2019, 13:36:34 PM

Title: Show/hide product manufacturer (single product page)?
Post by: EvanGR on December 21, 2019, 13:36:34 PM
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
Title: Re: Show/hide product manufacturer (single product page)?
Post by: Jörgen on December 21, 2019, 14:17:28 PM
html/com_virtuemart/manufacturer/default.php

perhaps?

Jörgen @ Kreativ Fotografi
Title: Re: Show/hide product manufacturer (single product page)?
Post by: EvanGR on December 23, 2019, 10:30:10 AM
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
Title: Re: Show/hide product manufacturer (single product page)?
Post by: Studio 42 on December 23, 2019, 11:05:05 AM
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
Title: Re: Show/hide product manufacturer (single product page)?
Post by: EvanGR on December 23, 2019, 14:57:40 PM
Thank you