Handmade Beach Vacation Woven Bag
${function() {
const variantData = data.variant || {"id":"3b5c92e7-0687-4916-bec5-6b2231515f2c","product_id":"2240b181-bcd9-425e-9693-8fd7dd6486ef","title":"weave","weight_unit":"kg","inventory_quantity":0,"sku":"662206241906-weave","barcode":"","position":1,"option1":"weave","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/baaaba8b117862bd3e82a2e37afa785b.jpeg","path":"baaaba8b117862bd3e82a2e37afa785b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.82,"min_quantity":1}],"weight":"0","compare_at_price":"38.8","price":"31.82","retail_price":"38.8","available":true,"url":"\/products\/handmade-beach-vacation-woven-bag?variant=3b5c92e7-0687-4916-bec5-6b2231515f2c","available_quantity":999999999,"options":[{"name":"Style","value":"weave"}],"off_ratio":18,"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":"3b5c92e7-0687-4916-bec5-6b2231515f2c","product_id":"2240b181-bcd9-425e-9693-8fd7dd6486ef","title":"weave","weight_unit":"kg","inventory_quantity":0,"sku":"662206241906-weave","barcode":"","position":1,"option1":"weave","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/baaaba8b117862bd3e82a2e37afa785b.jpeg","path":"baaaba8b117862bd3e82a2e37afa785b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.82,"min_quantity":1}],"weight":"0","compare_at_price":"38.8","price":"31.82","retail_price":"38.8","available":true,"url":"\/products\/handmade-beach-vacation-woven-bag?variant=3b5c92e7-0687-4916-bec5-6b2231515f2c","available_quantity":999999999,"options":[{"name":"Style","value":"weave"}],"off_ratio":18,"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 `
`;
}()}