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
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
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.
you should mention it is the only parameter with a typo and therefore need an hidden config
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
You need to get your config file into the config
https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
But in future we need another config setting there cat_productdetails and also a config per view.
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
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.
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?
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