GAR BETHE Men's Fashion Standard-fit Long-sleeve Corduroy Shirt Single Pocket Comfortable Soft 100% Cotton Work Casual Button-down Shirts
${function() {
const variantData = data.variant || {"id":"e3aa4247-e7a9-443a-bc62-3aaeeaae3fac","product_id":"91fa26c5-79ca-4d5f-ae78-7c4e58fbd6eb","title":"Blue-39","weight_unit":"kg","inventory_quantity":995,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8588cc5fcddaf5d730ddc90efcbc815.jpeg","path":"d8588cc5fcddaf5d730ddc90efcbc815.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.2,"min_quantity":1}],"weight":"0.33","compare_at_price":"38.7","price":"23.2","retail_price":"38.7","available":true,"url":"\/products\/gar-bethe-mens-fashion-standard-fit-long-sleeve-corduroy-shirt-single-pocket-comfortable-soft-100-cotton-work-casual-button-down-shirts-kofr?variant=e3aa4247-e7a9-443a-bc62-3aaeeaae3fac","available_quantity":999999999,"options":[{"name":"color","value":"Blue"},{"name":"size","value":"39"}],"off_ratio":40,"flashsale_info":[],"sales":401};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Blue
${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:
39
${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
$23.20
${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":"e3aa4247-e7a9-443a-bc62-3aaeeaae3fac","product_id":"91fa26c5-79ca-4d5f-ae78-7c4e58fbd6eb","title":"Blue-39","weight_unit":"kg","inventory_quantity":995,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d8588cc5fcddaf5d730ddc90efcbc815.jpeg","path":"d8588cc5fcddaf5d730ddc90efcbc815.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.2,"min_quantity":1}],"weight":"0.33","compare_at_price":"38.7","price":"23.2","retail_price":"38.7","available":true,"url":"\/products\/gar-bethe-mens-fashion-standard-fit-long-sleeve-corduroy-shirt-single-pocket-comfortable-soft-100-cotton-work-casual-button-down-shirts-kofr?variant=e3aa4247-e7a9-443a-bc62-3aaeeaae3fac","available_quantity":999999999,"options":[{"name":"color","value":"Blue"},{"name":"size","value":"39"}],"off_ratio":40,"flashsale_info":[],"sales":401};
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.