Joyme Freeze-dried Brussels Sprouts
${function() {
const variantData = data.variant || {"id":"1a40b9fc-f04b-4097-b4f5-f721e5df08f5","product_id":"91eda052-11b0-4776-9843-f0b7d7b938a9","title":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)-1 can (25% off 2 pcs)","weight_unit":"kg","inventory_quantity":200,"sku":"5068117432553","barcode":"","position":1,"option1":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)","option2":"1 can (25% off 2 pcs)","option3":"","note":"","image":null,"wholesale_price":[{"price":18.81,"min_quantity":1}],"weight":"0","compare_at_price":"35.9","price":"18.81","retail_price":"35.9","available":true,"url":"\/products\/joyme-freeze-dried-brussels-sprouts?variant=1a40b9fc-f04b-4097-b4f5-f721e5df08f5","available_quantity":200,"options":[{"name":"Food flavors","value":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)"},{"name":"Net content","value":"1 can (25% off 2 pcs)"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
people are viewing this right now
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"1a40b9fc-f04b-4097-b4f5-f721e5df08f5","product_id":"91eda052-11b0-4776-9843-f0b7d7b938a9","title":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)-1 can (25% off 2 pcs)","weight_unit":"kg","inventory_quantity":200,"sku":"5068117432553","barcode":"","position":1,"option1":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)","option2":"1 can (25% off 2 pcs)","option3":"","note":"","image":null,"wholesale_price":[{"price":18.81,"min_quantity":1}],"weight":"0","compare_at_price":"35.9","price":"18.81","retail_price":"35.9","available":true,"url":"\/products\/joyme-freeze-dried-brussels-sprouts?variant=1a40b9fc-f04b-4097-b4f5-f721e5df08f5","available_quantity":200,"options":[{"name":"Food flavors","value":"[Light and Crispy] Upgraded Freeze-dried Kale with Spores 40g*cut in half (Green)"},{"name":"Net content","value":"1 can (25% off 2 pcs)"}],"off_ratio":48,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + '')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + '');
return `
${tipText}
`;
}()}