GAR BETHE Men's Summer Chinese Style Harlan Pants Fashion Green Lion Wake Retro Element Embroidery Label Drawstring Minimalist Trousers
${function() {
const variantData = data.variant || {"id":"a4d82966-fe2b-458a-990d-a3e4f90ba92c","product_id":"6936e4f6-ef25-4f86-a550-44ded6f90931","title":"M-Black","weight_unit":"kg","inventory_quantity":803,"sku":"","barcode":"","position":1,"option1":"M","option2":"Black","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0beae94072ceb51625ef528198938662.jpeg","path":"0beae94072ceb51625ef528198938662.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.4,"min_quantity":1}],"weight":"0.55","compare_at_price":"45.2","price":"29.4","retail_price":"45.2","available":true,"url":"\/products\/gar-bethe-mens-summer-chinese-style-harlan-pants-fashion-green-lion-wake-retro-element-embroidery-label-drawstring-minimalist-trousers?variant=a4d82966-fe2b-458a-990d-a3e4f90ba92c","available_quantity":999999999,"options":[{"name":"size","value":"M"},{"name":"color","value":"Black"}],"off_ratio":35,"flashsale_info":[],"sales":180};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
M
${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}
`
}()}
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}
`
}()}
Add to cart
$29.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":"a4d82966-fe2b-458a-990d-a3e4f90ba92c","product_id":"6936e4f6-ef25-4f86-a550-44ded6f90931","title":"M-Black","weight_unit":"kg","inventory_quantity":803,"sku":"","barcode":"","position":1,"option1":"M","option2":"Black","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0beae94072ceb51625ef528198938662.jpeg","path":"0beae94072ceb51625ef528198938662.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.4,"min_quantity":1}],"weight":"0.55","compare_at_price":"45.2","price":"29.4","retail_price":"45.2","available":true,"url":"\/products\/gar-bethe-mens-summer-chinese-style-harlan-pants-fashion-green-lion-wake-retro-element-embroidery-label-drawstring-minimalist-trousers?variant=a4d82966-fe2b-458a-990d-a3e4f90ba92c","available_quantity":999999999,"options":[{"name":"size","value":"M"},{"name":"color","value":"Black"}],"off_ratio":35,"flashsale_info":[],"sales":180};
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.