【Pre sale, shipped on December 15th】H25006 Women's Autumn/Winter Warm and Comfortable Wool Sweater
${function() {
const variantData = data.variant || {"id":"4ca47ef7-1443-4ed4-94c0-967d81ceda2f","product_id":"2284f236-3a18-4a8b-b3de-0fcb551b8ead","title":"orange-S","weight_unit":"kg","inventory_quantity":19,"sku":"H25006#P190-orange-S-A0018185","barcode":"","position":1,"option1":"orange","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/acc45cda7d6c9a2b9691c3d9e32ab638.png","path":"acc45cda7d6c9a2b9691c3d9e32ab638.png","width":498,"height":693,"alt":"","aspect_ratio":0.7186147186147186},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-december-15th-h25006-womens-autumn-winter-warm-and-comfortable-wool-sweater?variant=4ca47ef7-1443-4ed4-94c0-967d81ceda2f","available_quantity":19,"options":[{"name":"colour","value":"orange"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
orange
${function(){
const optName = "colour";
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}
`
}()}
Size:
S
${function(){
const optName = "size";
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
$42.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":"4ca47ef7-1443-4ed4-94c0-967d81ceda2f","product_id":"2284f236-3a18-4a8b-b3de-0fcb551b8ead","title":"orange-S","weight_unit":"kg","inventory_quantity":19,"sku":"H25006#P190-orange-S-A0018185","barcode":"","position":1,"option1":"orange","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/acc45cda7d6c9a2b9691c3d9e32ab638.png","path":"acc45cda7d6c9a2b9691c3d9e32ab638.png","width":498,"height":693,"alt":"","aspect_ratio":0.7186147186147186},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-december-15th-h25006-womens-autumn-winter-warm-and-comfortable-wool-sweater?variant=4ca47ef7-1443-4ed4-94c0-967d81ceda2f","available_quantity":19,"options":[{"name":"colour","value":"orange"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"4ca47ef7-1443-4ed4-94c0-967d81ceda2f","product_id":"2284f236-3a18-4a8b-b3de-0fcb551b8ead","title":"orange-S","weight_unit":"kg","inventory_quantity":19,"sku":"H25006#P190-orange-S-A0018185","barcode":"","position":1,"option1":"orange","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/acc45cda7d6c9a2b9691c3d9e32ab638.png","path":"acc45cda7d6c9a2b9691c3d9e32ab638.png","width":498,"height":693,"alt":"","aspect_ratio":0.7186147186147186},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-december-15th-h25006-womens-autumn-winter-warm-and-comfortable-wool-sweater?variant=4ca47ef7-1443-4ed4-94c0-967d81ceda2f","available_quantity":19,"options":[{"name":"colour","value":"orange"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}