${function() {
const variantData = data.variant || {"id":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"4c140f4f-2eeb-42c2-9b9d-14aeafc3c6b4","title":"ROSA-S","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!128326-C1253S1563","barcode":"","position":1,"option1":"ROSA","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","path":"d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","width":1024,"height":768,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.1","compare_at_price":"82","price":"15","retail_price":"82","available":true,"url":"\/products\/bella-cavezza-rosa-per-il-tuo-cavallo-hobby?variant=35cd4461-9fcc-44ef-86cc-cf9f6cb16640","available_quantity":999999999,"options":[{"name":"Colore","value":"ROSA"},{"name":"Dimensioni","value":"S"}],"off_ratio":"82","flashsale_info":{"variant_id":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"15","compare_at_price":"","discount_price":"15","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"82","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":1};
const saveType = "amount";
const saveText = "Salva {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Colore
: ROSA
${function(){
const optName = "Colore";
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}
`
}()}
Dimensioni
: S
${function(){
const optName = "Dimensioni";
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
$15.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":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"4c140f4f-2eeb-42c2-9b9d-14aeafc3c6b4","title":"ROSA-S","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!128326-C1253S1563","barcode":"","position":1,"option1":"ROSA","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","path":"d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","width":1024,"height":768,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.1","compare_at_price":"82","price":"15","retail_price":"82","available":true,"url":"\/products\/bella-cavezza-rosa-per-il-tuo-cavallo-hobby?variant=35cd4461-9fcc-44ef-86cc-cf9f6cb16640","available_quantity":999999999,"options":[{"name":"Colore","value":"ROSA"},{"name":"Dimensioni","value":"S"}],"off_ratio":"82","flashsale_info":{"variant_id":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"15","compare_at_price":"","discount_price":"15","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"82","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"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.
Sku : CY-!128326-C1253S1563
Il peso : 0.1kg
${function(){
const variantData = data.variant || {"id":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"4c140f4f-2eeb-42c2-9b9d-14aeafc3c6b4","title":"ROSA-S","weight_unit":"kg","inventory_quantity":0,"sku":"CY-!128326-C1253S1563","barcode":"","position":1,"option1":"ROSA","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","path":"d0f6c6b7bdc60a3435241ef7a9bab402.jpeg","width":1024,"height":768,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.1","compare_at_price":"82","price":"15","retail_price":"82","available":true,"url":"\/products\/bella-cavezza-rosa-per-il-tuo-cavallo-hobby?variant=35cd4461-9fcc-44ef-86cc-cf9f6cb16640","available_quantity":999999999,"options":[{"name":"Colore","value":"ROSA"},{"name":"Dimensioni","value":"S"}],"off_ratio":"82","flashsale_info":{"variant_id":"35cd4461-9fcc-44ef-86cc-cf9f6cb16640","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"15","compare_at_price":"","discount_price":"15","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"82","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":1};
return `
Sku : ${variantData && variantData.sku}
Il peso : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
codice a barre : ${variantData && variantData.barcode}
`
}()}