New Cinco De Mayo Sombrero Golf Driver Head Covers
${function() {
const variantData = data.variant || {"id":"a2905de5-5b16-48b9-8733-357db6306f45","product_id":"e5fa6f28-aeb4-4f95-b526-df5721601d1a","title":"Driver Cover","weight_unit":"g","inventory_quantity":100,"sku":"Cinco-Driver Cover","barcode":"","position":1,"option1":"Driver Cover","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b44d955c18331c05a9645f6ad56746b.webp","path":"1b44d955c18331c05a9645f6ad56746b.webp","width":1600,"height":1600,"alt":"New Cinco De Mayo Sombrero Golf Driver Head Covers Studio Crafted]","aspect_ratio":1},"wholesale_price":[{"price":27.66,"min_quantity":1}],"weight":"100","compare_at_price":"27.66","price":"27.66","retail_price":"27.66","available":true,"url":"\/products\/studio-crafted-cinco-de-mayo-sombrero-golf-driver-fairway-woods-hybrid-covers?variant=a2905de5-5b16-48b9-8733-357db6306f45","available_quantity":100,"options":[{"name":"Tip Size","value":"Driver Cover"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Tip Size:
Driver Cover
${function(){
const optName = "Tip 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
$27.66
${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":"a2905de5-5b16-48b9-8733-357db6306f45","product_id":"e5fa6f28-aeb4-4f95-b526-df5721601d1a","title":"Driver Cover","weight_unit":"g","inventory_quantity":100,"sku":"Cinco-Driver Cover","barcode":"","position":1,"option1":"Driver Cover","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b44d955c18331c05a9645f6ad56746b.webp","path":"1b44d955c18331c05a9645f6ad56746b.webp","width":1600,"height":1600,"alt":"New Cinco De Mayo Sombrero Golf Driver Head Covers Studio Crafted]","aspect_ratio":1},"wholesale_price":[{"price":27.66,"min_quantity":1}],"weight":"100","compare_at_price":"27.66","price":"27.66","retail_price":"27.66","available":true,"url":"\/products\/studio-crafted-cinco-de-mayo-sombrero-golf-driver-fairway-woods-hybrid-covers?variant=a2905de5-5b16-48b9-8733-357db6306f45","available_quantity":100,"options":[{"name":"Tip Size","value":"Driver Cover"}],"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 variantData = data.variant || {"id":"a2905de5-5b16-48b9-8733-357db6306f45","product_id":"e5fa6f28-aeb4-4f95-b526-df5721601d1a","title":"Driver Cover","weight_unit":"g","inventory_quantity":100,"sku":"Cinco-Driver Cover","barcode":"","position":1,"option1":"Driver Cover","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b44d955c18331c05a9645f6ad56746b.webp","path":"1b44d955c18331c05a9645f6ad56746b.webp","width":1600,"height":1600,"alt":"New Cinco De Mayo Sombrero Golf Driver Head Covers Studio Crafted]","aspect_ratio":1},"wholesale_price":[{"price":27.66,"min_quantity":1}],"weight":"100","compare_at_price":"27.66","price":"27.66","retail_price":"27.66","available":true,"url":"\/products\/studio-crafted-cinco-de-mayo-sombrero-golf-driver-fairway-woods-hybrid-covers?variant=a2905de5-5b16-48b9-8733-357db6306f45","available_quantity":100,"options":[{"name":"Tip Size","value":"Driver Cover"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function() {
const postageFreeAmount = 30;
const custom_text = "Buy {amount} more to enjoy FREE Standard 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 `
`;
}()}