MOC-165912 Doctor Who - 12th doctor Tardis
${function() {
const variantData = data.variant || {"id":"a1e7faf7-0286-4e25-a76a-ace9eb9d177b","product_id":"63982527-1c78-440b-a16b-1644ec2d9655","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A1267","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":205.32,"min_quantity":1}],"weight":"0","compare_at_price":"205.32","price":"205.32","retail_price":"205.32","available":true,"url":"\/products\/moc-165912-doctor-who-12th-doctor-tardis?variant=a1e7faf7-0286-4e25-a76a-ace9eb9d177b","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a1e7faf7-0286-4e25-a76a-ace9eb9d177b","product_id":"63982527-1c78-440b-a16b-1644ec2d9655","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A1267","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":205.32,"min_quantity":1}],"weight":"0","compare_at_price":"205.32","price":"205.32","retail_price":"205.32","available":true,"url":"\/products\/moc-165912-doctor-who-12th-doctor-tardis?variant=a1e7faf7-0286-4e25-a76a-ace9eb9d177b","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
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 `
`;
}()}