BRANCH TEK Men's Casual Drawstring Elastic Waist Flap Pocket Letter Graphic Street Jogger Cargo Pants
Apparel & Accessories > Clothing > Pants
${function() {
const variantData = data.variant || {"id":"9130adab-6648-4e6b-ad40-19d685e21d6e","product_id":"cb948e7d-7201-4cc4-a62a-6ccc698bb51f","title":"Black Solid-X-Small","weight_unit":"kg","inventory_quantity":917,"sku":"","barcode":"","position":1,"option1":"Black Solid","option2":"X-Small","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","path":"e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","width":898,"height":1500,"alt":"","aspect_ratio":0.5986666666666667},"wholesale_price":[{"price":46.9,"min_quantity":1}],"weight":"0","compare_at_price":"78.2","price":"46.9","retail_price":"78.2","available":true,"url":"\/products\/branch-tek-mens-casual-drawstring-elastic-waist-flap-pocket-letter-graphic-street-jogger-cargo-pants?variant=9130adab-6648-4e6b-ad40-19d685e21d6e","available_quantity":999999999,"options":[{"name":"Color","value":"Black Solid"},{"name":"Size","value":"X-Small"}],"off_ratio":40,"flashsale_info":[],"sales":456};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black Solid
${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:
X-Small
${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
$46.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":"9130adab-6648-4e6b-ad40-19d685e21d6e","product_id":"cb948e7d-7201-4cc4-a62a-6ccc698bb51f","title":"Black Solid-X-Small","weight_unit":"kg","inventory_quantity":917,"sku":"","barcode":"","position":1,"option1":"Black Solid","option2":"X-Small","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","path":"e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","width":898,"height":1500,"alt":"","aspect_ratio":0.5986666666666667},"wholesale_price":[{"price":46.9,"min_quantity":1}],"weight":"0","compare_at_price":"78.2","price":"46.9","retail_price":"78.2","available":true,"url":"\/products\/branch-tek-mens-casual-drawstring-elastic-waist-flap-pocket-letter-graphic-street-jogger-cargo-pants?variant=9130adab-6648-4e6b-ad40-19d685e21d6e","available_quantity":999999999,"options":[{"name":"Color","value":"Black Solid"},{"name":"Size","value":"X-Small"}],"off_ratio":40,"flashsale_info":[],"sales":456};
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":"9130adab-6648-4e6b-ad40-19d685e21d6e","product_id":"cb948e7d-7201-4cc4-a62a-6ccc698bb51f","title":"Black Solid-X-Small","weight_unit":"kg","inventory_quantity":917,"sku":"","barcode":"","position":1,"option1":"Black Solid","option2":"X-Small","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","path":"e27aecdc7fcfce8ae219f5bee9e9df6b.jpeg","width":898,"height":1500,"alt":"","aspect_ratio":0.5986666666666667},"wholesale_price":[{"price":46.9,"min_quantity":1}],"weight":"0","compare_at_price":"78.2","price":"46.9","retail_price":"78.2","available":true,"url":"\/products\/branch-tek-mens-casual-drawstring-elastic-waist-flap-pocket-letter-graphic-street-jogger-cargo-pants?variant=9130adab-6648-4e6b-ad40-19d685e21d6e","available_quantity":999999999,"options":[{"name":"Color","value":"Black Solid"},{"name":"Size","value":"X-Small"}],"off_ratio":40,"flashsale_info":[],"sales":456};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}