magvike-TMColorful bird hanging planter
${function() {
const variantData = data.variant || {"id":"abba6bc2-23fd-4def-af1e-490261562593","product_id":"4cd9a582-4b0a-4547-93ee-66b6644b83db","title":"Flamingo-Small(35*12*10cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"XG1970588-\u7c89\u8272\u706b\u70c8\u9e1f\u5c0f\u53f7","barcode":"","position":1,"option1":"Flamingo","option2":"Small(35*12*10cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bc953b7d9b3a40f590165ec5371b7b6d.jpeg","path":"bc953b7d9b3a40f590165ec5371b7b6d.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.9","price":"27.99","retail_price":"49.9","available":true,"url":"\/products\/bright-colorful-bird-hanging-planter-yard-decor-buy-2-free-shipping-27353fc0e-5cd4-474a-8f4c-b65ab42c7817?variant=abba6bc2-23fd-4def-af1e-490261562593","available_quantity":999999999,"options":[{"name":"Style","value":"Flamingo"},{"name":"SIZE","value":"Small(35*12*10cm)"}],"off_ratio":44,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Flamingo
${function(){
const optName = "Style";
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}
`
}()}
Size:
Small(35*12*10cm)
${function(){
const optName = "SIZE";
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
$27.99
${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":"abba6bc2-23fd-4def-af1e-490261562593","product_id":"4cd9a582-4b0a-4547-93ee-66b6644b83db","title":"Flamingo-Small(35*12*10cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"XG1970588-\u7c89\u8272\u706b\u70c8\u9e1f\u5c0f\u53f7","barcode":"","position":1,"option1":"Flamingo","option2":"Small(35*12*10cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bc953b7d9b3a40f590165ec5371b7b6d.jpeg","path":"bc953b7d9b3a40f590165ec5371b7b6d.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.9","price":"27.99","retail_price":"49.9","available":true,"url":"\/products\/bright-colorful-bird-hanging-planter-yard-decor-buy-2-free-shipping-27353fc0e-5cd4-474a-8f4c-b65ab42c7817?variant=abba6bc2-23fd-4def-af1e-490261562593","available_quantity":999999999,"options":[{"name":"Style","value":"Flamingo"},{"name":"SIZE","value":"Small(35*12*10cm)"}],"off_ratio":44,"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":"abba6bc2-23fd-4def-af1e-490261562593","product_id":"4cd9a582-4b0a-4547-93ee-66b6644b83db","title":"Flamingo-Small(35*12*10cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"XG1970588-\u7c89\u8272\u706b\u70c8\u9e1f\u5c0f\u53f7","barcode":"","position":1,"option1":"Flamingo","option2":"Small(35*12*10cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bc953b7d9b3a40f590165ec5371b7b6d.jpeg","path":"bc953b7d9b3a40f590165ec5371b7b6d.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.9","price":"27.99","retail_price":"49.9","available":true,"url":"\/products\/bright-colorful-bird-hanging-planter-yard-decor-buy-2-free-shipping-27353fc0e-5cd4-474a-8f4c-b65ab42c7817?variant=abba6bc2-23fd-4def-af1e-490261562593","available_quantity":999999999,"options":[{"name":"Style","value":"Flamingo"},{"name":"SIZE","value":"Small(35*12*10cm)"}],"off_ratio":44,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}