Don't Drink T-shirt
${function() {
const variantData = data.variant || {"id":"11f02368-8f6a-46a5-b5a2-3aaf2fe0fcc4","product_id":"7bc4bf73-2c71-4a86-b0b8-c6a7cebe43fa","title":"black-S","weight_unit":"g","inventory_quantity":999,"sku":"1734158113019342849","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9dcb60c3b5f38b545f19916c21e15273.png","path":"9dcb60c3b5f38b545f19916c21e15273.png","width":1313,"height":1678,"alt":"Don't Drink T-shirt Techwear Shop","aspect_ratio":0.7824791418355185},"wholesale_price":[{"price":25.95,"min_quantity":1}],"weight":"300","compare_at_price":"0","price":"25.95","retail_price":"0","available":true,"url":"\/products\/dont-drink-t-shirt?variant=11f02368-8f6a-46a5-b5a2-3aaf2fe0fcc4","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"11f02368-8f6a-46a5-b5a2-3aaf2fe0fcc4","product_id":"7bc4bf73-2c71-4a86-b0b8-c6a7cebe43fa","title":"black-S","weight_unit":"g","inventory_quantity":999,"sku":"1734158113019342849","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9dcb60c3b5f38b545f19916c21e15273.png","path":"9dcb60c3b5f38b545f19916c21e15273.png","width":1313,"height":1678,"alt":"Don't Drink T-shirt Techwear Shop","aspect_ratio":0.7824791418355185},"wholesale_price":[{"price":25.95,"min_quantity":1}],"weight":"300","compare_at_price":"0","price":"25.95","retail_price":"0","available":true,"url":"\/products\/dont-drink-t-shirt?variant=11f02368-8f6a-46a5-b5a2-3aaf2fe0fcc4","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}