Checkout Button
Button that links directly to checkout for a specific product.
Type: "checkoutButton"
Button that links directly to checkout for a specific product.
Props
| Field | Type | Default | Keterangan |
|---|---|---|---|
text | string | "Beli Sekarang" | Teks Tombol |
productId | string (product id) | — | Product |
alignment | enum | "center" | Alignment |
width | 'auto'|'full' | "auto" | Width |
metaTrackingEnabled | boolean | false | Aktifkan Meta Pixel |
metaEventPixelId | enum | — | Kosongkan untuk pakai Pixel default site. (tampil saat metaTrackingEnabled = true) |
tiktokTrackingEnabled | boolean | false | Aktifkan TikTok Pixel |
tiktokEventPixelId | enum | — | Kosongkan untuk pakai Pixel default site. (tampil saat tiktokTrackingEnabled = true) |
Contoh
{
"id": "che01abc",
"type": "checkoutButton",
"props": {
"text": "Beli Sekarang",
"productId": "",
"alignment": "center",
"width": "auto",
"metaTrackingEnabled": false,
"tiktokTrackingEnabled": false
}
}