${function() {
const variantData = data.variant || {"id":"7d6bb105-e4b3-4ff0-8cb0-660b5b56d7de","product_id":"4515a4ad-c1ea-4da4-b189-78615188b900","title":"Black-One Size","weight_unit":"g","inventory_quantity":99994,"sku":"101025910001","barcode":"Black-One SizeA00123625","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/46177fe6ce9fd4de6f3debfd98ae6db1.jpeg","path":"46177fe6ce9fd4de6f3debfd98ae6db1.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.98,"min_quantity":1}],"weight":"160","compare_at_price":"18.98","price":"17.98","retail_price":"18.98","available":true,"url":"\/products\/autunm-vintage-ethnic-embellishment-women-fur-felt-hat-top-hat?variant=7d6bb105-e4b3-4ff0-8cb0-660b5b56d7de","available_quantity":99994,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":5,"flashsale_info":[],"sales":68};
const saveType = "percentage";
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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"7d6bb105-e4b3-4ff0-8cb0-660b5b56d7de","product_id":"4515a4ad-c1ea-4da4-b189-78615188b900","title":"Black-One Size","weight_unit":"g","inventory_quantity":99994,"sku":"101025910001","barcode":"Black-One SizeA00123625","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/46177fe6ce9fd4de6f3debfd98ae6db1.jpeg","path":"46177fe6ce9fd4de6f3debfd98ae6db1.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.98,"min_quantity":1}],"weight":"160","compare_at_price":"18.98","price":"17.98","retail_price":"18.98","available":true,"url":"\/products\/autunm-vintage-ethnic-embellishment-women-fur-felt-hat-top-hat?variant=7d6bb105-e4b3-4ff0-8cb0-660b5b56d7de","available_quantity":99994,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":5,"flashsale_info":[],"sales":68};
return `
`
}()}