Jesus The Way Truth Life Pattern Baseball Cap
Free Shipping Over $70
Hot Sale
${function() {
const variantData = data.variant || {"id":"ab528a74-e8b1-4630-a868-72af014147a1","product_id":"17354d6e-7ae0-4e69-adee-6b739dd44b08","title":"Black","weight_unit":"g","inventory_quantity":750,"sku":"SKU102494460001","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0851cba3ead9a51fd75ffe23291290aa.jpeg","path":"0851cba3ead9a51fd75ffe23291290aa.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"100","compare_at_price":"25","price":"15","retail_price":"25","available":true,"url":"\/products\/jesus-the-way-truth-life-pattern-baseball-cap?variant=ab528a74-e8b1-4630-a868-72af014147a1","available_quantity":750,"options":[{"name":"Color","value":"Black"}],"off_ratio":40,"flashsale_info":[],"sales":45};
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}
`
}()}
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