BRANCH TEK Men's Fashion Casual Slim Body Collision Color Splicing Pants
Apparel & Accessories > Clothing > Pants
${function() {
const variantData = data.variant || {"id":"ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","product_id":"f8929164-215e-40db-87c1-f8bb6253c0f0","title":"Black-M","weight_unit":"g","inventory_quantity":839,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/86472057f50570a0788a4f7f34d1b96a.jpeg","path":"86472057f50570a0788a4f7f34d1b96a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.2,"min_quantity":1}],"weight":"520","compare_at_price":"68.4","price":"34.2","retail_price":"68.4","available":true,"url":"\/products\/branch-tek-mens-fashion-casual-slim-body-collision-color-splicing-pants?variant=ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":290};
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
$34.20
${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":"ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","product_id":"f8929164-215e-40db-87c1-f8bb6253c0f0","title":"Black-M","weight_unit":"g","inventory_quantity":839,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/86472057f50570a0788a4f7f34d1b96a.jpeg","path":"86472057f50570a0788a4f7f34d1b96a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.2,"min_quantity":1}],"weight":"520","compare_at_price":"68.4","price":"34.2","retail_price":"68.4","available":true,"url":"\/products\/branch-tek-mens-fashion-casual-slim-body-collision-color-splicing-pants?variant=ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":290};
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":"ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","product_id":"f8929164-215e-40db-87c1-f8bb6253c0f0","title":"Black-M","weight_unit":"g","inventory_quantity":839,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/86472057f50570a0788a4f7f34d1b96a.jpeg","path":"86472057f50570a0788a4f7f34d1b96a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.2,"min_quantity":1}],"weight":"520","compare_at_price":"68.4","price":"34.2","retail_price":"68.4","available":true,"url":"\/products\/branch-tek-mens-fashion-casual-slim-body-collision-color-splicing-pants?variant=ecaf5acb-cfb8-44ae-900d-8ee81e49b8e6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":290};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}