The store owner is having a two-fold issue with the Add to Cart button on the PROD page. The have inventory variants set up (with quantities assigned to each one). But in order to get the Add to Cart button to display, they have also activated the Product Inventory level. Without it activated the Add to Cart button displays Out of Stock no matter which attribute is selected but the customer can still add to cart (although they may not realize it). If a quantity more than what is available is entered and attempted to be added the popup message will display the Product Level quantity. I did try testing with the Product Level Inventory unassigned and the popup message wasn't able to display the quantity available.
I seem to recall similar issues with the Add to Cart button not displaying the correct message as needed and I'll go dig around to see if I can find that. I don't recall anything about the AJAX Add To Cart function not displaying the correct inventory level (which actually gets the level from
) Can the result.inv_available be changed? If so, to what?
I seem to recall similar issues with the Add to Cart button not displaying the correct message as needed and I'll go dig around to see if I can find that. I don't recall anything about the AJAX Add To Cart function not displaying the correct inventory level (which actually gets the level from
Code:
$('#currentStock').val(result.inv_available);
Comment