${function() {
const variantData = data.variant || {"id":"83d87b43-3066-4b64-a470-fdff1cc5d39d","product_id":"5e142613-eb9e-43da-a9da-fb1f8cd83b96","title":"Normal model (8000 mAh)-220V-1 battery","weight_unit":"kg","inventory_quantity":1000,"sku":"LE90271590A4","barcode":"","position":1,"option1":"Normal model (8000 mAh)-220V","option2":"1 battery","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4763a0bab5962167917ba9bc5d193dee.jpeg","path":"4763a0bab5962167917ba9bc5d193dee.jpeg","width":651,"height":647,"alt":"","aspect_ratio":1.0061823802163834},"wholesale_price":[{"price":129,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"129","retail_price":"0","available":true,"url":"\/products\/2024-new-electric-tile-laying-machineeaf2931c-7eeb-4ee4-8323-1a3b8ee72cf1?variant=83d87b43-3066-4b64-a470-fdff1cc5d39d","available_quantity":999999999,"options":[{"name":"Style","value":"Normal model (8000 mAh)-220V"},{"name":"Battery Specifications","value":"1 battery"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Style
: Normal model (8000 mAh)-220V
${function(){
const optName = "Style";
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}
`
}()}
Battery Specifications
: 1 battery
${function(){
const optName = "Battery Specifications";
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
$129.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":"83d87b43-3066-4b64-a470-fdff1cc5d39d","product_id":"5e142613-eb9e-43da-a9da-fb1f8cd83b96","title":"Normal model (8000 mAh)-220V-1 battery","weight_unit":"kg","inventory_quantity":1000,"sku":"LE90271590A4","barcode":"","position":1,"option1":"Normal model (8000 mAh)-220V","option2":"1 battery","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4763a0bab5962167917ba9bc5d193dee.jpeg","path":"4763a0bab5962167917ba9bc5d193dee.jpeg","width":651,"height":647,"alt":"","aspect_ratio":1.0061823802163834},"wholesale_price":[{"price":129,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"129","retail_price":"0","available":true,"url":"\/products\/2024-new-electric-tile-laying-machineeaf2931c-7eeb-4ee4-8323-1a3b8ee72cf1?variant=83d87b43-3066-4b64-a470-fdff1cc5d39d","available_quantity":999999999,"options":[{"name":"Style","value":"Normal model (8000 mAh)-220V"},{"name":"Battery Specifications","value":"1 battery"}],"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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.