MOC-146354 Bill and Ted's Bogus Journey Phone Booth Time Machine
${function() {
const variantData = data.variant || {"id":"efdfd2b8-215c-4089-9ef9-e1612fade832","product_id":"f4251c3e-e4c5-4e12-ba0c-1650b16199b2","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0818","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.31,"min_quantity":1}],"weight":"0.04","compare_at_price":"4.31","price":"4.31","retail_price":"4.31","available":true,"url":"\/products\/moc-146354-bill-and-teds-bogus-journey-phone-booth-time-machine?variant=efdfd2b8-215c-4089-9ef9-e1612fade832","available_quantity":999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":100};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
Sku : A0818
Weight : 0.04kg
${function(){
const variantData = data.variant || {"id":"efdfd2b8-215c-4089-9ef9-e1612fade832","product_id":"f4251c3e-e4c5-4e12-ba0c-1650b16199b2","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0818","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.31,"min_quantity":1}],"weight":"0.04","compare_at_price":"4.31","price":"4.31","retail_price":"4.31","available":true,"url":"\/products\/moc-146354-bill-and-teds-bogus-journey-phone-booth-time-machine?variant=efdfd2b8-215c-4089-9ef9-e1612fade832","available_quantity":999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":100};
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 `
`;
}()}