Cart
Cart Component Documentation
Overview
Model Documentation
Model Structure
{
"id": "string",
"cssClass": "string",
"items": [
{
"id": "string",
"title": "string",
"imageLink": "string",
"price": "number",
"quantity": "number",
"sku": "string",
"link": "string"
}
],
"isAuthenticated": "boolean"
}
Example Model
{
"id": "cartComponent",
"cssClass": "cart-container",
"items": [
{
"id": "1",
"title": "Product 1",
"imageLink": "/images/product1.jpg",
"price": 100,
"quantity": 2,
"sku": "SKU1234",
"link": "/product/1"
},
{
"id": "2",
"title": "Product 2",
"imageLink": "/images/product2.jpg",
"price": 200,
"quantity": 1,
"sku": "SKU5678",
"link": "/product/2"
}
],
"isAuthenticated": true
}
Component Structure
HTML Template
JavaScript
Explanation
Modified at 2024-08-27 12:28:34