Smartphone I12 Pro Max
${function() {
const variantData = data.variant || {"id":"5442fcac-5cd2-4093-8ce5-7cbe030204cc","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Gold-United States-American","weight_unit":"kg","inventory_quantity":990,"sku":"Gold-United States-AmericanA0223407","barcode":"","position":1,"option1":"Gold","option2":"United States","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/b1c709c09ee08ad902469e826c58c07e.jpeg","path":"b1c709c09ee08ad902469e826c58c07e.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=5442fcac-5cd2-4093-8ce5-7cbe030204cc","available_quantity":990,"options":[{"name":"Color","value":"Gold"},{"name":"Ships From","value":"United States"},{"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":"5442fcac-5cd2-4093-8ce5-7cbe030204cc","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Gold-United States-American","weight_unit":"kg","inventory_quantity":990,"sku":"Gold-United States-AmericanA0223407","barcode":"","position":1,"option1":"Gold","option2":"United States","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/b1c709c09ee08ad902469e826c58c07e.jpeg","path":"b1c709c09ee08ad902469e826c58c07e.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=5442fcac-5cd2-4093-8ce5-7cbe030204cc","available_quantity":990,"options":[{"name":"Color","value":"Gold"},{"name":"Ships From","value":"United States"},{"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 : Gold-United States-AmericanA0223407
Weight : 5kg
${function(){
const variantData = data.variant || {"id":"5442fcac-5cd2-4093-8ce5-7cbe030204cc","product_id":"d3ae6e6a-f93d-4af5-b3e9-8e620bdb7ead","title":"Gold-United States-American","weight_unit":"kg","inventory_quantity":990,"sku":"Gold-United States-AmericanA0223407","barcode":"","position":1,"option1":"Gold","option2":"United States","option3":"American","note":"","image":{"src":"\/\/img.staticdj.com\/b1c709c09ee08ad902469e826c58c07e.jpeg","path":"b1c709c09ee08ad902469e826c58c07e.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=5442fcac-5cd2-4093-8ce5-7cbe030204cc","available_quantity":990,"options":[{"name":"Color","value":"Gold"},{"name":"Ships From","value":"United States"},{"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}
`
}()}