0581 Spring/Summer New Men's Knitted Jacquard Vest
${function() {
const variantData = data.variant || {"id":"f27eeeee-4b49-4684-b8ec-a9d9582f3b41","product_id":"08590cce-33fe-462b-82b5-09a55d8be642","title":"\u767d\u8272-L","weight_unit":"kg","inventory_quantity":9,"sku":"0581-00170-\u767d\u8272-L-A0011634","barcode":"","position":1,"option1":"\u767d\u8272","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/80b21be4cbc5042a864579d5db15627d.jpg","path":"80b21be4cbc5042a864579d5db15627d.jpg","width":1512,"height":2016,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0581-spring-summer-new-mens-knitted-jacquard-vest?variant=f27eeeee-4b49-4684-b8ec-a9d9582f3b41","available_quantity":9,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
颜色:
白色
${function(){
const optName = "颜色";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
尺寸:
L
${function(){
const optName = "尺寸";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$39.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"f27eeeee-4b49-4684-b8ec-a9d9582f3b41","product_id":"08590cce-33fe-462b-82b5-09a55d8be642","title":"\u767d\u8272-L","weight_unit":"kg","inventory_quantity":9,"sku":"0581-00170-\u767d\u8272-L-A0011634","barcode":"","position":1,"option1":"\u767d\u8272","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/80b21be4cbc5042a864579d5db15627d.jpg","path":"80b21be4cbc5042a864579d5db15627d.jpg","width":1512,"height":2016,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0581-spring-summer-new-mens-knitted-jacquard-vest?variant=f27eeeee-4b49-4684-b8ec-a9d9582f3b41","available_quantity":9,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"f27eeeee-4b49-4684-b8ec-a9d9582f3b41","product_id":"08590cce-33fe-462b-82b5-09a55d8be642","title":"\u767d\u8272-L","weight_unit":"kg","inventory_quantity":9,"sku":"0581-00170-\u767d\u8272-L-A0011634","barcode":"","position":1,"option1":"\u767d\u8272","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/80b21be4cbc5042a864579d5db15627d.jpg","path":"80b21be4cbc5042a864579d5db15627d.jpg","width":1512,"height":2016,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0581-spring-summer-new-mens-knitted-jacquard-vest?variant=f27eeeee-4b49-4684-b8ec-a9d9582f3b41","available_quantity":9,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":1};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}