A JSON object with the success boolean property is returned.

Example using JQuery

        url: "/cart/clear.json",
        type: "POST",
        dataType: "json",
        success : function(returnValue) {
        error: function(xhr, resp, text) {
            console.log(xhr, resp, text);

Returned Object

The script returns an object with the following properties.


Returns true if the cart is successfully cleared.

COVID-19 NOTICE – Business as Usual
Evance continues to provide all services and support throughout this difficult period. See our full statement here