Men's Two-piece Sport Fitness Quick Dry Swimsuit Set
${function() {
const variantData = data.variant || {"id":"ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","product_id":"4c0d354c-5c78-4972-9a60-dde2922de3a1","title":"Blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24032701-Blue-S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce9061df1a031e336c9ae2000338d98d.png","path":"ce9061df1a031e336c9ae2000338d98d.png","width":928,"height":1232,"alt":"","aspect_ratio":0.7532467532467533},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"300","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/mens-two-piece-sport-fitness-quick-dry-swimsuit-set-ox9m?variant=ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":16};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Blue
${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
$35.99
${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":"ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","product_id":"4c0d354c-5c78-4972-9a60-dde2922de3a1","title":"Blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24032701-Blue-S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce9061df1a031e336c9ae2000338d98d.png","path":"ce9061df1a031e336c9ae2000338d98d.png","width":928,"height":1232,"alt":"","aspect_ratio":0.7532467532467533},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"300","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/mens-two-piece-sport-fitness-quick-dry-swimsuit-set-ox9m?variant=ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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.
${function(){
const variantData = data.variant || {"id":"ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","product_id":"4c0d354c-5c78-4972-9a60-dde2922de3a1","title":"Blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"EO24032701-Blue-S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce9061df1a031e336c9ae2000338d98d.png","path":"ce9061df1a031e336c9ae2000338d98d.png","width":928,"height":1232,"alt":"","aspect_ratio":0.7532467532467533},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"300","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/mens-two-piece-sport-fitness-quick-dry-swimsuit-set-ox9m?variant=ba753fd6-7b52-4c32-9bcd-249a23c8bb5d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":16};
return `
Sku : ${variantData && variantData.sku}
Barcode : ${variantData && variantData.barcode}
`
}()}