Modern Plant Wall Lamps
${function() {
const variantData = data.variant || {"id":"2a33c44c-e77f-4562-b902-e8c0fa151d8a","product_id":"528d106c-99ac-4d19-b341-88e56acaa8b1","title":"Black-Cold white","weight_unit":"kg","inventory_quantity":10000,"sku":"200000795:193#A Black;180:200002571#Cold white","barcode":"","position":1,"option1":"Black","option2":"Cold white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7ed68395e0cc06e40b94eb6379750740.jpeg","path":"7ed68395e0cc06e40b94eb6379750740.jpeg","width":450,"height":450,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":58.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"58.98","retail_price":"0","available":true,"url":"\/products\/modern-plant-wall-lamps?variant=2a33c44c-e77f-4562-b902-e8c0fa151d8a","available_quantity":999999999,"options":[{"name":"Lampshade Color","value":"Black"},{"name":"Color Temperature","value":"Cold white"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Lampshade Color:
Black
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Color Temperature:
Cold white
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$58.98
${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":"2a33c44c-e77f-4562-b902-e8c0fa151d8a","product_id":"528d106c-99ac-4d19-b341-88e56acaa8b1","title":"Black-Cold white","weight_unit":"kg","inventory_quantity":10000,"sku":"200000795:193#A Black;180:200002571#Cold white","barcode":"","position":1,"option1":"Black","option2":"Cold white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7ed68395e0cc06e40b94eb6379750740.jpeg","path":"7ed68395e0cc06e40b94eb6379750740.jpeg","width":450,"height":450,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":58.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"58.98","retail_price":"0","available":true,"url":"\/products\/modern-plant-wall-lamps?variant=2a33c44c-e77f-4562-b902-e8c0fa151d8a","available_quantity":999999999,"options":[{"name":"Lampshade Color","value":"Black"},{"name":"Color Temperature","value":"Cold white"}],"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":"2a33c44c-e77f-4562-b902-e8c0fa151d8a","product_id":"528d106c-99ac-4d19-b341-88e56acaa8b1","title":"Black-Cold white","weight_unit":"kg","inventory_quantity":10000,"sku":"200000795:193#A Black;180:200002571#Cold white","barcode":"","position":1,"option1":"Black","option2":"Cold white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7ed68395e0cc06e40b94eb6379750740.jpeg","path":"7ed68395e0cc06e40b94eb6379750740.jpeg","width":450,"height":450,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":58.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"58.98","retail_price":"0","available":true,"url":"\/products\/modern-plant-wall-lamps?variant=2a33c44c-e77f-4562-b902-e8c0fa151d8a","available_quantity":999999999,"options":[{"name":"Lampshade Color","value":"Black"},{"name":"Color Temperature","value":"Cold white"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
people are viewing this right now