PLUS LOFTS Men's Tropical Coconut Color Splatter Print Swim Shorts
${function() {
const variantData = data.variant || {"id":"eabe290f-d607-4ec3-b1b9-13feb15846b2","product_id":"f8552568-5b71-45ab-b32e-67cffeabc843","title":"Splashed Coconut-2XL","weight_unit":"g","inventory_quantity":974,"sku":"","barcode":"","position":1,"option1":"Splashed Coconut","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1b8aca60578e205b0462712ebe13a93.jpeg","path":"f1b8aca60578e205b0462712ebe13a93.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.4,"min_quantity":1}],"weight":"95","compare_at_price":"33.5","price":"18.4","retail_price":"33.5","available":true,"url":"\/products\/plus-lofts-mens-tropical-coconut-color-splatter-print-swim-shorts?variant=eabe290f-d607-4ec3-b1b9-13feb15846b2","available_quantity":999999999,"options":[{"name":"Color","value":"Splashed Coconut"},{"name":"Size","value":"2XL"}],"off_ratio":45,"flashsale_info":[],"sales":861};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Splashed Coconut
${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:
2XL
${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
$18.40
${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":"eabe290f-d607-4ec3-b1b9-13feb15846b2","product_id":"f8552568-5b71-45ab-b32e-67cffeabc843","title":"Splashed Coconut-2XL","weight_unit":"g","inventory_quantity":974,"sku":"","barcode":"","position":1,"option1":"Splashed Coconut","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1b8aca60578e205b0462712ebe13a93.jpeg","path":"f1b8aca60578e205b0462712ebe13a93.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.4,"min_quantity":1}],"weight":"95","compare_at_price":"33.5","price":"18.4","retail_price":"33.5","available":true,"url":"\/products\/plus-lofts-mens-tropical-coconut-color-splatter-print-swim-shorts?variant=eabe290f-d607-4ec3-b1b9-13feb15846b2","available_quantity":999999999,"options":[{"name":"Color","value":"Splashed Coconut"},{"name":"Size","value":"2XL"}],"off_ratio":45,"flashsale_info":[],"sales":861};
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.