G3 riser/pole
Collegamento diffusione
${function() {
const variantData = data.variant || {"id":"d45b89f4-719c-4d9a-b518-d200fc3bc324","product_id":"cdcc9ea5-e40e-463a-b693-0e9a082253f6","title":"G3 Palo Versione B","weight_unit":"kg","inventory_quantity":0,"sku":"G3\u7acb\u6746B\u7248\u672c","barcode":"","position":1,"option1":"G3 Palo Versione B","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/838d89777bf4bc8c42d2c12cdfd8d146.png","path":"838d89777bf4bc8c42d2c12cdfd8d146.png","width":638,"height":880,"alt":"G3 riser\/pole","aspect_ratio":0.725},"wholesale_price":[{"price":100,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"100","retail_price":"0","available":true,"url":"\/products\/g3-riser-pole?variant=d45b89f4-719c-4d9a-b518-d200fc3bc324","available_quantity":999999999,"options":[{"name":"Versione riser G3","value":"G3 Palo Versione B"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Versione Riser G3:
G3 Palo Versione B
${function(){
const optName = "Versione riser G3";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Si prega di selezionare un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Aggiungi al carrello
€100.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"d45b89f4-719c-4d9a-b518-d200fc3bc324","product_id":"cdcc9ea5-e40e-463a-b693-0e9a082253f6","title":"G3 Palo Versione B","weight_unit":"kg","inventory_quantity":0,"sku":"G3\u7acb\u6746B\u7248\u672c","barcode":"","position":1,"option1":"G3 Palo Versione B","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/838d89777bf4bc8c42d2c12cdfd8d146.png","path":"838d89777bf4bc8c42d2c12cdfd8d146.png","width":638,"height":880,"alt":"G3 riser\/pole","aspect_ratio":0.725},"wholesale_price":[{"price":100,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"100","retail_price":"0","available":true,"url":"\/products\/g3-riser-pole?variant=d45b89f4-719c-4d9a-b518-d200fc3bc324","available_quantity":999999999,"options":[{"name":"Versione riser G3","value":"G3 Palo Versione B"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Acquista ora
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 `
`;
}()}