Author Topic: Category sidebar module not opening to sublevels ( accordion )  (Read 1254 times)

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Category sidebar module not opening to sublevels ( accordion )
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28698
  • Always on vacation
    • Jenkin Hill Internet
Re: Category sidebar module not opening to sublevels
« Reply #1 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.2.4 10922 J! 3.10.11 PHP 8.2.7

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10878
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Category sidebar module not opening to sublevels
« Reply #2 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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels
« Reply #3 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?

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels
« Reply #4 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10878
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Category sidebar module not opening to sublevels
« Reply #5 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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels
« Reply #6 on: February 16, 2023, 12:44:10 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

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels
« Reply #7 on: March 09, 2023, 11:14:56 AM »
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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28698
  • Always on vacation
    • Jenkin Hill Internet
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #8 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.2.4 10922 J! 3.10.11 PHP 8.2.7

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #9 on: March 09, 2023, 19:40:38 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" !!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28698
  • Always on vacation
    • Jenkin Hill Internet
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #10 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.2.4 10922 J! 3.10.11 PHP 8.2.7

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #11 on: March 10, 2023, 11:35:18 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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28698
  • Always on vacation
    • Jenkin Hill Internet
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #12 on: March 10, 2023, 15:12:33 PM »
Overrides should be in /templates/your-Joomla-Template/html/mod_virtuemart_category
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.2.4 10922 J! 3.10.11 PHP 8.2.7

Gingerweb

  • Jr. Member
  • **
  • Posts: 132
  • A beginner
Re: Category sidebar module not opening to sublevels ( accordion )
« Reply #13 on: March 11, 2023, 09:23:01 AM »
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