Product Quantity
Quantity picker (−/+) for the current product. Pair with addToCartButton. single_product only.
Type: "productQuantity"
Quantity picker (−/+) for the current product. Pair with addToCartButton. single_product only.
Catatan: Element template-only. Berlaku di template:
single_product.
Props
| Field | Type | Default | Keterangan |
|---|---|---|---|
label | string | "Jumlah" | Label |
minQuantity | number (1–999) | 1 | Min Qty |
maxQuantity | number (0–9999) | 0 | Max Qty (0 = ikut stok) |
size | 'sm'|'md'|'lg' | "md" | Ukuran |
alignment | enum | "left" | Alignment |
Contoh
{
"id": "pro01abc",
"type": "productQuantity",
"props": {
"label": "Jumlah",
"minQuantity": 1,
"maxQuantity": 0,
"size": "md",
"alignment": "left"
}
}