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":"3973ea97-1702-444f-b89f-b38294ce7171","product_id":"dede18dd-8451-43a2-be08-d1d5818efeeb","title":"Blue S-1PC","weight_unit":"kg","inventory_quantity":10000,"sku":"2NSL240702-LAN-S","barcode":"","position":1,"option1":"Blue S","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35c31d961e793a936e31a5bcefd70b6d.webp","path":"35c31d961e793a936e31a5bcefd70b6d.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/zipper?variant=3973ea97-1702-444f-b89f-b38294ce7171","available_quantity":999999999,"options":[{"name":"Color","value":"Blue S"},{"name":"QTY","value":"1PC"}],"off_ratio":50,"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":"3973ea97-1702-444f-b89f-b38294ce7171","product_id":"dede18dd-8451-43a2-be08-d1d5818efeeb","title":"Blue S-1PC","weight_unit":"kg","inventory_quantity":10000,"sku":"2NSL240702-LAN-S","barcode":"","position":1,"option1":"Blue S","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/35c31d961e793a936e31a5bcefd70b6d.webp","path":"35c31d961e793a936e31a5bcefd70b6d.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/zipper?variant=3973ea97-1702-444f-b89f-b38294ce7171","available_quantity":999999999,"options":[{"name":"Color","value":"Blue S"},{"name":"QTY","value":"1PC"}],"off_ratio":50,"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 `
`;
}()}