Chic Abstract Print Canvas Bag
${function() {
const variantData = data.variant || {"id":"07b6e3b2-dfc0-4982-acea-31295a989fc0","product_id":"8ff50829-8014-4e22-be47-954b7f52acd2","title":"#1","weight_unit":"kg","inventory_quantity":0,"sku":"662307033756-#1","barcode":"","position":1,"option1":"#1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bd4afe1a427bbd97e14b717d018408d7.jpeg","path":"bd4afe1a427bbd97e14b717d018408d7.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.19,"min_quantity":1}],"weight":"0.05","compare_at_price":"27.5","price":"21.19","retail_price":"27.5","available":true,"url":"\/products\/chic-abstract-print-canvas-bag?variant=07b6e3b2-dfc0-4982-acea-31295a989fc0","available_quantity":999999999,"options":[{"name":"Style","value":"#1"}],"off_ratio":23,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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":"07b6e3b2-dfc0-4982-acea-31295a989fc0","product_id":"8ff50829-8014-4e22-be47-954b7f52acd2","title":"#1","weight_unit":"kg","inventory_quantity":0,"sku":"662307033756-#1","barcode":"","position":1,"option1":"#1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bd4afe1a427bbd97e14b717d018408d7.jpeg","path":"bd4afe1a427bbd97e14b717d018408d7.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.19,"min_quantity":1}],"weight":"0.05","compare_at_price":"27.5","price":"21.19","retail_price":"27.5","available":true,"url":"\/products\/chic-abstract-print-canvas-bag?variant=07b6e3b2-dfc0-4982-acea-31295a989fc0","available_quantity":999999999,"options":[{"name":"Style","value":"#1"}],"off_ratio":23,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}