GAR BETHE Mens Sports Pocket Solid Drawstring Board Trunk Beach Short Pants Shorts Summer Thin Trousers Zippered Pocket Loose Sweatpants
${function() {
const variantData = data.variant || {"id":"5386787d-30b7-445c-86d1-833dda67b9d5","product_id":"9c4a59fd-a16f-4a93-925b-522ae3f83cec","title":"Black-2XL","weight_unit":"kg","inventory_quantity":966,"sku":"","barcode":"","position":1,"option1":"Black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6beec013898b9decc3bb1f6bedb00844.jpeg","path":"6beec013898b9decc3bb1f6bedb00844.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"15.5","price":"8.5","retail_price":"15.5","available":true,"url":"\/products\/gar-bethe-mens-sports-pocket-solid-drawstring-board-trunk-beach-short-pants-shorts-summer-thin-trousers-zippered-pocket-loose-sweatpants?variant=5386787d-30b7-445c-86d1-833dda67b9d5","available_quantity":999999999,"options":[{"name":"color","value":"Black"},{"name":"size","value":"2XL"}],"off_ratio":45,"flashsale_info":[],"sales":336};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black
${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
$8.50
${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":"5386787d-30b7-445c-86d1-833dda67b9d5","product_id":"9c4a59fd-a16f-4a93-925b-522ae3f83cec","title":"Black-2XL","weight_unit":"kg","inventory_quantity":966,"sku":"","barcode":"","position":1,"option1":"Black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6beec013898b9decc3bb1f6bedb00844.jpeg","path":"6beec013898b9decc3bb1f6bedb00844.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"15.5","price":"8.5","retail_price":"15.5","available":true,"url":"\/products\/gar-bethe-mens-sports-pocket-solid-drawstring-board-trunk-beach-short-pants-shorts-summer-thin-trousers-zippered-pocket-loose-sweatpants?variant=5386787d-30b7-445c-86d1-833dda67b9d5","available_quantity":999999999,"options":[{"name":"color","value":"Black"},{"name":"size","value":"2XL"}],"off_ratio":45,"flashsale_info":[],"sales":336};
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.