M124193- New autumn and winter men's double-layer brushed mesh windproof and waterproof jacket
${function() {
const variantData = data.variant || {"id":"44f5fe60-f459-40d7-a37b-22060740b35e","product_id":"6816f866-5636-4907-a1f3-35b66fe601fd","title":"Navy Blue-M","weight_unit":"kg","inventory_quantity":30,"sku":"M124193350-Navy Blue-M-A0017508","barcode":"","position":1,"option1":"Navy Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/96250a5fddbbca0c450e403cd2dd3c71.png","path":"96250a5fddbbca0c450e403cd2dd3c71.png","width":358,"height":509,"alt":"","aspect_ratio":0.7033398821218074},"wholesale_price":[{"price":70,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"70","retail_price":"0","available":true,"url":"\/products\/m124193-new-autumn-and-winter-mens-double-layer-brushed-mesh-windproof-and-waterproof-jacket?variant=44f5fe60-f459-40d7-a37b-22060740b35e","available_quantity":30,"options":[{"name":"colour","value":"Navy Blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":7};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
Navy Blue
${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:
M
${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
$70.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":"44f5fe60-f459-40d7-a37b-22060740b35e","product_id":"6816f866-5636-4907-a1f3-35b66fe601fd","title":"Navy Blue-M","weight_unit":"kg","inventory_quantity":30,"sku":"M124193350-Navy Blue-M-A0017508","barcode":"","position":1,"option1":"Navy Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/96250a5fddbbca0c450e403cd2dd3c71.png","path":"96250a5fddbbca0c450e403cd2dd3c71.png","width":358,"height":509,"alt":"","aspect_ratio":0.7033398821218074},"wholesale_price":[{"price":70,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"70","retail_price":"0","available":true,"url":"\/products\/m124193-new-autumn-and-winter-mens-double-layer-brushed-mesh-windproof-and-waterproof-jacket?variant=44f5fe60-f459-40d7-a37b-22060740b35e","available_quantity":30,"options":[{"name":"colour","value":"Navy Blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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":"44f5fe60-f459-40d7-a37b-22060740b35e","product_id":"6816f866-5636-4907-a1f3-35b66fe601fd","title":"Navy Blue-M","weight_unit":"kg","inventory_quantity":30,"sku":"M124193350-Navy Blue-M-A0017508","barcode":"","position":1,"option1":"Navy Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/96250a5fddbbca0c450e403cd2dd3c71.png","path":"96250a5fddbbca0c450e403cd2dd3c71.png","width":358,"height":509,"alt":"","aspect_ratio":0.7033398821218074},"wholesale_price":[{"price":70,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"70","retail_price":"0","available":true,"url":"\/products\/m124193-new-autumn-and-winter-mens-double-layer-brushed-mesh-windproof-and-waterproof-jacket?variant=44f5fe60-f459-40d7-a37b-22060740b35e","available_quantity":30,"options":[{"name":"colour","value":"Navy Blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}