${function() {
const variantData = data.variant || {"id":"4ed55cb6-eccb-41a5-b795-dc7489ca56b2","product_id":"3647d7c5-fab0-4b8b-8110-a103d1908190","title":"Black-S","weight_unit":"kg","inventory_quantity":999999,"sku":"10182541-Black-S-A0014017","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/75c43ebff7dde3658553637c4f7aaf7b.webp","path":"75c43ebff7dde3658553637c4f7aaf7b.webp","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.98","price":"13.99","retail_price":"29.98","available":true,"url":"\/products\/kill-your-local-pedo-printed-mens-t-shirt?variant=4ed55cb6-eccb-41a5-b795-dc7489ca56b2","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":53,"flashsale_info":[],"sales":43};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const postageFreeAmount = 79;
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}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"4ed55cb6-eccb-41a5-b795-dc7489ca56b2","product_id":"3647d7c5-fab0-4b8b-8110-a103d1908190","title":"Black-S","weight_unit":"kg","inventory_quantity":999999,"sku":"10182541-Black-S-A0014017","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/75c43ebff7dde3658553637c4f7aaf7b.webp","path":"75c43ebff7dde3658553637c4f7aaf7b.webp","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.98","price":"13.99","retail_price":"29.98","available":true,"url":"\/products\/kill-your-local-pedo-printed-mens-t-shirt?variant=4ed55cb6-eccb-41a5-b795-dc7489ca56b2","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":53,"flashsale_info":[],"sales":43};
return `
`
}()}