Casual cat paw scarf and shawl
${function() {
const variantData = data.variant || {"id":"53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","product_id":"62c278a9-992e-412d-9b1f-54c1737ac7cc","title":"Color-one size","weight_unit":"kg","inventory_quantity":979,"sku":"098-220920-04-GV5VSQC6PX-Color-one size","barcode":"","position":1,"option1":"Color","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/43353c48c185aef9f76e27e0093bc9fa.jpeg","path":"43353c48c185aef9f76e27e0093bc9fa.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/casual-cat-paw-scarf-and-shawl-2?variant=53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","available_quantity":999999999,"options":[{"name":"Color","value":"Color"},{"name":"Size","value":"one size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Color
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Bitte w\u00e4hlen Sie einen {{ name }} aus".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
one size
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Bitte w\u00e4hlen Sie einen {{ name }} aus".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
In den Warenkorb legen
€19.99
${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":"53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","product_id":"62c278a9-992e-412d-9b1f-54c1737ac7cc","title":"Color-one size","weight_unit":"kg","inventory_quantity":979,"sku":"098-220920-04-GV5VSQC6PX-Color-one size","barcode":"","position":1,"option1":"Color","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/43353c48c185aef9f76e27e0093bc9fa.jpeg","path":"43353c48c185aef9f76e27e0093bc9fa.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/casual-cat-paw-scarf-and-shawl-2?variant=53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","available_quantity":999999999,"options":[{"name":"Color","value":"Color"},{"name":"Size","value":"one size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 ? `
` : ' ';
}
}()}
Kaufe jetzt
Produkt war ausverkauft.
Produkt ist nicht verfügbar.
Sku : 098-220920-04-GV5VSQC6PX-Color-one size
Gewicht : 0.1kg
${function(){
const variantData = data.variant || {"id":"53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","product_id":"62c278a9-992e-412d-9b1f-54c1737ac7cc","title":"Color-one size","weight_unit":"kg","inventory_quantity":979,"sku":"098-220920-04-GV5VSQC6PX-Color-one size","barcode":"","position":1,"option1":"Color","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/43353c48c185aef9f76e27e0093bc9fa.jpeg","path":"43353c48c185aef9f76e27e0093bc9fa.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/casual-cat-paw-scarf-and-shawl-2?variant=53ee3c24-45c3-4ee2-bfbc-106dfb5e689d","available_quantity":999999999,"options":[{"name":"Color","value":"Color"},{"name":"Size","value":"one size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Gewicht : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Strichcode : ${variantData && variantData.barcode}
`
}()}