Free From Fear Printed Casual Men's Shorts
Free Shipping Over $70
Hot Sale
${function() {
const variantData = data.variant || {"id":"f5a8af9e-be4e-4626-8401-5110f6534a59","product_id":"576ab2f9-4eba-40b0-85c7-76c509c3cad3","title":"Black-M","weight_unit":"g","inventory_quantity":688,"sku":"SKU102492340001","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bbdf76eddd36560c89844f6950f747d8.jpeg","path":"bbdf76eddd36560c89844f6950f747d8.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22,"min_quantity":1}],"weight":"180","compare_at_price":"32","price":"22","retail_price":"32","available":true,"url":"\/products\/free-from-fear-printed-casual-mens-shorts?variant=f5a8af9e-be4e-4626-8401-5110f6534a59","available_quantity":688,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":31,"flashsale_info":[],"sales":143};
const saveType = "percentage";
const productLabelDiscountOn = false;
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 minDays = parseInt('10');
const maxDays = parseInt('15');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + '')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + '');
return `
${tipText}
`;
}()}
${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 `
`;
}()}
people are viewing this right now