- This topic has 8 replies, 2 voices, and was last updated 14 years, 3 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Inventory Control and Adding to Cart
What 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?
It should give you an error saying the requested quantity exceeds the available quantity.
Does 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?
Sorry, 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?
The 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.
Hey 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!
My 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.
Ah 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!
Update : It works great now, thanks!