Spring summer men's cotton linen striped button shirt-BUY 2 FREE SHIPPING
${function() {
const variantData = data.variant || {"id":"c3a41c04-5880-4f3f-9a68-ea08d4dbac82","product_id":"85969004-fea2-494c-b874-d7e2de297bf4","title":"noir-S","weight_unit":"kg","inventory_quantity":1000,"sku":"JS1501762-S","barcode":"","position":1,"option1":"noir","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/22f73ed41cddce543e6d406d1bd4359d.jpeg","path":"22f73ed41cddce543e6d406d1bd4359d.jpeg","width":930,"height":925,"alt":"","aspect_ratio":1.0054054054054054},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.96","price":"36.99","retail_price":"69.96","available":true,"url":"\/products\/chemise-boutonn-e-rayures-en-coton-et-lin-pour-hommes-2a0b63831-63de-47af-a0a1-1d0202a8cf3e-5pg7?variant=c3a41c04-5880-4f3f-9a68-ea08d4dbac82","available_quantity":999999999,"options":[{"name":"Color","value":"noir"},{"name":"Size","value":"S"}],"off_ratio":47,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
noir
${function(){
const optName = "Color";
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
$36.99
${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":"c3a41c04-5880-4f3f-9a68-ea08d4dbac82","product_id":"85969004-fea2-494c-b874-d7e2de297bf4","title":"noir-S","weight_unit":"kg","inventory_quantity":1000,"sku":"JS1501762-S","barcode":"","position":1,"option1":"noir","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/22f73ed41cddce543e6d406d1bd4359d.jpeg","path":"22f73ed41cddce543e6d406d1bd4359d.jpeg","width":930,"height":925,"alt":"","aspect_ratio":1.0054054054054054},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.96","price":"36.99","retail_price":"69.96","available":true,"url":"\/products\/chemise-boutonn-e-rayures-en-coton-et-lin-pour-hommes-2a0b63831-63de-47af-a0a1-1d0202a8cf3e-5pg7?variant=c3a41c04-5880-4f3f-9a68-ea08d4dbac82","available_quantity":999999999,"options":[{"name":"Color","value":"noir"},{"name":"Size","value":"S"}],"off_ratio":47,"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":"c3a41c04-5880-4f3f-9a68-ea08d4dbac82","product_id":"85969004-fea2-494c-b874-d7e2de297bf4","title":"noir-S","weight_unit":"kg","inventory_quantity":1000,"sku":"JS1501762-S","barcode":"","position":1,"option1":"noir","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/22f73ed41cddce543e6d406d1bd4359d.jpeg","path":"22f73ed41cddce543e6d406d1bd4359d.jpeg","width":930,"height":925,"alt":"","aspect_ratio":1.0054054054054054},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.96","price":"36.99","retail_price":"69.96","available":true,"url":"\/products\/chemise-boutonn-e-rayures-en-coton-et-lin-pour-hommes-2a0b63831-63de-47af-a0a1-1d0202a8cf3e-5pg7?variant=c3a41c04-5880-4f3f-9a68-ea08d4dbac82","available_quantity":999999999,"options":[{"name":"Color","value":"noir"},{"name":"Size","value":"S"}],"off_ratio":47,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}