PLUS LOFTS Men's Short Beach Pants Casual Shorts Loose And Comfortable
${function() {
const variantData = data.variant || {"id":"cc4805a6-e83c-4881-9317-6cb20a225243","product_id":"488a9a5d-3472-4795-9453-f2a3ec886be3","title":"Yellow flower-XL","weight_unit":"g","inventory_quantity":600,"sku":"","barcode":"","position":1,"option1":"Yellow flower","option2":"XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/358554210e9a608657e0d502b966a91b.jpeg","path":"358554210e9a608657e0d502b966a91b.jpeg","width":829,"height":557,"alt":"","aspect_ratio":1.488330341113106},"wholesale_price":[{"price":23.1,"min_quantity":1}],"weight":"250","compare_at_price":"42","price":"23.1","retail_price":"42","available":true,"url":"\/products\/plus-lofts-mens-short-beach-pants-casual-shorts-loose-and-comfortable-3u9j?variant=cc4805a6-e83c-4881-9317-6cb20a225243","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow flower"},{"name":"Size","value":"XL"}],"off_ratio":45,"flashsale_info":[],"sales":847};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Yellow flower
${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:
XL
${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
$23.10
${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":"cc4805a6-e83c-4881-9317-6cb20a225243","product_id":"488a9a5d-3472-4795-9453-f2a3ec886be3","title":"Yellow flower-XL","weight_unit":"g","inventory_quantity":600,"sku":"","barcode":"","position":1,"option1":"Yellow flower","option2":"XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/358554210e9a608657e0d502b966a91b.jpeg","path":"358554210e9a608657e0d502b966a91b.jpeg","width":829,"height":557,"alt":"","aspect_ratio":1.488330341113106},"wholesale_price":[{"price":23.1,"min_quantity":1}],"weight":"250","compare_at_price":"42","price":"23.1","retail_price":"42","available":true,"url":"\/products\/plus-lofts-mens-short-beach-pants-casual-shorts-loose-and-comfortable-3u9j?variant=cc4805a6-e83c-4881-9317-6cb20a225243","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow flower"},{"name":"Size","value":"XL"}],"off_ratio":45,"flashsale_info":[],"sales":847};
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.