${function() {
const variantData = data.variant || {"id":"6d6e8d9b-6c1a-4ddc-b357-f3f031d4419f","product_id":"01a3192c-9a4c-4b6c-b3df-2dd165983b83","title":"Black-S","weight_unit":"kg","inventory_quantity":9999,"sku":"-Black-S-A001588","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac8968285896eedd1dbc54be5201dede.jpg","path":"ac8968285896eedd1dbc54be5201dede.jpg","width":700,"height":933,"alt":"","aspect_ratio":0.7502679528403001},"wholesale_price":[{"price":26.98,"min_quantity":1}],"weight":"0","compare_at_price":"39.98","price":"26.98","retail_price":"39.98","available":true,"url":"\/products\/f-ks-i-give-nun-printed-mens-distressed-wash-t-shirt?variant=6d6e8d9b-6c1a-4ddc-b357-f3f031d4419f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":33,"flashsale_info":[],"sales":0};
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":"6d6e8d9b-6c1a-4ddc-b357-f3f031d4419f","product_id":"01a3192c-9a4c-4b6c-b3df-2dd165983b83","title":"Black-S","weight_unit":"kg","inventory_quantity":9999,"sku":"-Black-S-A001588","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac8968285896eedd1dbc54be5201dede.jpg","path":"ac8968285896eedd1dbc54be5201dede.jpg","width":700,"height":933,"alt":"","aspect_ratio":0.7502679528403001},"wholesale_price":[{"price":26.98,"min_quantity":1}],"weight":"0","compare_at_price":"39.98","price":"26.98","retail_price":"39.98","available":true,"url":"\/products\/f-ks-i-give-nun-printed-mens-distressed-wash-t-shirt?variant=6d6e8d9b-6c1a-4ddc-b357-f3f031d4419f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":33,"flashsale_info":[],"sales":0};
return `
`
}()}