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":"86da59f0-b628-4b70-af22-94469fc28b20","product_id":"0f3cbf66-c80c-4d6e-be2d-20f0d39c7441","title":"Bright Red-AU","weight_unit":"kg","inventory_quantity":1000,"sku":"1CQX231213-AU","barcode":"","position":1,"option1":"Bright Red","option2":"AU","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/66bd9332a8740e6dd3654e90a096c382.jpeg","path":"66bd9332a8740e6dd3654e90a096c382.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":87.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"87.99","retail_price":"0","available":true,"url":"\/products\/hanbb?variant=86da59f0-b628-4b70-af22-94469fc28b20","available_quantity":999999999,"options":[{"name":"Color","value":"Bright Red"},{"name":"Product Specifications","value":"AU"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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":"86da59f0-b628-4b70-af22-94469fc28b20","product_id":"0f3cbf66-c80c-4d6e-be2d-20f0d39c7441","title":"Bright Red-AU","weight_unit":"kg","inventory_quantity":1000,"sku":"1CQX231213-AU","barcode":"","position":1,"option1":"Bright Red","option2":"AU","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/66bd9332a8740e6dd3654e90a096c382.jpeg","path":"66bd9332a8740e6dd3654e90a096c382.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":87.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"87.99","retail_price":"0","available":true,"url":"\/products\/hanbb?variant=86da59f0-b628-4b70-af22-94469fc28b20","available_quantity":999999999,"options":[{"name":"Color","value":"Bright Red"},{"name":"Product Specifications","value":"AU"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}