Western Star Print Belt
${function() {
const variantData = data.variant || {"id":"d7dd4f72-deda-4d38-9c10-974db45f1f27","product_id":"ba619840-6a63-4f01-9532-e9cb88ca7273","title":"Brown-One-Size","weight_unit":"kg","inventory_quantity":1000,"sku":"451598qmwbpd-Brown-One-Size","barcode":"","position":1,"option1":"Brown","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/25225742f13cd405f65c4446b84ed6df.jpeg","path":"25225742f13cd405f65c4446b84ed6df.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"22.39","price":"15.99","retail_price":"22.39","available":true,"url":"\/products\/western-star-print-belt?variant=d7dd4f72-deda-4d38-9c10-974db45f1f27","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"One-Size"}],"off_ratio":"29","flashsale_info":{"variant_id":"d7dd4f72-deda-4d38-9c10-974db45f1f27","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"15.99","compare_at_price":"","discount_price":"15.99","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"29","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
const map = {
B: ``,
C: ``,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
${function(){
const variantData = data.variant || {"id":"d7dd4f72-deda-4d38-9c10-974db45f1f27","product_id":"ba619840-6a63-4f01-9532-e9cb88ca7273","title":"Brown-One-Size","weight_unit":"kg","inventory_quantity":1000,"sku":"451598qmwbpd-Brown-One-Size","barcode":"","position":1,"option1":"Brown","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/25225742f13cd405f65c4446b84ed6df.jpeg","path":"25225742f13cd405f65c4446b84ed6df.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"22.39","price":"15.99","retail_price":"22.39","available":true,"url":"\/products\/western-star-print-belt?variant=d7dd4f72-deda-4d38-9c10-974db45f1f27","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"One-Size"}],"off_ratio":"29","flashsale_info":{"variant_id":"d7dd4f72-deda-4d38-9c10-974db45f1f27","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"15.99","compare_at_price":"","discount_price":"15.99","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"29","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product does not exist