🍏Home essentials🔥Multi-Fruit Peeler 2.0✨
${function() {
const variantData = data.variant || {"id":"a3d0217e-1293-4e42-9465-f69e1bd4f7ed","product_id":"dcc58e3b-9a7f-4a39-b80a-0e68e81fcea4","title":"Green","weight_unit":"kg","inventory_quantity":10000,"sku":"LE10235571QLV","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5cdad946dbdb4bb3c01b94dd0f7d4769.png","path":"5cdad946dbdb4bb3c01b94dd0f7d4769.png","width":575,"height":562,"alt":"","aspect_ratio":1.0231316725978647},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.98","price":"21.99","retail_price":"31.98","available":true,"url":"\/products\/manual-rotation-apple-peeler-pear-slicer-hand-cranked-multifunctional-apple-slicer-and-corer-kitchen-cutter-tool-fruit-machine-1?variant=a3d0217e-1293-4e42-9465-f69e1bd4f7ed","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Green
${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 = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
£21.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":"a3d0217e-1293-4e42-9465-f69e1bd4f7ed","product_id":"dcc58e3b-9a7f-4a39-b80a-0e68e81fcea4","title":"Green","weight_unit":"kg","inventory_quantity":10000,"sku":"LE10235571QLV","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5cdad946dbdb4bb3c01b94dd0f7d4769.png","path":"5cdad946dbdb4bb3c01b94dd0f7d4769.png","width":575,"height":562,"alt":"","aspect_ratio":1.0231316725978647},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.98","price":"21.99","retail_price":"31.98","available":true,"url":"\/products\/manual-rotation-apple-peeler-pear-slicer-hand-cranked-multifunctional-apple-slicer-and-corer-kitchen-cutter-tool-fruit-machine-1?variant=a3d0217e-1293-4e42-9465-f69e1bd4f7ed","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":31,"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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a3d0217e-1293-4e42-9465-f69e1bd4f7ed","product_id":"dcc58e3b-9a7f-4a39-b80a-0e68e81fcea4","title":"Green","weight_unit":"kg","inventory_quantity":10000,"sku":"LE10235571QLV","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5cdad946dbdb4bb3c01b94dd0f7d4769.png","path":"5cdad946dbdb4bb3c01b94dd0f7d4769.png","width":575,"height":562,"alt":"","aspect_ratio":1.0231316725978647},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.98","price":"21.99","retail_price":"31.98","available":true,"url":"\/products\/manual-rotation-apple-peeler-pear-slicer-hand-cranked-multifunctional-apple-slicer-and-corer-kitchen-cutter-tool-fruit-machine-1?variant=a3d0217e-1293-4e42-9465-f69e1bd4f7ed","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}