GAR BETHE Men's Warm Thick Duck Tongue Knitted Hat
${function() {
const variantData = data.variant || {"id":"f0590a98-54a0-41bf-811a-d18553678f50","product_id":"f0d80717-7730-4997-ab12-fe06f8c2831d","title":"Black-L","weight_unit":"g","inventory_quantity":987,"sku":"","barcode":"","position":1,"option1":"Black","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2b2f31ecdd14be934b68afb52e715cfb.jpeg","path":"2b2f31ecdd14be934b68afb52e715cfb.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.2,"min_quantity":1}],"weight":"125","compare_at_price":"16.2","price":"16.2","retail_price":"16.2","available":true,"url":"\/products\/gar-bethe-mens-warm-thick-duck-tongue-knitted-hat?variant=f0590a98-54a0-41bf-811a-d18553678f50","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":665};
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}
`
}()}
Size:
L
${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
$16.20
${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":"f0590a98-54a0-41bf-811a-d18553678f50","product_id":"f0d80717-7730-4997-ab12-fe06f8c2831d","title":"Black-L","weight_unit":"g","inventory_quantity":987,"sku":"","barcode":"","position":1,"option1":"Black","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2b2f31ecdd14be934b68afb52e715cfb.jpeg","path":"2b2f31ecdd14be934b68afb52e715cfb.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.2,"min_quantity":1}],"weight":"125","compare_at_price":"16.2","price":"16.2","retail_price":"16.2","available":true,"url":"\/products\/gar-bethe-mens-warm-thick-duck-tongue-knitted-hat?variant=f0590a98-54a0-41bf-811a-d18553678f50","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":665};
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.