${function() {
const variantData = data.variant || {"id":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"8ac8bc69-1bb0-4817-a02e-3703e5b96459","title":"Black-Warm white","weight_unit":"lb","inventory_quantity":100,"sku":"9949-5P","barcode":"","position":1,"option1":"Black","option2":"Warm white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f3b17d5a81dfef8a0be421e13dfda403.jpeg","path":"f3b17d5a81dfef8a0be421e13dfda403.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":236.38,"min_quantity":1}],"weight":"6.26","compare_at_price":"278.1","price":"236.38","retail_price":"278.1","available":true,"url":"\/products\/38w-led-circular-line-chandelier?variant=4b86325f-6619-4905-82b2-9c51a0bec500","available_quantity":100,"options":[{"name":"Color","value":"Black"},{"name":"Light Color","value":"Warm white"}],"off_ratio":"15","flashsale_info":{"variant_id":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":665834,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":100,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"236.38","compare_at_price":"278.1","discount_price":"236.38","customary_saved_price":"41.72","customary_off_ratio":"15","discount_saved_price":"41.72","discount_off_ratio":"15","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Black
${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}
`
}()}
Light Color
: Warm white
${function(){
const optName = "Light 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}
`
}()}
Add to cart
$236.38
${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":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"8ac8bc69-1bb0-4817-a02e-3703e5b96459","title":"Black-Warm white","weight_unit":"lb","inventory_quantity":100,"sku":"9949-5P","barcode":"","position":1,"option1":"Black","option2":"Warm white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f3b17d5a81dfef8a0be421e13dfda403.jpeg","path":"f3b17d5a81dfef8a0be421e13dfda403.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":236.38,"min_quantity":1}],"weight":"6.26","compare_at_price":"278.1","price":"236.38","retail_price":"278.1","available":true,"url":"\/products\/38w-led-circular-line-chandelier?variant=4b86325f-6619-4905-82b2-9c51a0bec500","available_quantity":100,"options":[{"name":"Color","value":"Black"},{"name":"Light Color","value":"Warm white"}],"off_ratio":"15","flashsale_info":{"variant_id":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":665834,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":100,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"236.38","compare_at_price":"278.1","discount_price":"236.38","customary_saved_price":"41.72","customary_off_ratio":"15","discount_saved_price":"41.72","discount_off_ratio":"15","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"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 {
return `
`
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"8ac8bc69-1bb0-4817-a02e-3703e5b96459","title":"Black-Warm white","weight_unit":"lb","inventory_quantity":100,"sku":"9949-5P","barcode":"","position":1,"option1":"Black","option2":"Warm white","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f3b17d5a81dfef8a0be421e13dfda403.jpeg","path":"f3b17d5a81dfef8a0be421e13dfda403.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":236.38,"min_quantity":1}],"weight":"6.26","compare_at_price":"278.1","price":"236.38","retail_price":"278.1","available":true,"url":"\/products\/38w-led-circular-line-chandelier?variant=4b86325f-6619-4905-82b2-9c51a0bec500","available_quantity":100,"options":[{"name":"Color","value":"Black"},{"name":"Light Color","value":"Warm white"}],"off_ratio":"15","flashsale_info":{"variant_id":"4b86325f-6619-4905-82b2-9c51a0bec500","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":665834,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":100,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"236.38","compare_at_price":"278.1","discount_price":"236.38","customary_saved_price":"41.72","customary_off_ratio":"15","discount_saved_price":"41.72","discount_off_ratio":"15","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
return `
`
}()}