GAR BETHE Men's Fashion Pure Color Washed Cotton Shorts
${function() {
const variantData = data.variant || {"id":"b320f32d-cf84-41d8-be18-2120f1566c76","product_id":"68e05da6-97f2-448a-b71c-c8b60a82f9dd","title":"Yellow-S","weight_unit":"g","inventory_quantity":960,"sku":"","barcode":"","position":1,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/da8e249152d046348ec21c2a3ba9581f.jpeg","path":"da8e249152d046348ec21c2a3ba9581f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.1,"min_quantity":1}],"weight":"470","compare_at_price":"37.1","price":"24.1","retail_price":"37.1","available":true,"url":"\/products\/gar-bethe-mens-fashion-pure-color-washed-cotton-shorts-dt76?variant=b320f32d-cf84-41d8-be18-2120f1566c76","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":687};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Yellow
${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
$24.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":"b320f32d-cf84-41d8-be18-2120f1566c76","product_id":"68e05da6-97f2-448a-b71c-c8b60a82f9dd","title":"Yellow-S","weight_unit":"g","inventory_quantity":960,"sku":"","barcode":"","position":1,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/da8e249152d046348ec21c2a3ba9581f.jpeg","path":"da8e249152d046348ec21c2a3ba9581f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.1,"min_quantity":1}],"weight":"470","compare_at_price":"37.1","price":"24.1","retail_price":"37.1","available":true,"url":"\/products\/gar-bethe-mens-fashion-pure-color-washed-cotton-shorts-dt76?variant=b320f32d-cf84-41d8-be18-2120f1566c76","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":687};
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.