PLUS LOFTS Sports Shorts Men's Jogger Pants Mesh Running Loose Stretch Beach Shorts Mesh Basketball Shorts Quick-drying Fitness Pants
${function() {
const variantData = data.variant || {"id":"74034aa3-0053-4013-b3fd-9f3b805e97f1","product_id":"923a6e42-b2b0-43d3-a658-3e80842d55a1","title":"Green-S","weight_unit":"g","inventory_quantity":958,"sku":"","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/59fa2dc191f2ec8914e3c3671914046e.jpeg","path":"59fa2dc191f2ec8914e3c3671914046e.jpeg","width":600,"height":601,"alt":"","aspect_ratio":0.9983361064891847},"wholesale_price":[{"price":22.5,"min_quantity":1}],"weight":"120","compare_at_price":"32.1","price":"22.5","retail_price":"32.1","available":true,"url":"\/products\/plus-lofts-sports-shorts-mens-jogger-pants-mesh-running-loose-stretch-beach-shorts-mesh-basketball-shorts-quick-drying-fitness-pants?variant=74034aa3-0053-4013-b3fd-9f3b805e97f1","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":649};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Green
${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
$22.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":"74034aa3-0053-4013-b3fd-9f3b805e97f1","product_id":"923a6e42-b2b0-43d3-a658-3e80842d55a1","title":"Green-S","weight_unit":"g","inventory_quantity":958,"sku":"","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/59fa2dc191f2ec8914e3c3671914046e.jpeg","path":"59fa2dc191f2ec8914e3c3671914046e.jpeg","width":600,"height":601,"alt":"","aspect_ratio":0.9983361064891847},"wholesale_price":[{"price":22.5,"min_quantity":1}],"weight":"120","compare_at_price":"32.1","price":"22.5","retail_price":"32.1","available":true,"url":"\/products\/plus-lofts-sports-shorts-mens-jogger-pants-mesh-running-loose-stretch-beach-shorts-mesh-basketball-shorts-quick-drying-fitness-pants?variant=74034aa3-0053-4013-b3fd-9f3b805e97f1","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":649};
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.