VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: tassoss on April 05, 2017, 13:52:13 PM

Title: Cant hide subcategories in product view after upgrade
Post by: tassoss on April 05, 2017, 13:52:13 PM
Hi everyone,

I have updated virtuemart to 3.2.1 (running on joomla 3.6.5 and php 5.6.22) but since then when I go to a parent category and click to view a product, below the descripition all the children categories are displayed. How can I hide them as before.

When I go to Configuration->Templates and choose "Show Children Category" to Νο, nothing happens.

If I open a product through the children category everything it's fine. This is only happening in the parent category.

Thank you in advance for you help.

Best regards

Tasos
Title: Re: Cant hide subcategories in product view after upgrade
Post by: StefanSTS on April 05, 2017, 17:21:00 PM
Hi Tasos,

you have three ways to do what you want.

First:
- VM config, tab templates

Second:
- menu item for the specific category, tab 2

Third:
- category setting for the specific category

There is something like "show subcategories" in each possibility.
First is general setting, second -> menu item overrides generals setting, third -> category setting overrides menu item.

Hope it helps
Stefan
Title: Re: Cant hide subcategories in product view after upgrade
Post by: StefanSTS on April 05, 2017, 17:43:19 PM
Ok,

indeed that was the setting for the category view and I did not read properly that you were talking about the productdetails view.

You can solve this for now by putting a hidden configuration for
showCategory=0
into the
/administrator/components/com_virtuemart/virtuemart.cfg

Stefan

EDIT: after that open VM configuration and save it once to load the hidden parameter.
Title: Re: Cant hide subcategories in product view after upgrade
Post by: Milbo on April 06, 2017, 01:36:13 AM
you should mention it is the only parameter with a typo and therefore need an hidden config
Title: Re: Cant hide subcategories in product view after upgrade
Post by: tassoss on April 06, 2017, 09:28:15 AM
Hi Stefan,

I have changed the config file to showCategory=0 I have cleared browser cache etc but the problem remains.

Any other suggestions?

Thank you
Title: Re: Cant hide subcategories in product view after upgrade
Post by: Milbo on April 06, 2017, 10:27:53 AM
You need to get your config file into the config

https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
Title: Re: Cant hide subcategories in product view after upgrade
Post by: Milbo on April 06, 2017, 10:48:10 AM
But in future we need another config setting there cat_productdetails and also a config per view.
Title: Re: Cant hide subcategories in product view after upgrade
Post by: tassoss on April 06, 2017, 11:16:35 AM
Hi Milbo,

i have changed it both to virtuemart.cfg and virtuemart_defaults.cfg-dist and its working fine.

Thanks again for your help and time.  :D

Title: Re: Cant hide subcategories in product view after upgrade
Post by: kuba_b on April 25, 2017, 09:20:19 AM
For me the above worked only for categories and products, but it did not work for VM components such as 'VM - Featured product'.
I had to manually change the value |showCategory="0"| in the database (table '%_virtuemart_configs' column 'config'), then it worked everywhere.
Title: Re: Cant hide subcategories in product view after upgrade
Post by: lgiulio on June 11, 2017, 10:38:18 AM
Hello,

I've updated to version 3.2.3.
error .

Call to a member function displayMediaThumb() on null

https://www.passionepuglia.it/it/pasta-artigianale/orecchiette

Can I fix it?
Title: Re: Cant hide subcategories in product view after upgrade
Post by: jenkinhill on June 11, 2017, 11:23:35 AM
Seems you template overrides need updating. No error when forcing the page to use Protostar (ie default VM templates)  https://www.passionepuglia.it/it/pasta-artigianale/orecchiette?tmpl=component&template=protostar

See  also http://forum.virtuemart.net/index.php?topic=135628.msg474433#msg474433
http://forum.virtuemart.net/index.php?topic=137497.msg481462#msg481462