Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Want to easily increment quantity


Recommended Posts

I would like to do incremental quantity updates. Basically when we get new inventory we want to add X amount of units to whatever is there. The only way I can see how to do it now is by checking to see how many there is, add X and replace that quantity with the updated amount. The inherent problem is that if someone online orders something during my update, the quantity will be thrown off.

 

I'm looking for something that will lock the database record, add the value and unlock it on the fly. ( ok maybe not actually lock the table, but something that will happen quickly with little chance of collision )

 

Now, all of the inventory data is coming in in a csv file, with model number and quantity increment, so a modification to Easy Populate would be easiest.

 

 

Basically I'm either looking for something thats already done, or your ideas and pointers. I have programming abilities, so I can do it manually, but I was crossing my fingers hoping someone has done it before.

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...