Hosszú ujjú gomb elöl, cipzáras kardigán (egyet vásárol, kap egyet ingyen)
${function() {
const variantData = data.variant || {"id":"c245dde0-1434-4ac8-964f-c76abb88d8a2","product_id":"a0b0c03f-5b96-4150-bb1b-a005e49632c5","title":" Fekete + fekete (2 db) -S","weight_unit":"kg","inventory_quantity":0,"sku":"TYCOD-SWAGWY-L","barcode":"","position":1,"option1":" Fekete + fekete (2 db) ","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f81dd84c63426763d32714a6f4810092.jpg","path":"f81dd84c63426763d32714a6f4810092.jpg","width":402,"height":550,"alt":"","aspect_ratio":0.730909090909091},"wholesale_price":[{"price":12300,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12300","retail_price":"0","available":true,"url":"\/products\/sweater?variant=c245dde0-1434-4ac8-964f-c76abb88d8a2","available_quantity":999999999,"options":[{"name":"Sz\u00edn","value":" Fekete + fekete (2 db) "},{"name":"M\u00e9ret","value":"S"}],"off_ratio":"0","flashsale_info":{"variant_id":"c245dde0-1434-4ac8-964f-c76abb88d8a2","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":"12300","compare_at_price":"","discount_price":"12300","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":3};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Szín:
Fekete + fekete (2 db)
${function(){
const optName = "Szín";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Vyberte pros\u00edm {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Méret:
S
${function(){
const optName = "Méret";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Vyberte pros\u00edm {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Přidat do košíku
Kč12,300.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":"c245dde0-1434-4ac8-964f-c76abb88d8a2","product_id":"a0b0c03f-5b96-4150-bb1b-a005e49632c5","title":" Fekete + fekete (2 db) -S","weight_unit":"kg","inventory_quantity":0,"sku":"TYCOD-SWAGWY-L","barcode":"","position":1,"option1":" Fekete + fekete (2 db) ","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f81dd84c63426763d32714a6f4810092.jpg","path":"f81dd84c63426763d32714a6f4810092.jpg","width":402,"height":550,"alt":"","aspect_ratio":0.730909090909091},"wholesale_price":[{"price":12300,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12300","retail_price":"0","available":true,"url":"\/products\/sweater?variant=c245dde0-1434-4ac8-964f-c76abb88d8a2","available_quantity":999999999,"options":[{"name":"Sz\u00edn","value":" Fekete + fekete (2 db) "},{"name":"M\u00e9ret","value":"S"}],"off_ratio":"0","flashsale_info":{"variant_id":"c245dde0-1434-4ac8-964f-c76abb88d8a2","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":"12300","compare_at_price":"","discount_price":"12300","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":3};
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 ? `
` : ' ';
}
}()}
Koupit nyní
Produkt nebyl k dispozici.
Produkt není k dispozici.
${function(){
const variantData = data.variant || {"id":"c245dde0-1434-4ac8-964f-c76abb88d8a2","product_id":"a0b0c03f-5b96-4150-bb1b-a005e49632c5","title":" Fekete + fekete (2 db) -S","weight_unit":"kg","inventory_quantity":0,"sku":"TYCOD-SWAGWY-L","barcode":"","position":1,"option1":" Fekete + fekete (2 db) ","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f81dd84c63426763d32714a6f4810092.jpg","path":"f81dd84c63426763d32714a6f4810092.jpg","width":402,"height":550,"alt":"","aspect_ratio":0.730909090909091},"wholesale_price":[{"price":12300,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12300","retail_price":"0","available":true,"url":"\/products\/sweater?variant=c245dde0-1434-4ac8-964f-c76abb88d8a2","available_quantity":999999999,"options":[{"name":"Sz\u00edn","value":" Fekete + fekete (2 db) "},{"name":"M\u00e9ret","value":"S"}],"off_ratio":"0","flashsale_info":{"variant_id":"c245dde0-1434-4ac8-964f-c76abb88d8a2","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":"12300","compare_at_price":"","discount_price":"12300","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":3};
return `
Hmotnost : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Čárový kód : ${variantData && variantData.barcode}
`
}()}