SHOW:
|
|
- or go back to the newest paste.
1 | // Add to Cart JS/jQ code: | |
2 | jQuery.ajax({ | |
3 | url: '/Common/BasketSVC.asmx/AddQtyToCart', | |
4 | data: JSON.stringify({ | |
5 | - | _ProductId: 21489, |
5 | + | _ProductId: 888888, |
6 | qty: 1, | |
7 | autoDelivery: false, | |
8 | freq: 1, | |
9 | elementAction: 1 | |
10 | }), | |
11 | dataType: "json", | |
12 | contentType: "application/json;", | |
13 | type: 'POST', | |
14 | - | success: function() { |
14 | + | success: function() { /* either do something(); or return; */ } |
15 | - | basket.ApplyCoupon('20140217safetravels', null, null); |
15 | + |