Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantity Check issue #707

Open
wa4u opened this issue Sep 24, 2015 · 0 comments
Open

Quantity Check issue #707

wa4u opened this issue Sep 24, 2015 · 0 comments
Assignees

Comments

@wa4u
Copy link
Member

wa4u commented Sep 24, 2015

Check stock level Yes
Subtract stock Yes
Autodisable out of stock product Yes
Disable Add to Cart for out of stock products Yes

When we have 25 items in stock and if I try to add 3, the stock level checking code alert "There is not enough stock on hand to purchase your desired quantity of this product. Please lower your quantity to checkout."

For some reason, javascript is considering 2 not 25.

templates/core/products/info.php
find

if (data.qoh < $("#quantity").val()) {

update

if (parseInt(data.qoh) < $("#quantity").val()) {

templates/core/checkout/shopping_cart.php
find

if (data.priceData.qoh < $('#products_' + row).val()) {

update

if (parseInt(data.priceData.qoh) < $('#products_' + row).val()) {

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26923068-quantity-check-issue?utm_campaign=plugin&utm_content=tracker%2F40949&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F40949&utm_medium=issues&utm_source=github).
@wa4u wa4u added the bug label Sep 24, 2015
@wa4u wa4u self-assigned this Sep 24, 2015
wa4u added a commit that referenced this issue Sep 24, 2015
@wa4u wa4u added the 3 - Done label Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant