GAR BETHE New Men's Beach Shorts Fun 3d Striped Print Swim Trunks Fashion Summer Loose Casual Pants Boy Girl Unisex Gym Board Shorts
${function() {
const variantData = data.variant || {"id":"eca72b7c-5976-4e06-841f-fbc4a7d0d309","product_id":"31b9e5d3-7023-46d3-981c-22f90d9fcdfa","title":"Shorts-PYA35069-XXS","weight_unit":"kg","inventory_quantity":812,"sku":"","barcode":"","position":1,"option1":"Shorts-PYA35069","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/852aa33458da7d628669b1d9e0c03172.jpeg","path":"852aa33458da7d628669b1d9e0c03172.jpeg","width":800,"height":1052,"alt":"","aspect_ratio":0.7604562737642585},"wholesale_price":[{"price":11.6,"min_quantity":1}],"weight":"0.2","compare_at_price":"21.1","price":"11.6","retail_price":"21.1","available":true,"url":"\/products\/gar-bethe-new-mens-beach-shorts-fun-3d-striped-print-swim-trunks-fashion-summer-loose-casual-pants-boy-girl-unisex-gym-board-shorts-ytn5?variant=eca72b7c-5976-4e06-841f-fbc4a7d0d309","available_quantity":999999999,"options":[{"name":"color","value":"Shorts-PYA35069"},{"name":"size","value":"XXS"}],"off_ratio":45,"flashsale_info":[],"sales":631};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Shorts-PYA35069
${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:
XXS
${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
$11.60
${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":"eca72b7c-5976-4e06-841f-fbc4a7d0d309","product_id":"31b9e5d3-7023-46d3-981c-22f90d9fcdfa","title":"Shorts-PYA35069-XXS","weight_unit":"kg","inventory_quantity":812,"sku":"","barcode":"","position":1,"option1":"Shorts-PYA35069","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/852aa33458da7d628669b1d9e0c03172.jpeg","path":"852aa33458da7d628669b1d9e0c03172.jpeg","width":800,"height":1052,"alt":"","aspect_ratio":0.7604562737642585},"wholesale_price":[{"price":11.6,"min_quantity":1}],"weight":"0.2","compare_at_price":"21.1","price":"11.6","retail_price":"21.1","available":true,"url":"\/products\/gar-bethe-new-mens-beach-shorts-fun-3d-striped-print-swim-trunks-fashion-summer-loose-casual-pants-boy-girl-unisex-gym-board-shorts-ytn5?variant=eca72b7c-5976-4e06-841f-fbc4a7d0d309","available_quantity":999999999,"options":[{"name":"color","value":"Shorts-PYA35069"},{"name":"size","value":"XXS"}],"off_ratio":45,"flashsale_info":[],"sales":631};
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.