/cart/deleteLine.json

A JSON object with the success boolean property is returned.

Example using JQuery


    $.ajax({
        url: "/cart/deleteLine.json",
        type: "POST",
        dataType: "json",
        data: "id=1",
        success : function(returnValue) {
            console.log(returnValue);
        },
        error: function(xhr, resp, text) {
            console.log(xhr, resp, text);
        }
    });

Accepted Parameters

The deleteLine script requires you to define the following parameter.

id

The cart line id that you wish to delete from the cart.



Returned Object

The script returns an object with the following properties.

success

Returns true if the cartline is successfully deleted.