${function() {
const variantData = data.variant || {"id":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"e3449a61-6c10-45b8-aa3c-f930ea71e8cf","title":"China-Glass-Home & Garden","weight_unit":"lb","inventory_quantity":10,"sku":"AEW-38466","barcode":"849179000769","position":1,"option1":"China","option2":"Glass","option3":"Home & Garden","note":"","image":null,"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"2.64","compare_at_price":"50.34","price":"42.79","retail_price":"50.34","available":true,"url":"\/products\/vine-patterned-glass-garden-lantern-15-inches-sku-aew-38466?variant=c7f83368-a281-419b-b176-ca3a5bb61b4a","available_quantity":10,"options":[{"name":"Country of Manufacture","value":"China"},{"name":"Material","value":"Glass"},{"name":"Style","value":"Home & Garden"}],"off_ratio":"15","flashsale_info":{"variant_id":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":289370,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":10,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"42.79","compare_at_price":"50.34","discount_price":"42.79","customary_saved_price":"7.55","customary_off_ratio":"15","discount_saved_price":"7.55","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 + '%'
: ` `
)}
`;
}()}
Country Of Manufacture
: China
${function(){
const optName = "Country of Manufacture";
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}
`
}()}
Material
: Glass
${function(){
const optName = "Material";
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}
`
}()}
Style
: Home & Garden
${function(){
const optName = "Style";
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
$42.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":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"e3449a61-6c10-45b8-aa3c-f930ea71e8cf","title":"China-Glass-Home & Garden","weight_unit":"lb","inventory_quantity":10,"sku":"AEW-38466","barcode":"849179000769","position":1,"option1":"China","option2":"Glass","option3":"Home & Garden","note":"","image":null,"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"2.64","compare_at_price":"50.34","price":"42.79","retail_price":"50.34","available":true,"url":"\/products\/vine-patterned-glass-garden-lantern-15-inches-sku-aew-38466?variant=c7f83368-a281-419b-b176-ca3a5bb61b4a","available_quantity":10,"options":[{"name":"Country of Manufacture","value":"China"},{"name":"Material","value":"Glass"},{"name":"Style","value":"Home & Garden"}],"off_ratio":"15","flashsale_info":{"variant_id":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":289370,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":10,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"42.79","compare_at_price":"50.34","discount_price":"42.79","customary_saved_price":"7.55","customary_off_ratio":"15","discount_saved_price":"7.55","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":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"e3449a61-6c10-45b8-aa3c-f930ea71e8cf","title":"China-Glass-Home & Garden","weight_unit":"lb","inventory_quantity":10,"sku":"AEW-38466","barcode":"849179000769","position":1,"option1":"China","option2":"Glass","option3":"Home & Garden","note":"","image":null,"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"2.64","compare_at_price":"50.34","price":"42.79","retail_price":"50.34","available":true,"url":"\/products\/vine-patterned-glass-garden-lantern-15-inches-sku-aew-38466?variant=c7f83368-a281-419b-b176-ca3a5bb61b4a","available_quantity":10,"options":[{"name":"Country of Manufacture","value":"China"},{"name":"Material","value":"Glass"},{"name":"Style","value":"Home & Garden"}],"off_ratio":"15","flashsale_info":{"variant_id":"c7f83368-a281-419b-b176-ca3a5bb61b4a","product_id":"","quantity":0,"discount_id":"8244c655-56a7-4716-a760-1408dd4e9baa","limit_time":289370,"limit_buy":2,"user_limit_buy":2,"discount_sales":0,"discount_sales_rate":"0","discount_stock":10,"ends_at":1715097599,"starts_at":1713428843,"allow_oversold":"check","allocation_method":"each","price":"42.79","compare_at_price":"50.34","discount_price":"42.79","customary_saved_price":"7.55","customary_off_ratio":"15","discount_saved_price":"7.55","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 `
`
}()}