Author Topic: Virtuemart Category Menu Module  (Read 1464 times)

saviB

  • Jr. Member
  • **
  • Posts: 187
Virtuemart Category Menu Module
« on: June 08, 2015, 21:15:12 pm »
Joomla! 3.3.6
VirtueMart 3.0.9

Using VirtueMart Category module. Top level categories have the category title and a down arrow on the right side. The down arrow slides open the children. The category title loads the category view. I'd like the down arrow accordion action to be called from the category title - eliminating the loading of the category view on title click.

Can someone point out the necessary code change? I assume it needs to take place in Assuming an override of mod_virtuemart_category/default.php - I just don't know which part to change.

Thanks -

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10346
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart Category Menu Module
« Reply #1 on: June 08, 2015, 23:42:36 pm »
something like

jQuery(document).ready(function() {
      jQuery('#VMmenu".$ID." li.VmClose ul').hide();
      jQuery('#VMmenu".$ID." li a').click(
      function(e) {

         if (jQuery(this).parent().next('ul').is(':hidden')) {
            jQuery('#VMmenu".$ID." ul:visible').delay(500).slideUp(500,'linear').parents('li').addClass('VmClose').removeClass('VmOpen');
            jQuery(this).parent().next('ul').slideDown(500,'linear');
            jQuery(this).parents('li').addClass('VmOpen').removeClass('VmClose');
                                 e.preventDefault();
         }
      });
   });

might work  ...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1461
Re: Virtuemart Category Menu Module
« Reply #2 on: June 09, 2015, 13:14:54 pm »
Take a look also in Custom Filters
http://breakdesigns.net/extensions/custom-filters

It's in the free version