When we add a product to the site in the back end, there is no check to see if the SKU we are entering already exists.
Does anyone know how we can have a check at the time of input to prevent the duplicate?
Does anyone know how we can have a check at the time of input to prevent the duplicate?
It can be added. If you're somewhat familiar with code, you can look at what they've done to check for duplicated URLs and modify it to do the same for the SKU.
I don't have a working example readily available, otherwise I'd publish it.
I don't have a working example readily available, otherwise I'd publish it.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com
Active Member
You'd need to modify a few files - model, controller, template and language. The controller to define the variables for the error message plus the validation, language file to define the actual error message, the template to include the error message if there is a matching SKU and, of course, the model where a new database query would have to be added for the purpose.
The attached vQmod .xml file, which I've just "thrown together" will do it all for you.
Just upload to your server and place in your vqmod/xml folder.
The attached vQmod .xml file, which I've just "thrown together" will do it all for you.
Just upload to your server and place in your vqmod/xml folder.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Who is online
Users browsing this forum: No registered users and 43 guests