Handheld Cordless Vacuum, Car Vacuum Cleaner (Vacuum + Blow Avaiable)
${function() {
const variantData = data.variant || {"id":"bb319b33-2f87-4f2f-868a-e12a5a35a40f","product_id":"0bbc47e1-bc8b-41aa-b240-9b1a2f91cb63","title":"Grey-1 Pcs","weight_unit":"kg","inventory_quantity":1000,"sku":"DJ-0003-Grey\t1 Pcs","barcode":"","position":1,"option1":"Grey","option2":"1 Pcs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29629a1498e2588a19b2ae13a7251806.png","path":"29629a1498e2588a19b2ae13a7251806.png","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.97,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.97","retail_price":"0","available":true,"url":"\/products\/cordless-vacuum-cleaner?variant=bb319b33-2f87-4f2f-868a-e12a5a35a40f","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Options","value":"1 Pcs"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Grey
${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}
`
}()}
Options:
1 Pcs
${function(){
const optName = "Options";
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
$49.97
${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":"bb319b33-2f87-4f2f-868a-e12a5a35a40f","product_id":"0bbc47e1-bc8b-41aa-b240-9b1a2f91cb63","title":"Grey-1 Pcs","weight_unit":"kg","inventory_quantity":1000,"sku":"DJ-0003-Grey\t1 Pcs","barcode":"","position":1,"option1":"Grey","option2":"1 Pcs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29629a1498e2588a19b2ae13a7251806.png","path":"29629a1498e2588a19b2ae13a7251806.png","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.97,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.97","retail_price":"0","available":true,"url":"\/products\/cordless-vacuum-cleaner?variant=bb319b33-2f87-4f2f-868a-e12a5a35a40f","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Options","value":"1 Pcs"}],"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.
${function(){
const variantData = data.variant || {"id":"bb319b33-2f87-4f2f-868a-e12a5a35a40f","product_id":"0bbc47e1-bc8b-41aa-b240-9b1a2f91cb63","title":"Grey-1 Pcs","weight_unit":"kg","inventory_quantity":1000,"sku":"DJ-0003-Grey\t1 Pcs","barcode":"","position":1,"option1":"Grey","option2":"1 Pcs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29629a1498e2588a19b2ae13a7251806.png","path":"29629a1498e2588a19b2ae13a7251806.png","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.97,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.97","retail_price":"0","available":true,"url":"\/products\/cordless-vacuum-cleaner?variant=bb319b33-2f87-4f2f-868a-e12a5a35a40f","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Options","value":"1 Pcs"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}