${function() {
const variantData = data.variant || {"id":"a16b6903-42af-424c-b803-4c43fe1414f6","product_id":"7c80121d-1f20-4071-8399-abc5b308e727","title":"White-Warm White-18W (indoor)","weight_unit":"kg","inventory_quantity":1000,"sku":"1005005909555300-White Body-Warm White-18W (indoor)","barcode":"","position":1,"option1":"White","option2":"Warm White","option3":"18W (indoor)","note":"","image":{"src":"\/\/img.staticdj.com\/8e21fe78b93e5ca37d047edad74ef7bc.jpeg","path":"8e21fe78b93e5ca37d047edad74ef7bc.jpeg","width":850,"height":850,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/landy-outdoor-waterproof-strip-wall-lampcc58f729-db3f-462c-86f4-f543ce8b712f916a1dc7-692d-4371-ba66-7a7714e947af?variant=a16b6903-42af-424c-b803-4c43fe1414f6","available_quantity":999999999,"options":[{"name":"Body Color","value":"White"},{"name":"Emitting Color","value":"Warm White"},{"name":"Wattage","value":"18W (indoor)"}],"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 + '%'
: ` `
)}
`;
}()}
Body Color
: White
${function(){
const optName = "Body 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}
`
}()}
Emitting Color
: Warm White
${function(){
const optName = "Emitting 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}
`
}()}
Wattage
: 18W (indoor)
${function(){
const optName = "Wattage";
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
$45.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":"a16b6903-42af-424c-b803-4c43fe1414f6","product_id":"7c80121d-1f20-4071-8399-abc5b308e727","title":"White-Warm White-18W (indoor)","weight_unit":"kg","inventory_quantity":1000,"sku":"1005005909555300-White Body-Warm White-18W (indoor)","barcode":"","position":1,"option1":"White","option2":"Warm White","option3":"18W (indoor)","note":"","image":{"src":"\/\/img.staticdj.com\/8e21fe78b93e5ca37d047edad74ef7bc.jpeg","path":"8e21fe78b93e5ca37d047edad74ef7bc.jpeg","width":850,"height":850,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/landy-outdoor-waterproof-strip-wall-lampcc58f729-db3f-462c-86f4-f543ce8b712f916a1dc7-692d-4371-ba66-7a7714e947af?variant=a16b6903-42af-424c-b803-4c43fe1414f6","available_quantity":999999999,"options":[{"name":"Body Color","value":"White"},{"name":"Emitting Color","value":"Warm White"},{"name":"Wattage","value":"18W (indoor)"}],"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":"a16b6903-42af-424c-b803-4c43fe1414f6","product_id":"7c80121d-1f20-4071-8399-abc5b308e727","title":"White-Warm White-18W (indoor)","weight_unit":"kg","inventory_quantity":1000,"sku":"1005005909555300-White Body-Warm White-18W (indoor)","barcode":"","position":1,"option1":"White","option2":"Warm White","option3":"18W (indoor)","note":"","image":{"src":"\/\/img.staticdj.com\/8e21fe78b93e5ca37d047edad74ef7bc.jpeg","path":"8e21fe78b93e5ca37d047edad74ef7bc.jpeg","width":850,"height":850,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/landy-outdoor-waterproof-strip-wall-lampcc58f729-db3f-462c-86f4-f543ce8b712f916a1dc7-692d-4371-ba66-7a7714e947af?variant=a16b6903-42af-424c-b803-4c43fe1414f6","available_quantity":999999999,"options":[{"name":"Body Color","value":"White"},{"name":"Emitting Color","value":"Warm White"},{"name":"Wattage","value":"18W (indoor)"}],"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