BRANCH TEK Summer New Cotton Casual Men's Cargo Shorts Straight Fit Large Size Solid Color Sports Menwear
Apparel & Accessories > Clothing > Pants
${function() {
const variantData = data.variant || {"id":"10139cb9-b0a8-49c2-aa9b-6477667f32da","product_id":"3806eb23-aac3-4df5-9e39-9419bfc7b030","title":"Navy-30","weight_unit":"g","inventory_quantity":765,"sku":"","barcode":"","position":1,"option1":"Navy","option2":"30","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/13ca013c11f88170d152bd7e011e6d12.jpeg","path":"13ca013c11f88170d152bd7e011e6d12.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11.6,"min_quantity":1}],"weight":"480","compare_at_price":"17.8","price":"11.6","retail_price":"17.8","available":true,"url":"\/products\/branch-tek-summer-new-cotton-casual-mens-cargo-shorts-straight-fit-large-size-solid-color-sports-menwear?variant=10139cb9-b0a8-49c2-aa9b-6477667f32da","available_quantity":999999999,"options":[{"name":"color","value":"Navy"},{"name":"size","value":"30"}],"off_ratio":35,"flashsale_info":[],"sales":812};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Navy
${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:
30
${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
$11.60
${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":"10139cb9-b0a8-49c2-aa9b-6477667f32da","product_id":"3806eb23-aac3-4df5-9e39-9419bfc7b030","title":"Navy-30","weight_unit":"g","inventory_quantity":765,"sku":"","barcode":"","position":1,"option1":"Navy","option2":"30","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/13ca013c11f88170d152bd7e011e6d12.jpeg","path":"13ca013c11f88170d152bd7e011e6d12.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11.6,"min_quantity":1}],"weight":"480","compare_at_price":"17.8","price":"11.6","retail_price":"17.8","available":true,"url":"\/products\/branch-tek-summer-new-cotton-casual-mens-cargo-shorts-straight-fit-large-size-solid-color-sports-menwear?variant=10139cb9-b0a8-49c2-aa9b-6477667f32da","available_quantity":999999999,"options":[{"name":"color","value":"Navy"},{"name":"size","value":"30"}],"off_ratio":35,"flashsale_info":[],"sales":812};
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":"10139cb9-b0a8-49c2-aa9b-6477667f32da","product_id":"3806eb23-aac3-4df5-9e39-9419bfc7b030","title":"Navy-30","weight_unit":"g","inventory_quantity":765,"sku":"","barcode":"","position":1,"option1":"Navy","option2":"30","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/13ca013c11f88170d152bd7e011e6d12.jpeg","path":"13ca013c11f88170d152bd7e011e6d12.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11.6,"min_quantity":1}],"weight":"480","compare_at_price":"17.8","price":"11.6","retail_price":"17.8","available":true,"url":"\/products\/branch-tek-summer-new-cotton-casual-mens-cargo-shorts-straight-fit-large-size-solid-color-sports-menwear?variant=10139cb9-b0a8-49c2-aa9b-6477667f32da","available_quantity":999999999,"options":[{"name":"color","value":"Navy"},{"name":"size","value":"30"}],"off_ratio":35,"flashsale_info":[],"sales":812};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}