PLUS LOFTS Men's Shorts Loose Fitting Straight Summer Oversized Trend Casual Pants Multiple Pockets Cotton Cargo Shorts For Men
${function() {
const variantData = data.variant || {"id":"eb3e896c-340b-4ff1-8ddf-e1e028663eed","product_id":"941e7518-e72b-4681-81fc-6660006958ad","title":"Dark Gray-S","weight_unit":"kg","inventory_quantity":860,"sku":"","barcode":"","position":1,"option1":"Dark Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac78834929bd4d3d00f1528a1936b8be.jpeg","path":"ac78834929bd4d3d00f1528a1936b8be.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.3,"min_quantity":1}],"weight":"0.73","compare_at_price":"29","price":"20.3","retail_price":"29","available":true,"url":"\/products\/plus-lofts-mens-shorts-loose-fitting-straight-summer-oversized-trend-casual-pants-multiple-pockets-cotton-cargo-shorts-for-men-ba3r?variant=eb3e896c-340b-4ff1-8ddf-e1e028663eed","available_quantity":999999999,"options":[{"name":"color","value":"Dark Gray"},{"name":"size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":332};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Dark Gray
${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
$20.30
${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":"eb3e896c-340b-4ff1-8ddf-e1e028663eed","product_id":"941e7518-e72b-4681-81fc-6660006958ad","title":"Dark Gray-S","weight_unit":"kg","inventory_quantity":860,"sku":"","barcode":"","position":1,"option1":"Dark Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac78834929bd4d3d00f1528a1936b8be.jpeg","path":"ac78834929bd4d3d00f1528a1936b8be.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.3,"min_quantity":1}],"weight":"0.73","compare_at_price":"29","price":"20.3","retail_price":"29","available":true,"url":"\/products\/plus-lofts-mens-shorts-loose-fitting-straight-summer-oversized-trend-casual-pants-multiple-pockets-cotton-cargo-shorts-for-men-ba3r?variant=eb3e896c-340b-4ff1-8ddf-e1e028663eed","available_quantity":999999999,"options":[{"name":"color","value":"Dark Gray"},{"name":"size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":332};
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.