javascript_par_defaut_sur_la_page_product
This is an old revision of the document!
Table of Contents
Bindings :
quantité :
sélecteur | $('select[name=“profile_id”], input[name=“quantity”]').change(…) | |
---|---|---|
requête AJAX | ||
url | index.php?route=product/product/getRecurringDescription | |
data | $('input[name=“product_id”], input[name=“quantity”], select[name=“profile_id”]') | |
data ex. | quantity=8&product_id=42 | |
beforesend: | $('#profile-description').html(''); | |
success | $('.success, .warning, .attention, information, .error').remove(); if (json['success']) { $('#profile-description').html(json['success']);} |
cart :
sélecteur | $('#button-cart').bind('click',…) | |
---|---|---|
requête AJAX | ||
url | index.php?route=checkout/cart/add | |
data | $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea') | |
data ex. | option%5B217%5D=4&option%5B218%5D=6&option%5B223%5D%5B%5D=8&quantity=2&product_id=42 | |
data ex. (decodé) | option[217]=4&option[218]=6&option[223][]=8&quantity=2&product_id=42 | |
success | … |
options :
javascript_par_defaut_sur_la_page_product.1422879848.txt.gz · Last modified: 2015/02/02 13:24 by 78.250.57.239