GAR BETHE Men's Dragon Automatic Buckle Two-layer Cow Leather Embossed Belt
${function() {
const variantData = data.variant || {"id":"19f9b2eb-17f3-4181-8056-a3ff12889bef","product_id":"62ef1a2d-503c-4911-a27c-915d9239322f","title":"A-105cm","weight_unit":"g","inventory_quantity":847,"sku":"","barcode":"","position":1,"option1":"A","option2":"105cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4fdbfa7ac44975e72758c482effe3c46.jpeg","path":"4fdbfa7ac44975e72758c482effe3c46.jpeg","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.3,"min_quantity":1}],"weight":"249","compare_at_price":"42.4","price":"23.3","retail_price":"42.4","available":true,"url":"\/products\/gar-bethe-mens-dragon-automatic-buckle-two-layer-cow-leather-embossed-belt-0k1i?variant=19f9b2eb-17f3-4181-8056-a3ff12889bef","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Dimensions","value":"105cm"}],"off_ratio":45,"flashsale_info":[],"sales":205};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
A
${function(){
const optName = "style";
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}
`
}()}
Dimensions:
105cm
${function(){
const optName = "Dimensions";
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
$23.30
${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":"19f9b2eb-17f3-4181-8056-a3ff12889bef","product_id":"62ef1a2d-503c-4911-a27c-915d9239322f","title":"A-105cm","weight_unit":"g","inventory_quantity":847,"sku":"","barcode":"","position":1,"option1":"A","option2":"105cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4fdbfa7ac44975e72758c482effe3c46.jpeg","path":"4fdbfa7ac44975e72758c482effe3c46.jpeg","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.3,"min_quantity":1}],"weight":"249","compare_at_price":"42.4","price":"23.3","retail_price":"42.4","available":true,"url":"\/products\/gar-bethe-mens-dragon-automatic-buckle-two-layer-cow-leather-embossed-belt-0k1i?variant=19f9b2eb-17f3-4181-8056-a3ff12889bef","available_quantity":999999999,"options":[{"name":"style","value":"A"},{"name":"Dimensions","value":"105cm"}],"off_ratio":45,"flashsale_info":[],"sales":205};
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.