Women's Beret Hats Houndstooth Print Adjustable Button Vintage Newsboy Hats
${function() {
const variantData = data.variant || {"id":"7625c1dd-f5e5-41ba-820c-5faef23cb8ce","product_id":"c47e5c5d-6b06-4fe4-ac03-c0818b30bf0e","title":"Beige-One Size","weight_unit":"kg","inventory_quantity":100,"sku":"MFOX-655390559855-Bei","barcode":"","position":3,"option1":"Beige","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b4d40a59eb9fce732fd37d4733b5a15d.jpeg","path":"b4d40a59eb9fce732fd37d4733b5a15d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0.15","compare_at_price":"22.99","price":"29.99","retail_price":"22.99","available":true,"url":"\/products\/womens-beret-hats-houndstooth-print-adjustable-button-vintage-newsboy-hats?variant=7625c1dd-f5e5-41ba-820c-5faef23cb8ce","available_quantity":100,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Beige
${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:
One Size
${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
$29.99
${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":"7625c1dd-f5e5-41ba-820c-5faef23cb8ce","product_id":"c47e5c5d-6b06-4fe4-ac03-c0818b30bf0e","title":"Beige-One Size","weight_unit":"kg","inventory_quantity":100,"sku":"MFOX-655390559855-Bei","barcode":"","position":3,"option1":"Beige","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b4d40a59eb9fce732fd37d4733b5a15d.jpeg","path":"b4d40a59eb9fce732fd37d4733b5a15d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0.15","compare_at_price":"22.99","price":"29.99","retail_price":"22.99","available":true,"url":"\/products\/womens-beret-hats-houndstooth-print-adjustable-button-vintage-newsboy-hats?variant=7625c1dd-f5e5-41ba-820c-5faef23cb8ce","available_quantity":100,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"One Size"}],"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 {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.