Simple Creative Home Round Solid Wood Ceiling Lamp
${function() {
const variantData = data.variant || {"id":"99a275fc-5d15-46f8-9347-79e66a086f47","product_id":"9a73316e-0a65-4677-a4fc-d40c4581df3b","title":"35CM\uff0818W\uff09-Warm light","weight_unit":"lb","inventory_quantity":0,"sku":"201112-01-35CM18W-Warmlight","barcode":"","position":1,"option1":"35CM\uff0818W\uff09","option2":"Warm light","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","path":"07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":87.79,"min_quantity":1}],"weight":"0","compare_at_price":"113.99","price":"87.79","retail_price":"113.99","available":true,"url":"\/products\/simple-creative-home-round-solid-wood-ceiling-lamp?variant=99a275fc-5d15-46f8-9347-79e66a086f47","available_quantity":999999999,"options":[{"name":"The color of the light","value":"35CM\uff0818W\uff09"},{"name":"Light source power","value":"Warm light"}],"off_ratio":23,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = false;
return `
-
(Tax included)
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
(Tax included)
`;
}()}
The Color Of The Light:
35CM(18W)
${function(){
const optName = "The color of the light";
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}
`
}()}
Light Source Power:
Warm light
${function(){
const optName = "Light source power";
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
$87.79
${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":"99a275fc-5d15-46f8-9347-79e66a086f47","product_id":"9a73316e-0a65-4677-a4fc-d40c4581df3b","title":"35CM\uff0818W\uff09-Warm light","weight_unit":"lb","inventory_quantity":0,"sku":"201112-01-35CM18W-Warmlight","barcode":"","position":1,"option1":"35CM\uff0818W\uff09","option2":"Warm light","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","path":"07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":87.79,"min_quantity":1}],"weight":"0","compare_at_price":"113.99","price":"87.79","retail_price":"113.99","available":true,"url":"\/products\/simple-creative-home-round-solid-wood-ceiling-lamp?variant=99a275fc-5d15-46f8-9347-79e66a086f47","available_quantity":999999999,"options":[{"name":"The color of the light","value":"35CM\uff0818W\uff09"},{"name":"Light source power","value":"Warm light"}],"off_ratio":23,"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.
Sku : 201112-01-35CM18W-Warmlight
${function(){
const variantData = data.variant || {"id":"99a275fc-5d15-46f8-9347-79e66a086f47","product_id":"9a73316e-0a65-4677-a4fc-d40c4581df3b","title":"35CM\uff0818W\uff09-Warm light","weight_unit":"lb","inventory_quantity":0,"sku":"201112-01-35CM18W-Warmlight","barcode":"","position":1,"option1":"35CM\uff0818W\uff09","option2":"Warm light","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","path":"07f5c157c9d7f6a04bd305ddb7afae0c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":87.79,"min_quantity":1}],"weight":"0","compare_at_price":"113.99","price":"87.79","retail_price":"113.99","available":true,"url":"\/products\/simple-creative-home-round-solid-wood-ceiling-lamp?variant=99a275fc-5d15-46f8-9347-79e66a086f47","available_quantity":999999999,"options":[{"name":"The color of the light","value":"35CM\uff0818W\uff09"},{"name":"Light source power","value":"Warm light"}],"off_ratio":23,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}