GAR BETHE Quick Dry Military Hats Unisex Summer Flat Top Hat Women Outdoor Army Cap Men Adjustable Baseball Caps Mesh Hat Trucker Cap
${function() {
const variantData = data.variant || {"id":"6cb0bd28-d018-4f54-9505-99ea2c71d140","product_id":"b2c29720-9eee-4e97-a6fc-bc6ed5cf69b2","title":"light grey","weight_unit":"kg","inventory_quantity":778,"sku":"","barcode":"","position":1,"option1":"light grey","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/63a23b48c182f1d62a2c683f36bb98ce.jpeg","path":"63a23b48c182f1d62a2c683f36bb98ce.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":6.9,"min_quantity":1}],"weight":"0.07","compare_at_price":"12.5","price":"6.9","retail_price":"12.5","available":true,"url":"\/products\/gar-bethe-quick-dry-military-hats-unisex-summer-flat-top-hat-women-outdoor-army-cap-men-adjustable-baseball-caps-mesh-hat-trucker-cap?variant=6cb0bd28-d018-4f54-9505-99ea2c71d140","available_quantity":999999999,"options":[{"name":"color","value":"light grey"}],"off_ratio":45,"flashsale_info":[],"sales":184};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
light grey
${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}
`
}()}
Add to cart
$6.90
${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":"6cb0bd28-d018-4f54-9505-99ea2c71d140","product_id":"b2c29720-9eee-4e97-a6fc-bc6ed5cf69b2","title":"light grey","weight_unit":"kg","inventory_quantity":778,"sku":"","barcode":"","position":1,"option1":"light grey","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/63a23b48c182f1d62a2c683f36bb98ce.jpeg","path":"63a23b48c182f1d62a2c683f36bb98ce.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":6.9,"min_quantity":1}],"weight":"0.07","compare_at_price":"12.5","price":"6.9","retail_price":"12.5","available":true,"url":"\/products\/gar-bethe-quick-dry-military-hats-unisex-summer-flat-top-hat-women-outdoor-army-cap-men-adjustable-baseball-caps-mesh-hat-trucker-cap?variant=6cb0bd28-d018-4f54-9505-99ea2c71d140","available_quantity":999999999,"options":[{"name":"color","value":"light grey"}],"off_ratio":45,"flashsale_info":[],"sales":184};
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.