people are viewing this right now
Free shipping on orders over $50
Free returns within fourteen days
Contact us: service@goodidealshop.com
${function() {
const variantData = data.variant || {"id":"2cd60905-3c52-4a21-b5e5-9c6d269d23e4","product_id":"bc76bc4f-31f5-4433-8b13-80b6afaada50","title":"Beige-1pc","weight_unit":"kg","inventory_quantity":0,"sku":"LE31936986MIS","barcode":"","position":1,"option1":"Beige","option2":"1pc","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":true,"url":"\/products\/mul?variant=2cd60905-3c52-4a21-b5e5-9c6d269d23e4","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Quantity","value":"1pc"}],"off_ratio":0,"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 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 variantData = data.variant || {"id":"2cd60905-3c52-4a21-b5e5-9c6d269d23e4","product_id":"bc76bc4f-31f5-4433-8b13-80b6afaada50","title":"Beige-1pc","weight_unit":"kg","inventory_quantity":0,"sku":"LE31936986MIS","barcode":"","position":1,"option1":"Beige","option2":"1pc","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":true,"url":"\/products\/mul?variant=2cd60905-3c52-4a21-b5e5-9c6d269d23e4","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Quantity","value":"1pc"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 50;
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 minDays = parseInt('1');
const maxDays = parseInt('2');
const customText = "Expected Delivery Time\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 `
`;
}()}