- Theme Engine
- Design Principles
- Templates
- EVML Reference
- Output
- Comments
- Operators
- Statements and Declarations
- Built-in Functions
- Built-in Objects
- Account
- Address
- Array
- Boolean
- Branch
- Cart
- CartLine
- Category
- CategoryCollection
- CategoryFilter
- CategoryFilterCollection
- CategoryFilterOption
- CategorySearch
- Collection
- Color
- Contact
- Currency
- Date
- Discount
- Dom
- Event
- EventCollection
- EventSlot
- Image
- Layout
- Locale
- Money
- Number
- Object
- Page
- PageCollection
- PageSearch
- PageSharer
- Pagination
- Postage
- Price
- PriceDiscount
- Product
- ProductCollection
- ProductCustomisation
- ProductDownload
- ProductMedia
- ProductMediaFrame
- ProductPrice
- ProductSearch
- ProductSpecification
- ProductSpecificationValue
- ProductVariation
- ProductVariationOption
- RecentlyViewed
- RegExp
- Request
- Review
- ReviewCollection
- Search
- SearchCollection
- SearchResult
- String
- Tag
- Template
- Url
- Website
- EV Tags
- CSS Pre-processor
- Ajax API
/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. |