/cart/clear.json
A JSON object with the success boolean property is returned.
Example using JQuery
$.ajax({
url: "/cart/clear.json",
type: "POST",
dataType: "json",
success : function(returnValue) {
console.log(returnValue);
},
error: function(xhr, resp, text) {
console.log(xhr, resp, text);
}
});
Returned Object
The script returns an object with the following properties.
success
Returns true if the cart is successfully cleared. |