MOC-40622 Vader / Anakin Skywalker Brickheadz
${function() {
const variantData = data.variant || {"id":"edbedace-07e0-40ae-9511-778f00be7547","product_id":"278ec7a2-c211-4b0d-affc-e12db352d613","title":"","weight_unit":"kg","inventory_quantity":991,"sku":"A0123","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":9.38,"min_quantity":1}],"weight":"0.09","compare_at_price":"9.38","price":"9.38","retail_price":"9.38","available":true,"url":"\/products\/moc-40622-vader-anakin-skywalker-brickheadz?variant=edbedace-07e0-40ae-9511-778f00be7547","available_quantity":991,"options":[],"off_ratio":0,"flashsale_info":[],"sales":102};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
Sku : A0123
Weight : 0.09kg
${function(){
const variantData = data.variant || {"id":"edbedace-07e0-40ae-9511-778f00be7547","product_id":"278ec7a2-c211-4b0d-affc-e12db352d613","title":"","weight_unit":"kg","inventory_quantity":991,"sku":"A0123","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":9.38,"min_quantity":1}],"weight":"0.09","compare_at_price":"9.38","price":"9.38","retail_price":"9.38","available":true,"url":"\/products\/moc-40622-vader-anakin-skywalker-brickheadz?variant=edbedace-07e0-40ae-9511-778f00be7547","available_quantity":991,"options":[],"off_ratio":0,"flashsale_info":[],"sales":102};
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 `
`;
}()}