News:

Looking for documentation? Take a look on our wiki

Main Menu

Cant hide subcategories in product view after upgrade

Started by tassoss, April 05, 2017, 13:52:13 PM

Previous topic - Next topic

tassoss

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

StefanSTS

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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

StefanSTS

#2
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.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

you should mention it is the only parameter with a typo and therefore need an hidden config
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tassoss

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

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

But in future we need another config setting there cat_productdetails and also a config per view.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tassoss

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


kuba_b

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.

lgiulio

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?

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum