${function() {
const variantData = data.variant || {"id":"c6f12f86-5860-45b1-bce9-5cd5d0d50085","product_id":"7969053e-e8b6-4cb9-915d-508ec9cb3c92","title":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection-Full-grain Leather-4202.11","weight_unit":"kg","inventory_quantity":0,"sku":"AT100217","barcode":"","position":1,"option1":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection","option2":"Full-grain Leather","option3":"4202.11","note":"","image":{"src":"\/\/img.staticdj.com\/e227d969a1818123aecf088a096848a8.webp","path":"e227d969a1818123aecf088a096848a8.webp","width":1982,"height":1512,"alt":"","aspect_ratio":1.310846560846561},"wholesale_price":[{"price":290,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"290","retail_price":"0","available":true,"url":"\/products\/mate-leather-tabac-cuoio?variant=c6f12f86-5860-45b1-bce9-5cd5d0d50085","available_quantity":999999999,"options":[{"name":"Material","value":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection"},{"name":"readabout","value":"Full-grain Leather"},{"name":"hscode","value":"4202.11"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Material
: Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection
${function(){
const optName = "Material";
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}
`
}()}
Readabout
: Full-grain Leather
${function(){
const optName = "readabout";
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}
`
}()}
Hscode
: 4202.11
${function(){
const optName = "hscode";
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
$290.00
${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":"c6f12f86-5860-45b1-bce9-5cd5d0d50085","product_id":"7969053e-e8b6-4cb9-915d-508ec9cb3c92","title":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection-Full-grain Leather-4202.11","weight_unit":"kg","inventory_quantity":0,"sku":"AT100217","barcode":"","position":1,"option1":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection","option2":"Full-grain Leather","option3":"4202.11","note":"","image":{"src":"\/\/img.staticdj.com\/e227d969a1818123aecf088a096848a8.webp","path":"e227d969a1818123aecf088a096848a8.webp","width":1982,"height":1512,"alt":"","aspect_ratio":1.310846560846561},"wholesale_price":[{"price":290,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"290","retail_price":"0","available":true,"url":"\/products\/mate-leather-tabac-cuoio?variant=c6f12f86-5860-45b1-bce9-5cd5d0d50085","available_quantity":999999999,"options":[{"name":"Material","value":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection"},{"name":"readabout","value":"Full-grain Leather"},{"name":"hscode","value":"4202.11"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 {
return `
`
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"c6f12f86-5860-45b1-bce9-5cd5d0d50085","product_id":"7969053e-e8b6-4cb9-915d-508ec9cb3c92","title":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection-Full-grain Leather-4202.11","weight_unit":"kg","inventory_quantity":0,"sku":"AT100217","barcode":"","position":1,"option1":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection","option2":"Full-grain Leather","option3":"4202.11","note":"","image":{"src":"\/\/img.staticdj.com\/e227d969a1818123aecf088a096848a8.webp","path":"e227d969a1818123aecf088a096848a8.webp","width":1982,"height":1512,"alt":"","aspect_ratio":1.310846560846561},"wholesale_price":[{"price":290,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"290","retail_price":"0","available":true,"url":"\/products\/mate-leather-tabac-cuoio?variant=c6f12f86-5860-45b1-bce9-5cd5d0d50085","available_quantity":999999999,"options":[{"name":"Material","value":"Black vegetable tanned, structured full-grain leather & Solid brass with varnish protection"},{"name":"readabout","value":"Full-grain Leather"},{"name":"hscode","value":"4202.11"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}