Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warn on Duplicate UPC


MyBookShop

Recommended Posts

As my shop and categories grow larger it would be nice if the [New Product] input could warn on duplicate UPC.

If UPC was the first thing input this could reduce duplicate products appearing in different categories.

Please?

 

 

 

Link to comment
Share on other sites

You would need to add a check if the UPC already exists when a new product is inserted/product is updated.

If it aleready exists, error should be shown and submission aborted.

All of this needs to be done in admin/categories.php within the action:

      case 'insert_product':
      case 'update_product':

hope this helps

Rainer

 

Link to comment
Share on other sites

array of existing UPC (gtin)'s is not retrieved if creating a new product. How should the check then work with javascript before submission?

Or do I miss something and you suppose a query to get the list should be added at the top of file?

Edited by raiwa
Link to comment
Share on other sites

2 minutes ago, raiwa said:

array of existing UPC (gtin)'s is not retrieved if creating a new product. How should the check then work with javascript before submission?

Or do I miss something and you suppose a query to get the list should be added at the top of file?

$.post it to a processing script onBlur.

Similar as this:
http://www.clubosc.com/unique-product-models-in-oscommerce.html

 

Edited by burt
Link to comment
Share on other sites

Burt, I will donate another $80USD for this and add the ability to search on UPC in the customer shop.

Its a good change (benefits every store) and it should go into the core but a plugin would be fine i guess..

Edited by MyBookShop
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...