【Pre sale, shipped on November10th 】YG003 # Autumn/Winter High Neck Women's Knitted Shirt with Removable Windproof Inner Tank, Two Piece Set
${function() {
const variantData = data.variant || {"id":"7dbe468f-3473-4268-800f-9d66712697e9","product_id":"66f73783-8cc2-49f2-adab-569dd3604370","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"YG003#210-black-S-A00113946","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/16945080c80d5d7ad56edb9526917e5c.jpg","path":"16945080c80d5d7ad56edb9526917e5c.jpg","width":1024,"height":1366,"alt":"","aspect_ratio":0.7496339677891655},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-november10th-yg003-autumn-winter-high-neck-womens-knitted-shirt-with-removable-windproof-inner-tank-two-piece-set?variant=7dbe468f-3473-4268-800f-9d66712697e9","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Colour:
black
${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
$45.80
${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":"7dbe468f-3473-4268-800f-9d66712697e9","product_id":"66f73783-8cc2-49f2-adab-569dd3604370","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"YG003#210-black-S-A00113946","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/16945080c80d5d7ad56edb9526917e5c.jpg","path":"16945080c80d5d7ad56edb9526917e5c.jpg","width":1024,"height":1366,"alt":"","aspect_ratio":0.7496339677891655},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-november10th-yg003-autumn-winter-high-neck-womens-knitted-shirt-with-removable-windproof-inner-tank-two-piece-set?variant=7dbe468f-3473-4268-800f-9d66712697e9","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"7dbe468f-3473-4268-800f-9d66712697e9","product_id":"66f73783-8cc2-49f2-adab-569dd3604370","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"YG003#210-black-S-A00113946","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/16945080c80d5d7ad56edb9526917e5c.jpg","path":"16945080c80d5d7ad56edb9526917e5c.jpg","width":1024,"height":1366,"alt":"","aspect_ratio":0.7496339677891655},"wholesale_price":[{"price":45.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45.8","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-november10th-yg003-autumn-winter-high-neck-womens-knitted-shirt-with-removable-windproof-inner-tank-two-piece-set?variant=7dbe468f-3473-4268-800f-9d66712697e9","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 `
`;
}()}