MOC-3961 Apex Legends & Titanfall 2 – Wingman Revolver
${function() {
const variantData = data.variant || {"id":"c33494b0-4d1f-4c95-89ae-2a2b4dfc9dad","product_id":"248f4de3-f3c3-45ed-b2d8-014e616c60f7","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0333","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":40.49,"min_quantity":1}],"weight":"0.39","compare_at_price":"40.49","price":"40.49","retail_price":"40.49","available":true,"url":"\/products\/moc-3961-apex-legends-titanfall-2-wingman-revolver?variant=c33494b0-4d1f-4c95-89ae-2a2b4dfc9dad","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.
${function(){
const variantData = data.variant || {"id":"c33494b0-4d1f-4c95-89ae-2a2b4dfc9dad","product_id":"248f4de3-f3c3-45ed-b2d8-014e616c60f7","title":"","weight_unit":"kg","inventory_quantity":999,"sku":"A0333","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":40.49,"min_quantity":1}],"weight":"0.39","compare_at_price":"40.49","price":"40.49","retail_price":"40.49","available":true,"url":"\/products\/moc-3961-apex-legends-titanfall-2-wingman-revolver?variant=c33494b0-4d1f-4c95-89ae-2a2b4dfc9dad","available_quantity":999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":100};
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 `
`;
}()}