Screw and Plastics for Folding Base
${function() {
const variantData = data.variant || {"id":"871ac9fc-f133-4fbe-9b07-410665ed8adf","product_id":"f92470de-83b8-42e9-b8d5-e4a7f2888f0f","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"\u6298\u53e0\u5e95\u5ea7\u87ba\u4e1d\u53ca\u5851\u6599\u4ef6","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.98","retail_price":"0","available":true,"url":"\/products\/screw-and-plastics-for-folding-base?variant=871ac9fc-f133-4fbe-9b07-410665ed8adf","available_quantity":999999999,"options":[],"off_ratio":"0","flashsale_info":{"variant_id":"871ac9fc-f133-4fbe-9b07-410665ed8adf","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.98","compare_at_price":"","discount_price":"15.98","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"0","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":4};
const saveType = "percentage";
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('')}
`;
}()}
Product was out of stock.
Product does not exist