Christmas style knitted shoulder bag
${function() {
const variantData = data.variant || {"id":"6191e519-aae4-4dfc-9ee5-b7fd8b59b8f5","product_id":"38b46500-dbc0-497d-9a78-9c7caa0f8822","title":"navy","weight_unit":"kg","inventory_quantity":0,"sku":"66221028960-navy","barcode":"","position":1,"option1":"navy","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e6a6bb7758d3edf8389c9231150ef80.jpeg","path":"0e6a6bb7758d3edf8389c9231150ef80.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"11.24","price":"8.99","retail_price":"11.24","available":true,"url":"\/products\/christmas-style-knitted-shoulder-bag?variant=6191e519-aae4-4dfc-9ee5-b7fd8b59b8f5","available_quantity":999999999,"options":[{"name":"color","value":"navy"}],"off_ratio":20,"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":"6191e519-aae4-4dfc-9ee5-b7fd8b59b8f5","product_id":"38b46500-dbc0-497d-9a78-9c7caa0f8822","title":"navy","weight_unit":"kg","inventory_quantity":0,"sku":"66221028960-navy","barcode":"","position":1,"option1":"navy","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e6a6bb7758d3edf8389c9231150ef80.jpeg","path":"0e6a6bb7758d3edf8389c9231150ef80.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"11.24","price":"8.99","retail_price":"11.24","available":true,"url":"\/products\/christmas-style-knitted-shoulder-bag?variant=6191e519-aae4-4dfc-9ee5-b7fd8b59b8f5","available_quantity":999999999,"options":[{"name":"color","value":"navy"}],"off_ratio":20,"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 `
`;
}()}