Men's Grey Knitted Two Piece Set
${function() {
const variantData = data.variant || {"id":"9f36bde6-0a7f-442e-8a36-133c58321286","product_id":"d54b50fd-988e-44f1-9d63-b0f01e51cae8","title":"Grey-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24091308-Grey-S","barcode":"","position":1,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0825a7a3157bdd619c9d0a1ac5785591.png","path":"0825a7a3157bdd619c9d0a1ac5785591.png","width":864,"height":1152,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":60.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"60.99","price":"60.99","retail_price":"60.99","available":true,"url":"\/products\/mens-grey-knitted-two-piece-set-gkbf?variant=9f36bde6-0a7f-442e-8a36-133c58321286","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Grey
${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
$60.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":"9f36bde6-0a7f-442e-8a36-133c58321286","product_id":"d54b50fd-988e-44f1-9d63-b0f01e51cae8","title":"Grey-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24091308-Grey-S","barcode":"","position":1,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0825a7a3157bdd619c9d0a1ac5785591.png","path":"0825a7a3157bdd619c9d0a1ac5785591.png","width":864,"height":1152,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":60.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"60.99","price":"60.99","retail_price":"60.99","available":true,"url":"\/products\/mens-grey-knitted-two-piece-set-gkbf?variant=9f36bde6-0a7f-442e-8a36-133c58321286","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"9f36bde6-0a7f-442e-8a36-133c58321286","product_id":"d54b50fd-988e-44f1-9d63-b0f01e51cae8","title":"Grey-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24091308-Grey-S","barcode":"","position":1,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0825a7a3157bdd619c9d0a1ac5785591.png","path":"0825a7a3157bdd619c9d0a1ac5785591.png","width":864,"height":1152,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":60.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"60.99","price":"60.99","retail_price":"60.99","available":true,"url":"\/products\/mens-grey-knitted-two-piece-set-gkbf?variant=9f36bde6-0a7f-442e-8a36-133c58321286","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Barcode : ${variantData && variantData.barcode}
`
}()}