Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Inventory Control and Adding to Cart
- This topic has 8 replies, 2 voices, and was last updated 16 years ago by
morticya33.
-
AuthorPosts
-
August 10, 2010 at 12:27 pm #1656
morticya33
MemberWhat happens when you have Product A, 10 copies of it in the inventory, and you with the quantity value, you add 12 copies to the shopping cart?
How does the plugin manage this?
August 11, 2010 at 1:51 am #23263amin007
ParticipantIt should give you an error saying the requested quantity exceeds the available quantity.
August 11, 2010 at 10:53 am #23264morticya33
MemberDoes this happen immediately when you’re adding? Or you’ll have to add the quantity to the cart first, then it throws an error message?
August 11, 2010 at 9:04 pm #23265morticya33
MemberSorry, just to update – what I problems I had was :
If Product A has 5 copies, and with the Quantity input text I type 10 copies, that order will still go through and add itself to the shopping cart.
However, if you try to add more instances of that product then it throws out the error message at the shopping cart.
How can I control so that it throws the error message the first time, since it’s over the available quantity?
August 12, 2010 at 1:19 am #23266amin007
ParticipantThe ability to specify the quantity field beside the “Add to Cart” button was recently added and it didn’t have the check. I have fixed this bug and sent you and updated copy of the plugin.
August 12, 2010 at 1:23 am #23267morticya33
MemberHey ya amin – Thanks for the quick reply! Was it a quick line that you fixed? I kinda hacked a few pages and it’ll help if you told me which lines you fixed (unless if it was a lot then I’d copy my code into yours instead of vice versa..
But thanks again!
August 12, 2010 at 1:28 am #23268amin007
ParticipantMy fix was only in the “wp_eStore1.php” file for this but I dont’ know which version you are upgrading from so other files may need to be synchronized too if your version was a bit older.
August 12, 2010 at 10:58 am #23269morticya33
MemberAh nah, I just bought it like earlier this week so I’m guessing it should be fine!
I’ll replace and let you know if it works!
August 12, 2010 at 11:16 am #23270morticya33
MemberUpdate : It works great now, thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.