0583 Spring/Summer New Women's Cardigan Knitted Top Full body Jacquard Design Women's T-shirt
${function() {
const variantData = data.variant || {"id":"18354ba0-550c-42ca-93a1-c732ce0e27cf","product_id":"40986c31-2abe-40f7-a092-8d2ff5a8a856","title":"\u767d\u8272-S","weight_unit":"kg","inventory_quantity":26,"sku":"HMS-150-\u767d\u8272-S-A0014117","barcode":"","position":1,"option1":"\u767d\u8272","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","path":"3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0583-spring-summer-new-womens-cardigan-knitted-top-full-body-jacquard-design-womens-t-shirt-2fhr?variant=18354ba0-550c-42ca-93a1-c732ce0e27cf","available_quantity":26,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":37};
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}
`
}()}
尺寸:
S
${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":"18354ba0-550c-42ca-93a1-c732ce0e27cf","product_id":"40986c31-2abe-40f7-a092-8d2ff5a8a856","title":"\u767d\u8272-S","weight_unit":"kg","inventory_quantity":26,"sku":"HMS-150-\u767d\u8272-S-A0014117","barcode":"","position":1,"option1":"\u767d\u8272","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","path":"3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0583-spring-summer-new-womens-cardigan-knitted-top-full-body-jacquard-design-womens-t-shirt-2fhr?variant=18354ba0-550c-42ca-93a1-c732ce0e27cf","available_quantity":26,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":37};
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":"18354ba0-550c-42ca-93a1-c732ce0e27cf","product_id":"40986c31-2abe-40f7-a092-8d2ff5a8a856","title":"\u767d\u8272-S","weight_unit":"kg","inventory_quantity":26,"sku":"HMS-150-\u767d\u8272-S-A0014117","barcode":"","position":1,"option1":"\u767d\u8272","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","path":"3ada1cfd2c7dddaa9ba6a89651c46c5b.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/0583-spring-summer-new-womens-cardigan-knitted-top-full-body-jacquard-design-womens-t-shirt-2fhr?variant=18354ba0-550c-42ca-93a1-c732ce0e27cf","available_quantity":26,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"\u5c3a\u5bf8","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":37};
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 `
`;
}()}