The current item does not participate in the discount gift campaign. Switch the participating items to check the design.
(This prompt will not be displayed on the client-side)
${function() {
const variantData = data.variant || {"id":"47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","product_id":"5c78def5-0a89-4f80-a821-e6e758ab61df","title":"MAGENTA","weight_unit":"kg","inventory_quantity":99,"sku":"","barcode":"","position":2,"option1":"MAGENTA","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67e8880bc94a7ee5ed9aa8386bf787a1.jpeg","path":"67e8880bc94a7ee5ed9aa8386bf787a1.jpeg","width":250,"height":250,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.69,"min_quantity":1}],"weight":"0.55","compare_at_price":"48.13","price":"33.69","retail_price":"48.13","available":true,"url":"\/products\/s218-2-soft-grade-silicone-portable-electric-vibrating-hand-held-body-wand-massager?variant=47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","available_quantity":999999999,"options":[{"name":"Color","value":"MAGENTA"}],"off_ratio":"30","flashsale_info":{"variant_id":"47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","product_id":"","quantity":0,"discount_id":"da2718a0-c823-48d7-bc67-78ace5351928","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":-1,"ends_at":-1,"starts_at":1719907200,"allow_oversold":"uncheck","allocation_method":"none","price":"33.69","compare_at_price":"48.13","discount_price":"33.69","customary_saved_price":"14.44","customary_off_ratio":"30","discount_saved_price":"14.44","discount_off_ratio":"30","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 + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","product_id":"5c78def5-0a89-4f80-a821-e6e758ab61df","title":"MAGENTA","weight_unit":"kg","inventory_quantity":99,"sku":"","barcode":"","position":2,"option1":"MAGENTA","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67e8880bc94a7ee5ed9aa8386bf787a1.jpeg","path":"67e8880bc94a7ee5ed9aa8386bf787a1.jpeg","width":250,"height":250,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.69,"min_quantity":1}],"weight":"0.55","compare_at_price":"48.13","price":"33.69","retail_price":"48.13","available":true,"url":"\/products\/s218-2-soft-grade-silicone-portable-electric-vibrating-hand-held-body-wand-massager?variant=47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","available_quantity":999999999,"options":[{"name":"Color","value":"MAGENTA"}],"off_ratio":"30","flashsale_info":{"variant_id":"47aea5ec-d6bb-4d73-9cf0-4393d9f72dd8","product_id":"","quantity":0,"discount_id":"da2718a0-c823-48d7-bc67-78ace5351928","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":-1,"ends_at":-1,"starts_at":1719907200,"allow_oversold":"uncheck","allocation_method":"none","price":"33.69","compare_at_price":"48.13","discount_price":"33.69","customary_saved_price":"14.44","customary_off_ratio":"30","discount_saved_price":"14.44","discount_off_ratio":"30","use_before_price":false,"before_price":"0","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}