Post by seo chester » Tue Aug 23, 2016 7:32 pm

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?

Internet Marketer



Tue Sep 20, 2011 8:12 am
Location - Mold, North Wales

Post by EvolveWebHosting » Tue Aug 23, 2016 9:29 pm

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.

50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart

User avatar
Active Member


Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by fido-x » Tue Aug 23, 2016 9:46 pm

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.

Modules for OpenCart
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!

User avatar
Expert Member


Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 24 guests