Hi,
I am using Opencart 3.0.3.8 default theme.
I would like to edit the link in Customer Details section in admin->sale->orders->order_info page.
By default this link opens admin->customers->customer_edit page General tab.
I want, if it's possible, this link to open directly History tab.
How can I achieve this without changing the default active tab from general to history.
I suppose that a little javascript can make this happens, but I can not do it by myself.
Any help is appreciated.
I attach two screenshots in order to be more descriptive of what I want to achieve.
document.addEventListener("load", function(){
document.getElementsByClassName('nav-tabs')[0].children[1].firstElementChild.click()
});
Add this code history tab will select automatically
and code will run after the page will be loaded
document.getElementsByClassName('nav-tabs')[0].children[1].firstElementChild.click()
});
Add this code history tab will select automatically
and code will run after the page will be loaded
Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations
Thanks a lot, that solved it!TMD Extension @ wrote: ↑Thu Feb 02, 2023 6:05 pmdocument.addEventListener("load", function(){
document.getElementsByClassName('nav-tabs')[0].children[1].firstElementChild.click()
});
Add this code history tab will select automatically
and code will run after the page will be loaded
Who is online
Users browsing this forum: No registered users and 9 guests