Japanese-style cotton linen simple paper box
${function() {
const variantData = data.variant || {"id":"b1aeb56b-943a-4f2e-a7aa-423b68b773d0","product_id":"5c9cd565-5414-48af-af64-996534bf5a80","title":"#3","weight_unit":"kg","inventory_quantity":0,"sku":"662302214658-#3","barcode":"","position":3,"option1":"#3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40bce7b5bdc5e9a2cb6b6747fc8a0180.jpeg","path":"40bce7b5bdc5e9a2cb6b6747fc8a0180.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"25","price":"19.99","retail_price":"25","available":true,"url":"\/products\/japanese-style-cotton-linen-simple-paper-box?variant=b1aeb56b-943a-4f2e-a7aa-423b68b773d0","available_quantity":999999999,"options":[{"name":"color","value":"#3"}],"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":"b1aeb56b-943a-4f2e-a7aa-423b68b773d0","product_id":"5c9cd565-5414-48af-af64-996534bf5a80","title":"#3","weight_unit":"kg","inventory_quantity":0,"sku":"662302214658-#3","barcode":"","position":3,"option1":"#3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40bce7b5bdc5e9a2cb6b6747fc8a0180.jpeg","path":"40bce7b5bdc5e9a2cb6b6747fc8a0180.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"25","price":"19.99","retail_price":"25","available":true,"url":"\/products\/japanese-style-cotton-linen-simple-paper-box?variant=b1aeb56b-943a-4f2e-a7aa-423b68b773d0","available_quantity":999999999,"options":[{"name":"color","value":"#3"}],"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 `
`;
}()}