GAR BETHE Side Pockets Solid Color Casualpants Fashion Sports Pants
${function() {
const variantData = data.variant || {"id":"2fe8bd56-1e13-40d6-8265-173bf3ee6203","product_id":"7eb22910-8932-4b6e-a40c-fcbaa68c256a","title":"Khaki-M","weight_unit":"g","inventory_quantity":957,"sku":"","barcode":"","position":1,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/82dc3e634a6fd7ccc717e5b62b945d63.jpeg","path":"82dc3e634a6fd7ccc717e5b62b945d63.jpeg","width":369,"height":495,"alt":"","aspect_ratio":0.7454545454545455},"wholesale_price":[{"price":21.9,"min_quantity":1}],"weight":"520","compare_at_price":"43.8","price":"21.9","retail_price":"43.8","available":true,"url":"\/products\/gar-bethe-side-pockets-solid-color-casualpants-fashion-sports-pants?variant=2fe8bd56-1e13-40d6-8265-173bf3ee6203","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":571};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Khaki
${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
$21.90
${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":"2fe8bd56-1e13-40d6-8265-173bf3ee6203","product_id":"7eb22910-8932-4b6e-a40c-fcbaa68c256a","title":"Khaki-M","weight_unit":"g","inventory_quantity":957,"sku":"","barcode":"","position":1,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/82dc3e634a6fd7ccc717e5b62b945d63.jpeg","path":"82dc3e634a6fd7ccc717e5b62b945d63.jpeg","width":369,"height":495,"alt":"","aspect_ratio":0.7454545454545455},"wholesale_price":[{"price":21.9,"min_quantity":1}],"weight":"520","compare_at_price":"43.8","price":"21.9","retail_price":"43.8","available":true,"url":"\/products\/gar-bethe-side-pockets-solid-color-casualpants-fashion-sports-pants?variant=2fe8bd56-1e13-40d6-8265-173bf3ee6203","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":571};
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.