MOC-22348 Harry Potter Skyline Architecture
${function() {
const variantData = data.variant || {"id":"03ba4732-fd9b-477b-852e-c5522cd556a5","product_id":"7705c890-a05a-48ac-81fc-23afe4d5ea4a","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0400","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":34.09,"min_quantity":1}],"weight":"0.34","compare_at_price":"34.09","price":"34.09","retail_price":"34.09","available":true,"url":"\/products\/moc-22348-harry-potter-skyline-architecture?variant=03ba4732-fd9b-477b-852e-c5522cd556a5","available_quantity":999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":101};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
Sku : A0400
Weight : 0.34kg
${function(){
const variantData = data.variant || {"id":"03ba4732-fd9b-477b-852e-c5522cd556a5","product_id":"7705c890-a05a-48ac-81fc-23afe4d5ea4a","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0400","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":34.09,"min_quantity":1}],"weight":"0.34","compare_at_price":"34.09","price":"34.09","retail_price":"34.09","available":true,"url":"\/products\/moc-22348-harry-potter-skyline-architecture?variant=03ba4732-fd9b-477b-852e-c5522cd556a5","available_quantity":999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":101};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 20;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}