GAR BETHE Men's Loose Straight-leg Ankle-banded Pants
${function() {
const variantData = data.variant || {"id":"74a92e7f-70e2-434d-b665-5d481a6fd7e3","product_id":"2ccf9bf6-71f9-48ad-9929-4f8716f951c5","title":"Black-120cm","weight_unit":"g","inventory_quantity":914,"sku":"","barcode":"","position":1,"option1":"Black","option2":"120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c941780cdd5427d733720704b390aade.jpeg","path":"c941780cdd5427d733720704b390aade.jpeg","width":750,"height":765,"alt":"","aspect_ratio":0.9803921568627451},"wholesale_price":[{"price":19.8,"min_quantity":1}],"weight":"350","compare_at_price":"33","price":"19.8","retail_price":"33","available":true,"url":"\/products\/gar-bethe-mens-loose-straight-leg-ankle-banded-pants?variant=74a92e7f-70e2-434d-b665-5d481a6fd7e3","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Suit Height","value":"120cm"}],"off_ratio":40,"flashsale_info":[],"sales":744};
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}
`
}()}
Suit Height:
120cm
${function(){
const optName = "Suit Height";
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
$19.80
${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":"74a92e7f-70e2-434d-b665-5d481a6fd7e3","product_id":"2ccf9bf6-71f9-48ad-9929-4f8716f951c5","title":"Black-120cm","weight_unit":"g","inventory_quantity":914,"sku":"","barcode":"","position":1,"option1":"Black","option2":"120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c941780cdd5427d733720704b390aade.jpeg","path":"c941780cdd5427d733720704b390aade.jpeg","width":750,"height":765,"alt":"","aspect_ratio":0.9803921568627451},"wholesale_price":[{"price":19.8,"min_quantity":1}],"weight":"350","compare_at_price":"33","price":"19.8","retail_price":"33","available":true,"url":"\/products\/gar-bethe-mens-loose-straight-leg-ankle-banded-pants?variant=74a92e7f-70e2-434d-b665-5d481a6fd7e3","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Suit Height","value":"120cm"}],"off_ratio":40,"flashsale_info":[],"sales":744};
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.