M4&M4 Pro Brake Caliper (1PC)
${function() {
const variantData = data.variant || {"id":"0a7e76be-dfec-4792-ad6e-54f0b1fe7e06","product_id":"0f43de7e-205c-4f46-816d-2d26754610de","title":"M4","weight_unit":"kg","inventory_quantity":0,"sku":"M4\u789f\u5239\u5668","barcode":"","position":1,"option1":"M4","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/m4-m4-pro-brake-caliper-1pc?variant=0a7e76be-dfec-4792-ad6e-54f0b1fe7e06","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 `
`;
}()}