For Motorola Moto Edge 50 Fusion G85 G84 G64 G54 G53 G24 Power G04S G34 G22 G14 G20 G10 E32 E22i E30 Phone Case Cute Bear Cover
${function() {
const variantData = data.variant || {"id":"f2149322-0ffb-4bd5-9f46-b98e8decf374","product_id":"4d892351-b2bb-49f9-9efa-031846199fa9","title":"Wine-Moto G24 Power","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Wine","option2":"Moto G24 Power","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f2f8c507711ae609be4b341cf778b0b5.jpeg","path":"f2f8c507711ae609be4b341cf778b0b5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":2.44,"min_quantity":1}],"weight":"0","compare_at_price":"3.76","price":"2.44","retail_price":"3.76","available":true,"url":"\/products\/for-motorola-moto-edge-50-fusion-g85-g84-g64-g54-g53-g24-power-g04s-g34-g22-g14-g20-g10-e32-e22i-e30-phone-case-cute-bear-cover?variant=f2149322-0ffb-4bd5-9f46-b98e8decf374","available_quantity":999999999,"options":[{"name":"Color","value":"Wine"},{"name":"Material","value":"Moto G24 Power"}],"off_ratio":35,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Wine
${function(){
const optName = "Color";
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}
`
}()}
Material:
Moto G24 Power
${function(){
const optName = "Material";
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
$2.44
${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":"f2149322-0ffb-4bd5-9f46-b98e8decf374","product_id":"4d892351-b2bb-49f9-9efa-031846199fa9","title":"Wine-Moto G24 Power","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Wine","option2":"Moto G24 Power","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f2f8c507711ae609be4b341cf778b0b5.jpeg","path":"f2f8c507711ae609be4b341cf778b0b5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":2.44,"min_quantity":1}],"weight":"0","compare_at_price":"3.76","price":"2.44","retail_price":"3.76","available":true,"url":"\/products\/for-motorola-moto-edge-50-fusion-g85-g84-g64-g54-g53-g24-power-g04s-g34-g22-g14-g20-g10-e32-e22i-e30-phone-case-cute-bear-cover?variant=f2149322-0ffb-4bd5-9f46-b98e8decf374","available_quantity":999999999,"options":[{"name":"Color","value":"Wine"},{"name":"Material","value":"Moto G24 Power"}],"off_ratio":35,"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":"f2149322-0ffb-4bd5-9f46-b98e8decf374","product_id":"4d892351-b2bb-49f9-9efa-031846199fa9","title":"Wine-Moto G24 Power","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Wine","option2":"Moto G24 Power","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f2f8c507711ae609be4b341cf778b0b5.jpeg","path":"f2f8c507711ae609be4b341cf778b0b5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":2.44,"min_quantity":1}],"weight":"0","compare_at_price":"3.76","price":"2.44","retail_price":"3.76","available":true,"url":"\/products\/for-motorola-moto-edge-50-fusion-g85-g84-g64-g54-g53-g24-power-g04s-g34-g22-g14-g20-g10-e32-e22i-e30-phone-case-cute-bear-cover?variant=f2149322-0ffb-4bd5-9f46-b98e8decf374","available_quantity":999999999,"options":[{"name":"Color","value":"Wine"},{"name":"Material","value":"Moto G24 Power"}],"off_ratio":35,"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('15');
const maxDays = parseInt('30');
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}
`;
}()}