Spring And Summer Men's Big Edge Fisherman Hat Solid Color Casual Cotton Travel Hat Outdoor Mountaineering Hat Sun Hat Men
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"0cb17b69-f8ce-49af-8270-c67fcdf0a691","product_id":"c11af2d9-9209-4ea8-ace6-686ba0f52845","title":"Dark gray (Tibetan cloth webbing)-One size 58cm","weight_unit":"g","inventory_quantity":999,"sku":"1512365320212365313","barcode":"","position":1,"option1":"Dark gray (Tibetan cloth webbing)","option2":"One size 58cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/006c027521ea9d2dafc9936ab2120a28.jpeg","path":"006c027521ea9d2dafc9936ab2120a28.jpeg","width":750,"height":750,"alt":"Spring And Summer Men's Big Edge Fisherman Hat Solid Color Casual Cotton Travel Hat Outdoor Mountaineering Hat Sun Hat Men","aspect_ratio":1},"wholesale_price":[{"price":16.54,"min_quantity":1}],"weight":"24","compare_at_price":"0","price":"16.54","retail_price":"0","available":true,"url":"\/products\/spring-and-summer-mens-big-edge-fisherman-hat-solid-color-casual-cotton-travel-hat-outdoor-mountaineering-hat-sun-hat-men?variant=0cb17b69-f8ce-49af-8270-c67fcdf0a691","available_quantity":999999999,"options":[{"name":"Color","value":"Dark gray (Tibetan cloth webbing)"},{"name":"Size","value":"One size 58cm"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Dark gray (Tibetan cloth webbing)
${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 58cm
${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.54
${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":"0cb17b69-f8ce-49af-8270-c67fcdf0a691","product_id":"c11af2d9-9209-4ea8-ace6-686ba0f52845","title":"Dark gray (Tibetan cloth webbing)-One size 58cm","weight_unit":"g","inventory_quantity":999,"sku":"1512365320212365313","barcode":"","position":1,"option1":"Dark gray (Tibetan cloth webbing)","option2":"One size 58cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/006c027521ea9d2dafc9936ab2120a28.jpeg","path":"006c027521ea9d2dafc9936ab2120a28.jpeg","width":750,"height":750,"alt":"Spring And Summer Men's Big Edge Fisherman Hat Solid Color Casual Cotton Travel Hat Outdoor Mountaineering Hat Sun Hat Men","aspect_ratio":1},"wholesale_price":[{"price":16.54,"min_quantity":1}],"weight":"24","compare_at_price":"0","price":"16.54","retail_price":"0","available":true,"url":"\/products\/spring-and-summer-mens-big-edge-fisherman-hat-solid-color-casual-cotton-travel-hat-outdoor-mountaineering-hat-sun-hat-men?variant=0cb17b69-f8ce-49af-8270-c67fcdf0a691","available_quantity":999999999,"options":[{"name":"Color","value":"Dark gray (Tibetan cloth webbing)"},{"name":"Size","value":"One size 58cm"}],"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.
${function() {
const postageFreeAmount = 79;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}