${function() {
const variantData = data.variant || {"id":"90ec52d0-a27b-46df-a139-155ebfb26c20","product_id":"cf248b44-3200-4ec0-9946-67e0249f0d36","title":"2 Pairs-OneSize","weight_unit":"kg","inventory_quantity":9988,"sku":"BK1420-Stockings-2pairs","barcode":"","position":1,"option1":"2 Pairs","option2":"OneSize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7077c18c34e08b22a028e4605eed731e.jpeg","path":"7077c18c34e08b22a028e4605eed731e.jpeg","width":1500,"height":1498,"alt":"","aspect_ratio":1.0013351134846462},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/womens-goth-fishnet-high-tights-stocking-set?variant=90ec52d0-a27b-46df-a139-155ebfb26c20","available_quantity":9988,"options":[{"name":"Style","value":"2 Pairs"},{"name":"Size","value":"OneSize"}],"off_ratio":0,"flashsale_info":[],"sales":2};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"90ec52d0-a27b-46df-a139-155ebfb26c20","product_id":"cf248b44-3200-4ec0-9946-67e0249f0d36","title":"2 Pairs-OneSize","weight_unit":"kg","inventory_quantity":9988,"sku":"BK1420-Stockings-2pairs","barcode":"","position":1,"option1":"2 Pairs","option2":"OneSize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7077c18c34e08b22a028e4605eed731e.jpeg","path":"7077c18c34e08b22a028e4605eed731e.jpeg","width":1500,"height":1498,"alt":"","aspect_ratio":1.0013351134846462},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/womens-goth-fishnet-high-tights-stocking-set?variant=90ec52d0-a27b-46df-a139-155ebfb26c20","available_quantity":9988,"options":[{"name":"Style","value":"2 Pairs"},{"name":"Size","value":"OneSize"}],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
`
}()}
${function() {
const postageFreeAmount = 100;
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 `
`;
}()}