⛄Early Christmas Sale🎄Nativity Scene Christmas Tree Ornament🎅
${function() {
const variantData = data.variant || {"id":"9033e655-c675-4300-877a-3e08d2f9fffb","product_id":"0ad64f98-c7ec-4ed8-a30c-d41b838e5fe3","title":"\ud83d\udd25Buy 1 get 1 free (2pcs)","weight_unit":"kg","inventory_quantity":100,"sku":"kv75-2","barcode":"","position":1,"option1":"\ud83d\udd25Buy 1 get 1 free (2pcs)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc5ef525f2368c0edee15977302976cd.jpeg","path":"fc5ef525f2368c0edee15977302976cd.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"21","retail_price":"40","available":true,"url":"\/products\/35946?variant=9033e655-c675-4300-877a-3e08d2f9fffb","available_quantity":999999999,"options":[{"name":"BuyMoreSaveMore","value":"\ud83d\udd25Buy 1 get 1 free (2pcs)"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Buymoresavemore:
🔥Buy 1 get 1 free (2pcs)
${function(){
const optName = "BuyMoreSaveMore";
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
€21
${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":"9033e655-c675-4300-877a-3e08d2f9fffb","product_id":"0ad64f98-c7ec-4ed8-a30c-d41b838e5fe3","title":"\ud83d\udd25Buy 1 get 1 free (2pcs)","weight_unit":"kg","inventory_quantity":100,"sku":"kv75-2","barcode":"","position":1,"option1":"\ud83d\udd25Buy 1 get 1 free (2pcs)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc5ef525f2368c0edee15977302976cd.jpeg","path":"fc5ef525f2368c0edee15977302976cd.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"21","retail_price":"40","available":true,"url":"\/products\/35946?variant=9033e655-c675-4300-877a-3e08d2f9fffb","available_quantity":999999999,"options":[{"name":"BuyMoreSaveMore","value":"\ud83d\udd25Buy 1 get 1 free (2pcs)"}],"off_ratio":48,"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.
${function(){
const variantData = data.variant || {"id":"9033e655-c675-4300-877a-3e08d2f9fffb","product_id":"0ad64f98-c7ec-4ed8-a30c-d41b838e5fe3","title":"\ud83d\udd25Buy 1 get 1 free (2pcs)","weight_unit":"kg","inventory_quantity":100,"sku":"kv75-2","barcode":"","position":1,"option1":"\ud83d\udd25Buy 1 get 1 free (2pcs)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc5ef525f2368c0edee15977302976cd.jpeg","path":"fc5ef525f2368c0edee15977302976cd.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"21","retail_price":"40","available":true,"url":"\/products\/35946?variant=9033e655-c675-4300-877a-3e08d2f9fffb","available_quantity":999999999,"options":[{"name":"BuyMoreSaveMore","value":"\ud83d\udd25Buy 1 get 1 free (2pcs)"}],"off_ratio":48,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}