GAR BETHE Side Stripe Jp&uk New Autumn Men Gym Training Jogging Pants Men Joggers Slim Fit Sweatpants Cotton Running Sport Pants
${function() {
const variantData = data.variant || {"id":"754abfcf-e3d3-4913-b555-fd732ef11bb5","product_id":"5dfbfb51-1db1-4c1c-815d-a2bab6e5e62d","title":"Black-M","weight_unit":"kg","inventory_quantity":980,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc0b647040a202c58c681f242a42f018.jpeg","path":"fc0b647040a202c58c681f242a42f018.jpeg","width":800,"height":1017,"alt":"","aspect_ratio":0.7866273352999017},"wholesale_price":[{"price":28.3,"min_quantity":1}],"weight":"0","compare_at_price":"40.4","price":"28.3","retail_price":"40.4","available":true,"url":"\/products\/gar-bethe-side-stripe-jp-amp-uk-new-autumn-men-gym-training-jogging-pants-men-joggers-slim-fit-sweatpants-cotton-running-sport-pants?variant=754abfcf-e3d3-4913-b555-fd732ef11bb5","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":751};
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:
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}
`
}()}
Add to cart
$28.30
${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":"754abfcf-e3d3-4913-b555-fd732ef11bb5","product_id":"5dfbfb51-1db1-4c1c-815d-a2bab6e5e62d","title":"Black-M","weight_unit":"kg","inventory_quantity":980,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc0b647040a202c58c681f242a42f018.jpeg","path":"fc0b647040a202c58c681f242a42f018.jpeg","width":800,"height":1017,"alt":"","aspect_ratio":0.7866273352999017},"wholesale_price":[{"price":28.3,"min_quantity":1}],"weight":"0","compare_at_price":"40.4","price":"28.3","retail_price":"40.4","available":true,"url":"\/products\/gar-bethe-side-stripe-jp-amp-uk-new-autumn-men-gym-training-jogging-pants-men-joggers-slim-fit-sweatpants-cotton-running-sport-pants?variant=754abfcf-e3d3-4913-b555-fd732ef11bb5","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":30,"flashsale_info":[],"sales":751};
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.