${function() {
const variantData = data.variant || {"id":"31aed218-106c-41f5-9c1f-59aa2225e487","product_id":"08a4a490-cebe-4e6e-9175-b5960c90a192","title":"White-S","weight_unit":"kg","inventory_quantity":0,"sku":"-White-S-A001579","barcode":"","position":9,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2dd2e481bb8a62e4fc316b5a93c77363.jpeg","path":"2dd2e481bb8a62e4fc316b5a93c77363.jpeg","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.48,"min_quantity":1}],"weight":"0","compare_at_price":"27.26","price":"15.48","retail_price":"27.26","available":true,"url":"\/products\/ghost-and-the-tattooed-sexy-lady-printed-mens-t-shirt?variant=31aed218-106c-41f5-9c1f-59aa2225e487","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":72};
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":"31aed218-106c-41f5-9c1f-59aa2225e487","product_id":"08a4a490-cebe-4e6e-9175-b5960c90a192","title":"White-S","weight_unit":"kg","inventory_quantity":0,"sku":"-White-S-A001579","barcode":"","position":9,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2dd2e481bb8a62e4fc316b5a93c77363.jpeg","path":"2dd2e481bb8a62e4fc316b5a93c77363.jpeg","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.48,"min_quantity":1}],"weight":"0","compare_at_price":"27.26","price":"15.48","retail_price":"27.26","available":true,"url":"\/products\/ghost-and-the-tattooed-sexy-lady-printed-mens-t-shirt?variant=31aed218-106c-41f5-9c1f-59aa2225e487","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":72};
return `
`
}()}