GAR BETHE Tweed Wool 8 Piece Black Herringbone Newsboy Cap Men Classic 8-quarter Panel Style Flat Caps Women Beret Hat
${function() {
const variantData = data.variant || {"id":"535db796-13f0-4c65-9ad6-8eecea438232","product_id":"e5349e70-e6fa-4891-9e3d-6af2acc02f10","title":"Black-57cm","weight_unit":"kg","inventory_quantity":660,"sku":"","barcode":"","position":1,"option1":"Black","option2":"57cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d00ca7a4b97086cbccebbbc3fe73bf4.jpeg","path":"0d00ca7a4b97086cbccebbbc3fe73bf4.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.4,"min_quantity":1}],"weight":"0.18","compare_at_price":"39.1","price":"25.4","retail_price":"39.1","available":true,"url":"\/products\/gar-bethe-tweed-wool-8-piece-black-herringbone-newsboy-cap-men-classic-8-quarter-panel-style-flat-caps-women-beret-hat?variant=535db796-13f0-4c65-9ad6-8eecea438232","available_quantity":999999999,"options":[{"name":"color","value":"Black"},{"name":"Hat Size","value":"57cm"}],"off_ratio":35,"flashsale_info":[],"sales":535};
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}
`
}()}
Hat Size:
57cm
${function(){
const optName = "Hat 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
$25.40
${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":"535db796-13f0-4c65-9ad6-8eecea438232","product_id":"e5349e70-e6fa-4891-9e3d-6af2acc02f10","title":"Black-57cm","weight_unit":"kg","inventory_quantity":660,"sku":"","barcode":"","position":1,"option1":"Black","option2":"57cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d00ca7a4b97086cbccebbbc3fe73bf4.jpeg","path":"0d00ca7a4b97086cbccebbbc3fe73bf4.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.4,"min_quantity":1}],"weight":"0.18","compare_at_price":"39.1","price":"25.4","retail_price":"39.1","available":true,"url":"\/products\/gar-bethe-tweed-wool-8-piece-black-herringbone-newsboy-cap-men-classic-8-quarter-panel-style-flat-caps-women-beret-hat?variant=535db796-13f0-4c65-9ad6-8eecea438232","available_quantity":999999999,"options":[{"name":"color","value":"Black"},{"name":"Hat Size","value":"57cm"}],"off_ratio":35,"flashsale_info":[],"sales":535};
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.