Вот куски кода рабочие
CODE (javascript):
скопировать код в буфер обмена
скопировать код в буфер обмена
- $.ajax(
- "/include/api/add.php",
- {
- type: "post",
- dataType: "json",
- context: this,
- data: {
- "type": "ajax",
- "controller": "cart",
- "action": "add",
- "id": id,
- "quantity": qty
- }
- })
- .done(function(data) {
- }