Augusta Georgia White Hybrid Cover
${function() {
const variantData = data.variant || {"id":"6f88daf4-ebea-40d5-8b52-59683c415b96","product_id":"ce6e031d-a20b-45ee-85e8-3d3bc3c884ce","title":"","weight_unit":"kg","inventory_quantity":40,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":24,"min_quantity":1}],"weight":"0.1","compare_at_price":"24","price":"24","retail_price":"24","available":true,"url":"\/products\/augusta-georgia-white-hybrid-cover?variant=6f88daf4-ebea-40d5-8b52-59683c415b96","available_quantity":40,"options":[],"off_ratio":0,"flashsale_info":[],"sales":4};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"6f88daf4-ebea-40d5-8b52-59683c415b96","product_id":"ce6e031d-a20b-45ee-85e8-3d3bc3c884ce","title":"","weight_unit":"kg","inventory_quantity":40,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":24,"min_quantity":1}],"weight":"0.1","compare_at_price":"24","price":"24","retail_price":"24","available":true,"url":"\/products\/augusta-georgia-white-hybrid-cover?variant=6f88daf4-ebea-40d5-8b52-59683c415b96","available_quantity":40,"options":[],"off_ratio":0,"flashsale_info":[],"sales":4};
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 `
`;
}()}