Skip to content

Commit

Permalink
#707 - Fixed Stock in hand check issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
wa4u committed Sep 24, 2015
1 parent d7ca37e commit 61f8104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/templates/core/content/checkout/shopping_cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function (data) {
$('#btn-checkout').attr('onclick', href);
if (stockCheck == true) {
if (disableAddToCart == true) {
if (data.priceData.qoh < $('#products_' + row).val()) {
if (parseInt(data.priceData.qoh) < $('#products_' + row).val()) {
$('#lowqoh').modal();
$("#btn-checkout").attr('disabled', 'disabled');
} else {
Expand Down
2 changes: 1 addition & 1 deletion catalog/templates/core/content/products/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function (data) {
$('#btn-buy-now').attr('onclick', href);
if (stockCheck == true) {
if (disableAddToCart == true) {
if (data.qoh < $("#quantity").val()) {
if (parseInt(data.qoh) < $("#quantity").val()) {
$('#lowqoh').modal();
$("#btn-buy-now").attr('disabled', 'disabled');
} else {
Expand Down

0 comments on commit 61f8104

Please sign in to comment.