Author Topic: Show/hide product manufacturer (single product page)?  (Read 1483 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 335
Show/hide product manufacturer (single product page)?
« 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...
Code: [Select]
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2769
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Show/hide product manufacturer (single product page)?
« Reply #1 on: December 21, 2019, 14:17:28 pm »
html/com_virtuemart/manufacturer/default.php

perhaps?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

EvanGR

  • Jr. Member
  • **
  • Posts: 335
Re: Show/hide product manufacturer (single product page)?
« Reply #2 on: December 23, 2019, 10:30:10 am »
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

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4336
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Show/hide product manufacturer (single product page)?
« Reply #3 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

EvanGR

  • Jr. Member
  • **
  • Posts: 335
Re: Show/hide product manufacturer (single product page)?
« Reply #4 on: December 23, 2019, 14:57:40 pm »
Thank you