GAR BETHE Breathable Mesh Hollow Berets Hat For Men Convenient Spring Summer Beret Quick-drying Cap Retro Sun Hats Painter Caps
${function() {
const variantData = data.variant || {"id":"c67cac7e-7d0e-4bda-b656-52d4df305306","product_id":"639e9ffd-c350-42b5-940f-a68b6879a2cb","title":"navy blue-55-60cm","weight_unit":"kg","inventory_quantity":647,"sku":"","barcode":"","position":1,"option1":"navy blue","option2":"55-60cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d61cdc18565270db9ff72513b8799268.jpeg","path":"d61cdc18565270db9ff72513b8799268.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":5.1,"min_quantity":1}],"weight":"0.05","compare_at_price":"9.3","price":"5.1","retail_price":"9.3","available":true,"url":"\/products\/gar-bethe-breathable-mesh-hollow-berets-hat-for-men-convenient-spring-summer-beret-quick-drying-cap-retro-sun-hats-painter-caps?variant=c67cac7e-7d0e-4bda-b656-52d4df305306","available_quantity":999999999,"options":[{"name":"color","value":"navy blue"},{"name":"Hat Size","value":"55-60cm"}],"off_ratio":45,"flashsale_info":[],"sales":546};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
navy blue
${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:
55-60cm
${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
$5.10
${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":"c67cac7e-7d0e-4bda-b656-52d4df305306","product_id":"639e9ffd-c350-42b5-940f-a68b6879a2cb","title":"navy blue-55-60cm","weight_unit":"kg","inventory_quantity":647,"sku":"","barcode":"","position":1,"option1":"navy blue","option2":"55-60cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d61cdc18565270db9ff72513b8799268.jpeg","path":"d61cdc18565270db9ff72513b8799268.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":5.1,"min_quantity":1}],"weight":"0.05","compare_at_price":"9.3","price":"5.1","retail_price":"9.3","available":true,"url":"\/products\/gar-bethe-breathable-mesh-hollow-berets-hat-for-men-convenient-spring-summer-beret-quick-drying-cap-retro-sun-hats-painter-caps?variant=c67cac7e-7d0e-4bda-b656-52d4df305306","available_quantity":999999999,"options":[{"name":"color","value":"navy blue"},{"name":"Hat Size","value":"55-60cm"}],"off_ratio":45,"flashsale_info":[],"sales":546};
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.