W224029/W824030 New Spring/Summer Women's Fashionable Contrast Color Sports Knit Set
${function() {
const variantData = data.variant || {"id":"4d335f13-8c03-48a9-8371-440b167fe62f","product_id":"24d07897-bf53-45f6-8ac4-7e0088bc5b1f","title":"\u6a59\u8272-0-\u4e0a\u8863","weight_unit":"kg","inventory_quantity":29,"sku":"W224029180-\u6a59\u8272-0-\u4e0a\u8863-A0011788","barcode":"","position":1,"option1":"\u6a59\u8272","option2":"0","option3":"\u4e0a\u8863","note":"","image":{"src":"\/\/img.staticdj.com\/f9eb30861bb35387215d639ed59e95b8.jpg","path":"f9eb30861bb35387215d639ed59e95b8.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/w224029-w824030-new-spring-summer-womens-fashionable-contrast-color-sports-knit-set?variant=4d335f13-8c03-48a9-8371-440b167fe62f","available_quantity":29,"options":[{"name":"\u989c\u8272","value":"\u6a59\u8272"},{"name":"\u5c3a\u5bf8","value":"0"},{"name":"\u4e0a\u4e0b\u88c5","value":"\u4e0a\u8863"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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}
`
}()}
尺寸:
0
${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}
`
}()}
上下装:
上衣
${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
$41.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":"4d335f13-8c03-48a9-8371-440b167fe62f","product_id":"24d07897-bf53-45f6-8ac4-7e0088bc5b1f","title":"\u6a59\u8272-0-\u4e0a\u8863","weight_unit":"kg","inventory_quantity":29,"sku":"W224029180-\u6a59\u8272-0-\u4e0a\u8863-A0011788","barcode":"","position":1,"option1":"\u6a59\u8272","option2":"0","option3":"\u4e0a\u8863","note":"","image":{"src":"\/\/img.staticdj.com\/f9eb30861bb35387215d639ed59e95b8.jpg","path":"f9eb30861bb35387215d639ed59e95b8.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/w224029-w824030-new-spring-summer-womens-fashionable-contrast-color-sports-knit-set?variant=4d335f13-8c03-48a9-8371-440b167fe62f","available_quantity":29,"options":[{"name":"\u989c\u8272","value":"\u6a59\u8272"},{"name":"\u5c3a\u5bf8","value":"0"},{"name":"\u4e0a\u4e0b\u88c5","value":"\u4e0a\u8863"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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":"4d335f13-8c03-48a9-8371-440b167fe62f","product_id":"24d07897-bf53-45f6-8ac4-7e0088bc5b1f","title":"\u6a59\u8272-0-\u4e0a\u8863","weight_unit":"kg","inventory_quantity":29,"sku":"W224029180-\u6a59\u8272-0-\u4e0a\u8863-A0011788","barcode":"","position":1,"option1":"\u6a59\u8272","option2":"0","option3":"\u4e0a\u8863","note":"","image":{"src":"\/\/img.staticdj.com\/f9eb30861bb35387215d639ed59e95b8.jpg","path":"f9eb30861bb35387215d639ed59e95b8.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/w224029-w824030-new-spring-summer-womens-fashionable-contrast-color-sports-knit-set?variant=4d335f13-8c03-48a9-8371-440b167fe62f","available_quantity":29,"options":[{"name":"\u989c\u8272","value":"\u6a59\u8272"},{"name":"\u5c3a\u5bf8","value":"0"},{"name":"\u4e0a\u4e0b\u88c5","value":"\u4e0a\u8863"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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 `
`;
}()}