Test GMC图片
副标题
${function() {
const variantData = data.variant || {"id":"c5a0f4cf-a894-40e1-b699-575ae6c23395","product_id":"762b2cb3-e556-461b-90e8-cdf8a68577ec","title":"10*10-\u68b5\u9ad81","weight_unit":"kg","inventory_quantity":0,"sku":"A001","barcode":"","position":1,"option1":"10*10","option2":"\u68b5\u9ad81","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","path":"6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","width":1080,"height":600,"alt":"Test GMC\u56fe\u7247 James Yang","aspect_ratio":1.8},"wholesale_price":[{"price":177,"min_quantity":1}],"weight":"10","compare_at_price":"118","price":"177","retail_price":"118","available":true,"url":"\/products\/test-gmc\u56fe\u7247?variant=c5a0f4cf-a894-40e1-b699-575ae6c23395","available_quantity":999999999,"options":[{"name":"\u5c3a\u5bf8","value":"10*10"},{"name":"\u6b3e\u5f0f","value":"\u68b5\u9ad81"}],"off_ratio":0,"flashsale_info":[],"sales":10002};
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 variantData = data.variant || {"id":"c5a0f4cf-a894-40e1-b699-575ae6c23395","product_id":"762b2cb3-e556-461b-90e8-cdf8a68577ec","title":"10*10-\u68b5\u9ad81","weight_unit":"kg","inventory_quantity":0,"sku":"A001","barcode":"","position":1,"option1":"10*10","option2":"\u68b5\u9ad81","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","path":"6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","width":1080,"height":600,"alt":"Test GMC\u56fe\u7247 James Yang","aspect_ratio":1.8},"wholesale_price":[{"price":177,"min_quantity":1}],"weight":"10","compare_at_price":"118","price":"177","retail_price":"118","available":true,"url":"\/products\/test-gmc\u56fe\u7247?variant=c5a0f4cf-a894-40e1-b699-575ae6c23395","available_quantity":999999999,"options":[{"name":"\u5c3a\u5bf8","value":"10*10"},{"name":"\u6b3e\u5f0f","value":"\u68b5\u9ad81"}],"off_ratio":0,"flashsale_info":[],"sales":10002};
return `
Inventory : ${variantData && variantData.available_quantity}
`
}()}
Product was out of stock.
Product does not exist
${function(){
const variantData = data.variant || {"id":"c5a0f4cf-a894-40e1-b699-575ae6c23395","product_id":"762b2cb3-e556-461b-90e8-cdf8a68577ec","title":"10*10-\u68b5\u9ad81","weight_unit":"kg","inventory_quantity":0,"sku":"A001","barcode":"","position":1,"option1":"10*10","option2":"\u68b5\u9ad81","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","path":"6f0bc3a35c1e17c96301c1068c4f5a71.jpeg","width":1080,"height":600,"alt":"Test GMC\u56fe\u7247 James Yang","aspect_ratio":1.8},"wholesale_price":[{"price":177,"min_quantity":1}],"weight":"10","compare_at_price":"118","price":"177","retail_price":"118","available":true,"url":"\/products\/test-gmc\u56fe\u7247?variant=c5a0f4cf-a894-40e1-b699-575ae6c23395","available_quantity":999999999,"options":[{"name":"\u5c3a\u5bf8","value":"10*10"},{"name":"\u6b3e\u5f0f","value":"\u68b5\u9ad81"}],"off_ratio":0,"flashsale_info":[],"sales":10002};
return `
SKU : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}