PLUS LOFTS Mens Summer Beach Elastic Waist Shorts Casual Sports Drawstring Cargo Half Pants
${function() {
const variantData = data.variant || {"id":"20fa4709-f49f-410b-aad9-9efed227db15","product_id":"01f9e34e-bb26-467e-bbb5-e66d6ca0b2c9","title":"Dark grey-M","weight_unit":"kg","inventory_quantity":825,"sku":"","barcode":"","position":1,"option1":"Dark grey","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dc5d68dc0b5df7463765f7e98db8a4e0.jpeg","path":"dc5d68dc0b5df7463765f7e98db8a4e0.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19,"min_quantity":1}],"weight":"0","compare_at_price":"27.1","price":"19","retail_price":"27.1","available":true,"url":"\/products\/plus-lofts-mens-summer-beach-elastic-waist-shorts-casual-sports-drawstring-cargo-half-pants?variant=20fa4709-f49f-410b-aad9-9efed227db15","available_quantity":999999999,"options":[{"name":"Color","value":"Dark grey"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":607};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Dark grey
${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:
M
${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
$19.00
${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":"20fa4709-f49f-410b-aad9-9efed227db15","product_id":"01f9e34e-bb26-467e-bbb5-e66d6ca0b2c9","title":"Dark grey-M","weight_unit":"kg","inventory_quantity":825,"sku":"","barcode":"","position":1,"option1":"Dark grey","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dc5d68dc0b5df7463765f7e98db8a4e0.jpeg","path":"dc5d68dc0b5df7463765f7e98db8a4e0.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19,"min_quantity":1}],"weight":"0","compare_at_price":"27.1","price":"19","retail_price":"27.1","available":true,"url":"\/products\/plus-lofts-mens-summer-beach-elastic-waist-shorts-casual-sports-drawstring-cargo-half-pants?variant=20fa4709-f49f-410b-aad9-9efed227db15","available_quantity":999999999,"options":[{"name":"Color","value":"Dark grey"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":607};
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.