Smartphone I12 Pro Max
${function() {
const variantData = data.variant || {"id":"0736c1a9-603e-4ffd-a101-266b8319e02e","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Army Green-China-American","weight_unit":"kg","inventory_quantity":995,"sku":"Army Green-China-AmericanA0223415","barcode":"","position":2,"option1":"Army Green","option2":"China","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/f4786e3bce181851be0decb6991b4506.jpeg","path":"f4786e3bce181851be0decb6991b4506.jpeg","width":1500,"height":1500,"alt":"Smartphone I12 Pro Max \u4f4e\u8c37\u5427 James Yang","aspect_ratio":1},"wholesale_price":[{"price":118,"min_quantity":1}],"weight":"5","compare_at_price":"236","price":"118","retail_price":"236","available":true,"url":"\/products\/smartphone-i12-pro-max-smart-phone-face-unlocked-5mp13mp-android-432g-ram-68inch-water-drop-screen-cell-phone-telephone-d2nu?variant=0736c1a9-603e-4ffd-a101-266b8319e02e","available_quantity":995,"options":[{"name":"Color","value":"Army Green"},{"name":"Ships From","value":"China"},{"name":"Plug standard","value":"American"}],"off_ratio":50,"flashsale_info":[],"sales":1000};
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 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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const variantData = data.variant || {"id":"0736c1a9-603e-4ffd-a101-266b8319e02e","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Army Green-China-American","weight_unit":"kg","inventory_quantity":995,"sku":"Army Green-China-AmericanA0223415","barcode":"","position":2,"option1":"Army Green","option2":"China","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/f4786e3bce181851be0decb6991b4506.jpeg","path":"f4786e3bce181851be0decb6991b4506.jpeg","width":1500,"height":1500,"alt":"Smartphone I12 Pro Max \u4f4e\u8c37\u5427 James Yang","aspect_ratio":1},"wholesale_price":[{"price":118,"min_quantity":1}],"weight":"5","compare_at_price":"236","price":"118","retail_price":"236","available":true,"url":"\/products\/smartphone-i12-pro-max-smart-phone-face-unlocked-5mp13mp-android-432g-ram-68inch-water-drop-screen-cell-phone-telephone-d2nu?variant=0736c1a9-603e-4ffd-a101-266b8319e02e","available_quantity":995,"options":[{"name":"Color","value":"Army Green"},{"name":"Ships From","value":"China"},{"name":"Plug standard","value":"American"}],"off_ratio":50,"flashsale_info":[],"sales":1000};
return `
Inventory : ${variantData && variantData.available_quantity}
`
}()}
Product was out of stock.
Product does not exist
SKU : Army Green-China-AmericanA0223415
Weight : 5kg
${function(){
const variantData = data.variant || {"id":"0736c1a9-603e-4ffd-a101-266b8319e02e","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Army Green-China-American","weight_unit":"kg","inventory_quantity":995,"sku":"Army Green-China-AmericanA0223415","barcode":"","position":2,"option1":"Army Green","option2":"China","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/f4786e3bce181851be0decb6991b4506.jpeg","path":"f4786e3bce181851be0decb6991b4506.jpeg","width":1500,"height":1500,"alt":"Smartphone I12 Pro Max \u4f4e\u8c37\u5427 James Yang","aspect_ratio":1},"wholesale_price":[{"price":118,"min_quantity":1}],"weight":"5","compare_at_price":"236","price":"118","retail_price":"236","available":true,"url":"\/products\/smartphone-i12-pro-max-smart-phone-face-unlocked-5mp13mp-android-432g-ram-68inch-water-drop-screen-cell-phone-telephone-d2nu?variant=0736c1a9-603e-4ffd-a101-266b8319e02e","available_quantity":995,"options":[{"name":"Color","value":"Army Green"},{"name":"Ships From","value":"China"},{"name":"Plug standard","value":"American"}],"off_ratio":50,"flashsale_info":[],"sales":1000};
return `
SKU : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}