2-Way Coffee Maker, Compatible with Grounds, Combo, Single Serve & Full 12c Pot, Black - Fast Brewing
${function() {
const variantData = data.variant || {"id":"c30353b7-3012-43c9-b857-3440fd788344","product_id":"526f539b-177d-488d-ab69-8b214bdff34b","title":"Black","weight_unit":"kg","inventory_quantity":999,"sku":"sku2118838537573","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/02156d59de03f7df6af6f865f5f5b31f.png","path":"02156d59de03f7df6af6f865f5f5b31f.png","width":1211,"height":1341,"alt":"","aspect_ratio":0.9030574198359433},"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0","compare_at_price":"80","price":"20","retail_price":"80","available":true,"url":"\/products\/2-way-coffee-maker-compatible-with-grounds-combo-single-serve-full-12c-pot-black-fast-brewing-w104051_54f5d8d2?variant=c30353b7-3012-43c9-b857-3440fd788344","available_quantity":999,"options":[{"name":"Color","value":"Black"}],"off_ratio":75,"flashsale_info":[],"sales":1};
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 `
`;
}()}
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}
`
}()}
Add to cart
$20.00
${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":"c30353b7-3012-43c9-b857-3440fd788344","product_id":"526f539b-177d-488d-ab69-8b214bdff34b","title":"Black","weight_unit":"kg","inventory_quantity":999,"sku":"sku2118838537573","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/02156d59de03f7df6af6f865f5f5b31f.png","path":"02156d59de03f7df6af6f865f5f5b31f.png","width":1211,"height":1341,"alt":"","aspect_ratio":0.9030574198359433},"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0","compare_at_price":"80","price":"20","retail_price":"80","available":true,"url":"\/products\/2-way-coffee-maker-compatible-with-grounds-combo-single-serve-full-12c-pot-black-fast-brewing-w104051_54f5d8d2?variant=c30353b7-3012-43c9-b857-3440fd788344","available_quantity":999,"options":[{"name":"Color","value":"Black"}],"off_ratio":75,"flashsale_info":[],"sales":1};
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":"c30353b7-3012-43c9-b857-3440fd788344","product_id":"526f539b-177d-488d-ab69-8b214bdff34b","title":"Black","weight_unit":"kg","inventory_quantity":999,"sku":"sku2118838537573","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/02156d59de03f7df6af6f865f5f5b31f.png","path":"02156d59de03f7df6af6f865f5f5b31f.png","width":1211,"height":1341,"alt":"","aspect_ratio":0.9030574198359433},"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0","compare_at_price":"80","price":"20","retail_price":"80","available":true,"url":"\/products\/2-way-coffee-maker-compatible-with-grounds-combo-single-serve-full-12c-pot-black-fast-brewing-w104051_54f5d8d2?variant=c30353b7-3012-43c9-b857-3440fd788344","available_quantity":999,"options":[{"name":"Color","value":"Black"}],"off_ratio":75,"flashsale_info":[],"sales":1};
return `
`
}()}