Post by gogoweb » Fri Jul 31, 2015 9:02 am

I spent 20 minutes digging how to do it and 10 to understand that vQmod does not work on JS files.. So if you like it so much so did I when read this post.
1 - Go to

Code: Select all

admin/view/javascript/common.js
2 - Find

Code: Select all

	// Highlight any found errors
3 - paste the following code right before the line in 2.

Code: Select all

				// Highlight TABS with any found errors
				$('.text-danger').each(function() {
					var tabId = $(this).parent().parent().parent().attr('id');
					$( "a[href*='"+tabId+"']").css('color','#f00');
			
					if(tabId.substr(0, 3) == 'tab') {
						$( "#form-product > ul a[href*='"+tabId+"']").css('color','#f00');
					} else {
						tabId = $(this).parent().parent().parent().parent().parent().attr('id');
						$( "#form-product > ul a[href*='"+tabId+"']").css('color','#f00');
					}
				});
I tested this on product's edit form.
The beauty of it is that it works in multilingual tabs too ;)

Enjoy :)

All mods | OpenCart Bulk Related Products Ultimate Edition |GeoIP hide Prices / no add to cart by country| CSS override | Direct link to checkout / skip add to cart / buy now link | AUTO pilot - reward & purchase points


New member

Posts

Joined
Sat Oct 18, 2014 6:45 pm


Post by ocᅠ » Wed Jan 06, 2021 9:09 am

Visible Error Tab for Admin Form Free
A simple module that adds error output for tabbed forms
so that you don't have to look for the error for a long time
Installation: Download ocmod
Should fit all opencart versions OC v.2.x - v.4.x

https://www.opencart.com/index.php?rout ... n_id=40949

Newbie

Posts

Joined
Thu Feb 07, 2019 9:05 pm
Who is online

Users browsing this forum: No registered users and 22 guests