PLUS LOFTS Hanes Men's Athletic Shorts, Favorite Cotton Jersey Shorts, Pull-on Knit Shorts With Pockets, Knit Gym Shorts, 7.5" Inseam
${function() {
const variantData = data.variant || {"id":"ca9010a4-9e6a-4b60-9242-fcaa6145c0db","product_id":"906eb713-2a0a-44ee-94da-a208e04e36c8","title":"Black-Small","weight_unit":"kg","inventory_quantity":640,"sku":"","barcode":"","position":1,"option1":"Black","option2":"Small","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/baf1282371a183b30d6106c769efb2e6.jpeg","path":"baf1282371a183b30d6106c769efb2e6.jpeg","width":351,"height":800,"alt":"","aspect_ratio":0.43875},"wholesale_price":[{"price":25.5,"min_quantity":1}],"weight":"0.01","compare_at_price":"51","price":"25.5","retail_price":"51","available":true,"url":"\/products\/plus-lofts-hanes-men-39-s-athletic-shorts-favorite-cotton-jersey-shorts-pull-on-knit-shorts-with-pockets-knit-gym-shorts-7-5-34-inseam?variant=ca9010a4-9e6a-4b60-9242-fcaa6145c0db","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Small"}],"off_ratio":50,"flashsale_info":[],"sales":517};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black
${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:
Small
${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
$25.50
${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":"ca9010a4-9e6a-4b60-9242-fcaa6145c0db","product_id":"906eb713-2a0a-44ee-94da-a208e04e36c8","title":"Black-Small","weight_unit":"kg","inventory_quantity":640,"sku":"","barcode":"","position":1,"option1":"Black","option2":"Small","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/baf1282371a183b30d6106c769efb2e6.jpeg","path":"baf1282371a183b30d6106c769efb2e6.jpeg","width":351,"height":800,"alt":"","aspect_ratio":0.43875},"wholesale_price":[{"price":25.5,"min_quantity":1}],"weight":"0.01","compare_at_price":"51","price":"25.5","retail_price":"51","available":true,"url":"\/products\/plus-lofts-hanes-men-39-s-athletic-shorts-favorite-cotton-jersey-shorts-pull-on-knit-shorts-with-pockets-knit-gym-shorts-7-5-34-inseam?variant=ca9010a4-9e6a-4b60-9242-fcaa6145c0db","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Small"}],"off_ratio":50,"flashsale_info":[],"sales":517};
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.