20 L Jerry Can Mini Bar, With Bluetooth Speaker, Custom Fuel Bar, Home Mini Bar, Handmade Travel Bar, Gift For Him, For Husband, For Dad
${function() {
const variantData = data.variant || {"id":"5c04deec-ec00-4a00-b4c2-2287d39c5df2","product_id":"9e6f5246-5f3e-4988-ad67-c01525bab333","title":"Black-Yellow","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118839078065","barcode":"","position":1,"option1":"Black","option2":"Yellow","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4971f935c82ac03a83b1c120975b293e.jpeg","path":"4971f935c82ac03a83b1c120975b293e.jpeg","width":794,"height":794,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.48,"min_quantity":1}],"weight":"0","compare_at_price":"459","price":"16.48","retail_price":"459","available":true,"url":"\/products\/20-l-jerry-can-mini-bar-with-bluetooth-1552275435?variant=5c04deec-ec00-4a00-b4c2-2287d39c5df2","available_quantity":1000,"options":[{"name":"Primary color","value":"Black"},{"name":"Backlight","value":"Yellow"}],"off_ratio":96,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
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 `
`;
}()}
Primary Color:
Black
${function(){
const optName = "Primary 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}
`
}()}
Backlight:
Yellow
${function(){
const optName = "Backlight";
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.48
${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":"5c04deec-ec00-4a00-b4c2-2287d39c5df2","product_id":"9e6f5246-5f3e-4988-ad67-c01525bab333","title":"Black-Yellow","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118839078065","barcode":"","position":1,"option1":"Black","option2":"Yellow","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4971f935c82ac03a83b1c120975b293e.jpeg","path":"4971f935c82ac03a83b1c120975b293e.jpeg","width":794,"height":794,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.48,"min_quantity":1}],"weight":"0","compare_at_price":"459","price":"16.48","retail_price":"459","available":true,"url":"\/products\/20-l-jerry-can-mini-bar-with-bluetooth-1552275435?variant=5c04deec-ec00-4a00-b4c2-2287d39c5df2","available_quantity":1000,"options":[{"name":"Primary color","value":"Black"},{"name":"Backlight","value":"Yellow"}],"off_ratio":96,"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":"5c04deec-ec00-4a00-b4c2-2287d39c5df2","product_id":"9e6f5246-5f3e-4988-ad67-c01525bab333","title":"Black-Yellow","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118839078065","barcode":"","position":1,"option1":"Black","option2":"Yellow","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4971f935c82ac03a83b1c120975b293e.jpeg","path":"4971f935c82ac03a83b1c120975b293e.jpeg","width":794,"height":794,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.48,"min_quantity":1}],"weight":"0","compare_at_price":"459","price":"16.48","retail_price":"459","available":true,"url":"\/products\/20-l-jerry-can-mini-bar-with-bluetooth-1552275435?variant=5c04deec-ec00-4a00-b4c2-2287d39c5df2","available_quantity":1000,"options":[{"name":"Primary color","value":"Black"},{"name":"Backlight","value":"Yellow"}],"off_ratio":96,"flashsale_info":[],"sales":0};
return `
`
}()}