Product Price
Auto-renders product price in the site currency; shows sale strikethrough. For variant (or digital multi-plan) products, variantPriceDisplay='auto' shows a min–max range until an option is chosen, then the chosen price. single_product / shop_catalog.
Type: "productPrice"
Auto-renders product price in the site currency; shows sale strikethrough. For variant (or digital multi-plan) products, variantPriceDisplay='auto' shows a min–max range until an option is chosen, then the chosen price. single_product / shop_catalog.
Catatan: Element template-only. Berlaku di template:
single_product,shop_catalog,product_category,search.
Props
| Field | Type | Default | Keterangan |
|---|---|---|---|
showOriginalOnSale | boolean | true | Tampilkan harga asli (strikethrough) saat sale |
saleColorScheme | 'primary'|'destructive'|'inherit' | "primary" | Warna Harga Sale |
alignment | enum | "left" | Alignment |
size | 'sm'|'md'|'lg'|'xl' | "lg" | Ukuran |
outOfStockLabel | string | "Stok Habis" | Teks saat stok habis |
variantPriceDisplay | 'auto'|'base' | "auto" | Harga varian (belum dipilih) |
Contoh
{
"id": "pro01abc",
"type": "productPrice",
"props": {
"showOriginalOnSale": true,
"saleColorScheme": "primary",
"alignment": "left",
"size": "lg",
"outOfStockLabel": "Stok Habis",
"variantPriceDisplay": "auto"
}
}