【 TOPPP】W324180- New wool collar jacket with windproof layer inside women's coat
${function() {
const variantData = data.variant || {"id":"f9f2042e-128b-4c00-810e-509ce91413bc","product_id":"2e56e0b9-4784-490b-a6ce-00cfd31c88dd","title":"white-S","weight_unit":"kg","inventory_quantity":26,"sku":"W324180290-white-S-A0018031\u5e93\u5b581","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8b45c827d6b360d3d2e70fa849263ca8.jpg","path":"8b45c827d6b360d3d2e70fa849263ca8.jpg","width":1440,"height":1920,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":63,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"63","retail_price":"0","available":true,"url":"\/products\/toppp-w324180-new-wool-collar-jacket-with-windproof-layer-inside-womens-coat?variant=f9f2042e-128b-4c00-810e-509ce91413bc","available_quantity":26,"options":[{"name":"colour","value":"white"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":18};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
white
${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
$63.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":"f9f2042e-128b-4c00-810e-509ce91413bc","product_id":"2e56e0b9-4784-490b-a6ce-00cfd31c88dd","title":"white-S","weight_unit":"kg","inventory_quantity":26,"sku":"W324180290-white-S-A0018031\u5e93\u5b581","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8b45c827d6b360d3d2e70fa849263ca8.jpg","path":"8b45c827d6b360d3d2e70fa849263ca8.jpg","width":1440,"height":1920,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":63,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"63","retail_price":"0","available":true,"url":"\/products\/toppp-w324180-new-wool-collar-jacket-with-windproof-layer-inside-womens-coat?variant=f9f2042e-128b-4c00-810e-509ce91413bc","available_quantity":26,"options":[{"name":"colour","value":"white"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":18};
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":"f9f2042e-128b-4c00-810e-509ce91413bc","product_id":"2e56e0b9-4784-490b-a6ce-00cfd31c88dd","title":"white-S","weight_unit":"kg","inventory_quantity":26,"sku":"W324180290-white-S-A0018031\u5e93\u5b581","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8b45c827d6b360d3d2e70fa849263ca8.jpg","path":"8b45c827d6b360d3d2e70fa849263ca8.jpg","width":1440,"height":1920,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":63,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"63","retail_price":"0","available":true,"url":"\/products\/toppp-w324180-new-wool-collar-jacket-with-windproof-layer-inside-womens-coat?variant=f9f2042e-128b-4c00-810e-509ce91413bc","available_quantity":26,"options":[{"name":"colour","value":"white"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":18};
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 `
`;
}()}