Skip to content

1.2.0 Beta Bug: Out of Stock Still Adds to Cart #574

Closed
chriscct7 opened this Issue Apr 13, 2012 · 9 comments

4 participants

@chriscct7
Jigoshop member

If I create a simple product with stock=0, and manage stock for me =true, on clicking add to cart, I get both the out of stock and added to cart notices.

@studioromeo

Fixed. Will be pushed out in next beta

@etrunkv
etrunkv commented Jul 11, 2012

When is jigoshop releasing the new version? I have the same problem :(

@divergeinfinity

What version are you using. This is fixed in at least version 1.2.3 as you can't add a product that is out of stock with the settings mentioned in this issue.

@etrunkv
@divergeinfinity

I've been going through a number of update procedures for the pending 1.3 release and with a fresh install of version 1.2.3, here is my product settings for a product:

Edit Product Inventory Tab

http://d.pr/i/ae4I

Here is how it appears on the Shop:

http://d.pr/i/STA6

And it's Single Product page:

http://d.pr/i/CqWu

So the question becomes ... how are you getting an Add to Cart button for a product configured this way?

Have you 'updated' the product?

Is your Edit Product Inventory Tab configured as mine?

@etrunkv
etrunkv commented Jul 11, 2012

Thanks again for your quick reply! Really appreciated :)

I followed your steps and you're right if the product is set to 0 then the add to cart button doesn't show.

And I realise now that this is a different problem concerning out-of-stock. Apologies for not making this clear sooner.

The problem is: when you set Product inventory to manage stock and you add 2 items. Jigoshop doesn't show the error message when someone tries to order more than 2 items. You will get two messages. One saying it's out of stock and only 2 is available and the other gives the succesful added to cart message.

This is what you see on the product page:
http://d.pr/i/ydXk

And this is what you see after you added 3 items to your cart:
http://d.pr/i/o5Fu

Is this a known problem?

@etrunkv
etrunkv commented Jul 11, 2012

And to be specific i've set re-ordering option to 'not allowed'. So I know it's not that either :(

@divergeinfinity

Ok, and in that case, I don't see this as a problem ... it is expected behaviour.

You tried to add a product with qty of 3 to the Cart. It informed the customer that there were only 2, and prior to clicking the Add to Cart button that is what was shown.

http://d.pr/i/POp7 -- (mine only shows qty of 1)

So fine, bump it up over the available amount and because backorders aren't allowed (re-ordering?), then yes, you get 2 messages. One informing there weren't enough to fulfill the request and one noting that the current quantity on hand was added to the Cart.

@etrunkv
etrunkv commented Jul 11, 2012

Oh dear, i'm so sorry!! But thank you for clearfying :) and yes I meant backordering ;-)
Thanks for letting me know and all your efforts, still very very much appreciated!!
Cheers!

@studioromeo studioromeo pushed a commit that referenced this issue Aug 4, 2012
Robert Rhoades Fixes #574, availability wasn't being checked properly 57483fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.