VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Gingerweb on February 15, 2023, 12:22:13 PM

Title: Category sidebar module not opening to sublevels ( accordion )
Post by: Gingerweb on February 15, 2023, 12:22:13 PM
Im sure this used to work, when the category has sub categories and you click the arrow shouldnt it open up to see the sub category levels?

https://luke.temp-gingerweb.com/shop?manage=0

If it doesnt do this is there a VM 4 category module that does this? i have found a few but none have demos?

J4
VM: 4.0.12 10777
PHP: 7.4
Title: Re: Category sidebar module not opening to sublevels
Post by: jenkinhill on February 15, 2023, 13:32:12 PM
The default VM4 cat module has an accordion drop-down function. This works OK in J 3.10.11 but in J4 Casseopeia only works with Legacy layout (Bootstrap) is used.
Title: Re: Category sidebar module not opening to sublevels
Post by: GJC Web Design on February 15, 2023, 13:36:53 PM
the markup on that module is from the template .. sp-xxxx etc

so not core VM I think -- uses bootstrap 5 so try  https://stackoverflow.com/questions/68931929/why-isnt-collapse-in-bootstrap-5-working-from-the-example
Title: Re: Category sidebar module not opening to sublevels
Post by: Gingerweb on February 15, 2023, 14:16:04 PM
Thanks both - i can see that makes sense but i dont known how to implement it, not enough knowledge as usual - is there anywhere i can see how to fix it please?
Title: Re: Category sidebar module not opening to sublevels
Post by: Gingerweb on February 16, 2023, 12:13:54 PM
In fact i tried what was suggested in the above link, neither worked. Is this just a case of it wont work in J4 or is there a module that will allow it to work? Quite happy to buy one if i can see a demo of it working, seen several but no examples of what they look like at all.
Title: Re: Category sidebar module not opening to sublevels
Post by: GJC Web Design on February 16, 2023, 12:32:41 PM
why don't u try the core one?  That one u are showing is NOT core VM  .. it is sp- over ridden in your template
Title: Re: Category sidebar module not opening to sublevels
Post by: Gingerweb on February 16, 2023, 12:44:10 PM
Quote from: GJC Web Design on February 16, 2023, 12:32:41 PM
why don't u try the core one?  That one u are showing is NOT core VM  .. it is sp- over ridden in your template

OK thanks ill look into how to do that
cheers
Title: Re: Category sidebar module not opening to sublevels
Post by: Gingerweb on March 09, 2023, 11:14:56 AM
Quote from: GJC Web Design on February 16, 2023, 12:32:41 PM
why don't u try the core one?  That one u are showing is NOT core VM  .. it is sp- over ridden in your template

I cant work out how to do this, would you mind giving me some help with this please?
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: jenkinhill on March 09, 2023, 15:30:39 PM
The category module in the VM package is titled  VM - Category  You should be using that one.

And select None (Use legacy) in VM Configuration/Templates - Template and Layouts - Layout Bootstrap version
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: Gingerweb on March 09, 2023, 19:40:38 PM
Quote from: jenkinhill on March 09, 2023, 15:30:39 PM
The category module in the VM package is titled  VM - Category  You should be using that one.

And select None (Use legacy) in VM Configuration/Templates - Template and Layouts - Layout Bootstrap version

Yep thats what i have: https://prnt.sc/cAI1zerDZjx6 and https://prnt.sc/eN_9X54PU-0f

It looks great but it doesnt "accordion" !!
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: jenkinhill on March 10, 2023, 11:10:01 AM
The code displaying shop categories on you shop home page is not the same as that produced by the default VM - Category module, as indicated by . Check for template overrides for that module - as indicated by GJC:  it is sp- over ridden in your template
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: Gingerweb on March 10, 2023, 11:35:18 AM
Quote from: jenkinhill on March 10, 2023, 11:10:01 AM
The code displaying shop categories on you shop home page is not the same as that produced by the default VM - Category module, as indicated by . Check for template overrides for that module - as indicated by GJC:  it is sp- over ridden in your template

OK thanks - Im not sure where to look for the override as there isnt a module available called "VM - Category" where would i start to look please?
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: jenkinhill on March 10, 2023, 15:12:33 PM
Overrides should be in /templates/your-Joomla-Template/html/mod_virtuemart_category
Title: Re: Category sidebar module not opening to sublevels ( accordion )
Post by: Gingerweb on March 11, 2023, 09:23:01 AM
Quote from: jenkinhill on March 10, 2023, 15:12:33 PM
Overrides should be in /templates/your-Joomla-Template/html/mod_virtuemart_category

Thanks for your help - i have just had a template update from the author and the accordion function works beautifully now so the new site is live, i would like to tell you what they did but i have no idea sorry!!
https://www.luke-eggleston.co.uk/shop