Need to programatically switch tabs on account page (uses vmtabs.js)

Started by likrish, April 02, 2019, 20:28:08 PM

Previous topic - Next topic

likrish

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

Studio 42

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