I need check if exists combinations with values selected in web service prestashop (jQuery, Javascript, Ajax, etc not PHP), example:
I have two select (html) with two products options
#
Size: 36, 38, 42, etc.
Color: Blue, Black, White, Green, etc.
#
This shoes is available in Blue-42, Black-42, White-38 and not all options is available.
The web service of prestashop get all product_option_values only id, i can not check if the option selected is the size or color with data return of web service.
For example, not permited add to cart with options of combinations not available.
Thanks!
<select>
how check if the has change of the select is size, color or other attribute? - Daniel Riera/themes/your_theme/js/product.js
you'll find all the elements (especially triggered events) you need ;) - Julien Lachal