M4&M4 Pro Starter Motor Lock | Electric Door Lock | Voltmeter
${function() {
const variantData = data.variant || {"id":"dba76ff4-a1c4-46cd-8490-e0f3f5ad03f1","product_id":"c56d1729-0eee-4240-af8c-7410bf412d19","title":"M4","weight_unit":"kg","inventory_quantity":0,"sku":"M4\u7535\u95e8\u9501","barcode":"","position":1,"option1":"M4","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":37,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"37","retail_price":"0","available":true,"url":"\/products\/m4-m4-pro-starter-motor-lock-electric-door-lock-voltmeter?variant=dba76ff4-a1c4-46cd-8490-e0f3f5ad03f1","available_quantity":999999999,"options":[{"name":"mod\u00e8le","value":"M4"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Si prega di selezionare un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Il prodotto era esaurito.
Il prodotto non è disponibile.
${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 = "Il tuo ordine \u00e8 in consegna gratuita";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}