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":"2c336879-a89d-439c-b29f-6dd03d0da32e","product_id":"3976b760-3f88-43c5-9089-5d027ee0b19e","title":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)","weight_unit":"kg","inventory_quantity":10000,"sku":"4NSL240803-7PCS","barcode":"","position":1,"option1":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c75a69ec84ec1760ff0a0b141a29b108.jpeg","path":"c75a69ec84ec1760ff0a0b141a29b108.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.98","price":"15.99","retail_price":"31.98","available":true,"url":"\/products\/bwzt?variant=2c336879-a89d-439c-b29f-6dd03d0da32e","available_quantity":999999999,"options":[{"name":"Drill Bit Set","value":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)"}],"off_ratio":50,"flashsale_info":[],"sales":1};
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2c336879-a89d-439c-b29f-6dd03d0da32e","product_id":"3976b760-3f88-43c5-9089-5d027ee0b19e","title":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)","weight_unit":"kg","inventory_quantity":10000,"sku":"4NSL240803-7PCS","barcode":"","position":1,"option1":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c75a69ec84ec1760ff0a0b141a29b108.jpeg","path":"c75a69ec84ec1760ff0a0b141a29b108.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.98","price":"15.99","retail_price":"31.98","available":true,"url":"\/products\/bwzt?variant=2c336879-a89d-439c-b29f-6dd03d0da32e","available_quantity":999999999,"options":[{"name":"Drill Bit Set","value":"7pcs (3mm+4mm+5mm+6mm+8mm+10mm+12mm)"}],"off_ratio":50,"flashsale_info":[],"sales":1};
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 `
`;
}()}