Easy Honey Dispenser Kettle
${function() {
const variantData = data.variant || {"id":"1467d206-2838-466f-bb33-66ad80d0b523","product_id":"93c9452f-eeb7-4a91-872f-54e0253000f1","title":"\ud83d\udc1dBuy 1","weight_unit":"kg","inventory_quantity":946,"sku":"SP569-PC","barcode":"","position":1,"option1":"\ud83d\udc1dBuy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8575aab5a851722e6a26570e0c21915.jpeg","path":"d8575aab5a851722e6a26570e0c21915.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.98,"min_quantity":1}],"weight":"0","compare_at_price":"32.8","price":"18.98","retail_price":"32.8","available":true,"url":"\/products\/easy-honey-dispenser-kettle?variant=1467d206-2838-466f-bb33-66ad80d0b523","available_quantity":999999999,"options":[{"name":"Honey Dispenser Hot sale","value":"\ud83d\udc1dBuy 1"}],"off_ratio":42,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Honey Dispenser Hot Sale:
🐝Buy 1
${function(){
const optName = "Honey Dispenser Hot sale";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$18.98
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"1467d206-2838-466f-bb33-66ad80d0b523","product_id":"93c9452f-eeb7-4a91-872f-54e0253000f1","title":"\ud83d\udc1dBuy 1","weight_unit":"kg","inventory_quantity":946,"sku":"SP569-PC","barcode":"","position":1,"option1":"\ud83d\udc1dBuy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8575aab5a851722e6a26570e0c21915.jpeg","path":"d8575aab5a851722e6a26570e0c21915.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.98,"min_quantity":1}],"weight":"0","compare_at_price":"32.8","price":"18.98","retail_price":"32.8","available":true,"url":"\/products\/easy-honey-dispenser-kettle?variant=1467d206-2838-466f-bb33-66ad80d0b523","available_quantity":999999999,"options":[{"name":"Honey Dispenser Hot sale","value":"\ud83d\udc1dBuy 1"}],"off_ratio":42,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.