Howey Victorian Tiffany-Style Dark Bronze 3 Light Double Lit Table Lamp 16" Wide
${function() {
const variantData = data.variant || {"id":"bc868a49-6e55-4029-886c-ebda47d59d06","product_id":"fe806a5b-6269-4bdd-ac4d-e54f5f26f49d","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"homie","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"213.67","price":"22.98","retail_price":"213.67","available":true,"url":"\/products\/howey-victorian-tiffany-style-dark-bronze-3-light-double-lit-table-lamp-16-wide-2-bqtn?variant=bc868a49-6e55-4029-886c-ebda47d59d06","available_quantity":999999999,"options":[],"off_ratio":89,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Add to cart
$22.98
${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":"bc868a49-6e55-4029-886c-ebda47d59d06","product_id":"fe806a5b-6269-4bdd-ac4d-e54f5f26f49d","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"homie","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"213.67","price":"22.98","retail_price":"213.67","available":true,"url":"\/products\/howey-victorian-tiffany-style-dark-bronze-3-light-double-lit-table-lamp-16-wide-2-bqtn?variant=bc868a49-6e55-4029-886c-ebda47d59d06","available_quantity":999999999,"options":[],"off_ratio":89,"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":"bc868a49-6e55-4029-886c-ebda47d59d06","product_id":"fe806a5b-6269-4bdd-ac4d-e54f5f26f49d","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"homie","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"213.67","price":"22.98","retail_price":"213.67","available":true,"url":"\/products\/howey-victorian-tiffany-style-dark-bronze-3-light-double-lit-table-lamp-16-wide-2-bqtn?variant=bc868a49-6e55-4029-886c-ebda47d59d06","available_quantity":999999999,"options":[],"off_ratio":89,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('52');
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 `
`;
}()}