VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: likrish on April 02, 2019, 20:28:08 PM

Title: Need to programatically switch tabs on account page (uses vmtabs.js)
Post by: likrish on April 02, 2019, 20:28:08 PM
Hi,

I am hoping someone out there has come across a similar scenario and can help.

When visiting the VM account page you have tabs at the top to view / edit your details and order history.

We have added a couple more tabs here, however, I need to programatically change the active tab based on a URL parameter. I assumed this would work similar to jQuery UI tabs, however nothing I have tried has worked.

Any help greatly appreciated...

Dean
Title: Re: Need to programatically switch tabs on account page (uses vmtabs.js)
Post by: Studio 42 on April 03, 2019, 15:24:38 PM
See YOURSITE/components/com_virtuemart/assets/js/vmtabs.js, this use only DOM content and no external ajax content.
The script is very simple.
You click on a li element inside "#tabs" list and the same indexed content in "#ui-tabs .tabs"  is displayed