Community Forums

Add a unique field for listed items

Enter all OpenCart 1.x feature requests here. One idea per topic. Please search the forum to see if your feature has already been requested

Add a unique field for listed items

Postby workwonder01 » Thu Jul 15, 2010 2:45 am

I think the system needs to have a field with unique value to make sure we do not upload duplicated items on our site. With the number of items increases, it would be very hard for us to memorize and check if the item has already been uploaded or not. Two many duplicated items will make the site look bad.

We need to have such a field for each item. So if we accidentially upload the same item, the program can pop-up an error message "Sorry. The same item has already been added [link to that item]."

Can someone answer this?
workwonder01
 
Posts: 7
Joined: Wed Jul 14, 2010 7:22 pm

Re: Add a unique field for listed items

Postby JAY6390 » Thu Jul 15, 2010 9:53 am

Pretty sure this is what the SKU is for...
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4633
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

Re: Add a unique field for listed items

Postby Xsecrets » Thu Jul 15, 2010 11:48 am

well actually there are no checks to make sure the sku is unique though.
Xsecrets
 
Posts: 5042
Joined: Sat Oct 24, 2009 7:51 pm
Location: FL US

Re: Add a unique field for listed items

Postby JAY6390 » Thu Jul 15, 2010 11:50 am

Ah I see. Would have thought this would be a basic addition to be honest. Could spice it up and run the query through AJAX to say "SKU already exists" or something like that as you change the field
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4633
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

Re: Add a unique field for listed items

Postby Qphoria » Thu Jul 15, 2010 2:06 pm

Well sku was added later in time.. initially only Name and Model were (and still are) required fields
Would it be best to do a check for unique skus or models?
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18199
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Add a unique field for listed items

Postby JAY6390 » Thu Jul 15, 2010 2:28 pm

don't think there's really much difference which really, whichever is easier. I guess since model is required it would make sense to have that as the UID
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4633
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

Re: Add a unique field for listed items

Postby Johnathan » Sat Jul 17, 2010 9:03 pm

Please don't make Model required to be unique. Some of us that don't have products with UIDs use that field for other things (since it's required to be filled in) and we don't want to have to add random numbers to the end of the field to enter a product.

If you do decide to use Model for the UID, at least make it only give a warning instead of making it a requirement.
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2854
Joined: Thu Dec 17, 2009 7:08 pm


Return to Feature Requests

Who is online

Users browsing this forum: calldrin31 and 8 guests

Hosted by Arvixe Web Hosting