BRANCH TEK Camouflage Cargo Trousers
Apparel & Accessories > Clothing > Pants
${function() {
const variantData = data.variant || {"id":"31b0ec05-dfed-4877-904d-97108524a0cb","product_id":"32747c7b-7441-4e27-a8fa-4c7090e8bba6","title":"Black-36","weight_unit":"g","inventory_quantity":883,"sku":"","barcode":"","position":2,"option1":"Black","option2":"36","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e34510d04c888c6862f0e2738c42e9a.jpeg","path":"0e34510d04c888c6862f0e2738c42e9a.jpeg","width":478,"height":562,"alt":"","aspect_ratio":0.8505338078291815},"wholesale_price":[{"price":29.7,"min_quantity":1}],"weight":"681","compare_at_price":"29.7","price":"29.7","retail_price":"29.7","available":true,"url":"\/products\/branch-tek-camouflage-cargo-trousers?variant=31b0ec05-dfed-4877-904d-97108524a0cb","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"36"}],"off_ratio":0,"flashsale_info":[],"sales":551};
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:
36
${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
$29.70
${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":"31b0ec05-dfed-4877-904d-97108524a0cb","product_id":"32747c7b-7441-4e27-a8fa-4c7090e8bba6","title":"Black-36","weight_unit":"g","inventory_quantity":883,"sku":"","barcode":"","position":2,"option1":"Black","option2":"36","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e34510d04c888c6862f0e2738c42e9a.jpeg","path":"0e34510d04c888c6862f0e2738c42e9a.jpeg","width":478,"height":562,"alt":"","aspect_ratio":0.8505338078291815},"wholesale_price":[{"price":29.7,"min_quantity":1}],"weight":"681","compare_at_price":"29.7","price":"29.7","retail_price":"29.7","available":true,"url":"\/products\/branch-tek-camouflage-cargo-trousers?variant=31b0ec05-dfed-4877-904d-97108524a0cb","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"36"}],"off_ratio":0,"flashsale_info":[],"sales":551};
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.
${function(){
const variantData = data.variant || {"id":"31b0ec05-dfed-4877-904d-97108524a0cb","product_id":"32747c7b-7441-4e27-a8fa-4c7090e8bba6","title":"Black-36","weight_unit":"g","inventory_quantity":883,"sku":"","barcode":"","position":2,"option1":"Black","option2":"36","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e34510d04c888c6862f0e2738c42e9a.jpeg","path":"0e34510d04c888c6862f0e2738c42e9a.jpeg","width":478,"height":562,"alt":"","aspect_ratio":0.8505338078291815},"wholesale_price":[{"price":29.7,"min_quantity":1}],"weight":"681","compare_at_price":"29.7","price":"29.7","retail_price":"29.7","available":true,"url":"\/products\/branch-tek-camouflage-cargo-trousers?variant=31b0ec05-dfed-4877-904d-97108524a0cb","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"36"}],"off_ratio":0,"flashsale_info":[],"sales":551};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}