Aloha! Surfing Tank
${function() {
const variantData = data.variant || {"id":"5a2c9534-ac00-4a1d-a827-7b2cbc1513c3","product_id":"bb72ea40-346d-414d-9f74-ef7c10b27149","title":"White-M","weight_unit":"g","inventory_quantity":99999996,"sku":"101894820006","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8200c64802699a6536f04f0a59a4f912.jpeg","path":"8200c64802699a6536f04f0a59a4f912.jpeg","width":692,"height":692,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17,"min_quantity":1}],"weight":"200","compare_at_price":"28","price":"17","retail_price":"28","available":true,"url":"\/products\/aloha-surfing-skull-print-mens-tank?variant=5a2c9534-ac00-4a1d-a827-7b2cbc1513c3","available_quantity":99999996,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":39,"flashsale_info":[],"sales":5464};
const saveType = "percentage";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const postageFreeAmount = 70;
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 `
`;
}()}
${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.