Men's Cotton Linen Short Sleeve Shirt Top
${function() {
const variantData = data.variant || {"id":"c939b91c-ffda-452f-886d-c350c259ef4c","product_id":"fc285292-8a7f-4741-83bd-c9e1e406d35d","title":"Beige-M","weight_unit":"kg","inventory_quantity":200,"sku":"YJ6063-Beige-M","barcode":"","position":1,"option1":"Beige","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","path":"1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.2","compare_at_price":"34.99","price":"24.99","retail_price":"34.99","available":true,"url":"\/products\/ultra-thin-breathable-quick-drying-baseball-cap-outdoorcarved-net-hat-43?variant=c939b91c-ffda-452f-886d-c350c259ef4c","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"M"}],"off_ratio":29,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Beige
${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:
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
$24.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":"c939b91c-ffda-452f-886d-c350c259ef4c","product_id":"fc285292-8a7f-4741-83bd-c9e1e406d35d","title":"Beige-M","weight_unit":"kg","inventory_quantity":200,"sku":"YJ6063-Beige-M","barcode":"","position":1,"option1":"Beige","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","path":"1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.2","compare_at_price":"34.99","price":"24.99","retail_price":"34.99","available":true,"url":"\/products\/ultra-thin-breathable-quick-drying-baseball-cap-outdoorcarved-net-hat-43?variant=c939b91c-ffda-452f-886d-c350c259ef4c","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"M"}],"off_ratio":29,"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":"c939b91c-ffda-452f-886d-c350c259ef4c","product_id":"fc285292-8a7f-4741-83bd-c9e1e406d35d","title":"Beige-M","weight_unit":"kg","inventory_quantity":200,"sku":"YJ6063-Beige-M","barcode":"","position":1,"option1":"Beige","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","path":"1f2d1ba1d039a7abbf9f07f3f31158d5.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.2","compare_at_price":"34.99","price":"24.99","retail_price":"34.99","available":true,"url":"\/products\/ultra-thin-breathable-quick-drying-baseball-cap-outdoorcarved-net-hat-43?variant=c939b91c-ffda-452f-886d-c350c259ef4c","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"M"}],"off_ratio":29,"flashsale_info":[],"sales":0};
return `
`
}()}