I need a php script that uses ajax/jquery to dynamically check the inventory of an item when options are chosen and if the item is not in stock does not allow it to be purchased. The inventory check will use a simple existing php function I have already built. All you need to do is code the ajax/jquery part and intergrate it into our existing site.
You can view our item page here: [url removed, login to view]
Notice this options offered are Size, Color, and Buckle option. The full item number is made up of the base item number 270
270-SIZE-COLOR-BUCKLE (example: 270-BLA-32-NO). Once a customer selects a size and color if there is no inventory of the item available the qty, and add to cart section hide and replace with a message that says the item is not available. This should work for any item in our database following the logic of the item number base, plus option codes.
Please Note: We must use JQUERY, VALID XHTML, and php only. Ajax is also allowed if needed.