Hula Girl Hybrid Cover
${function() {
const variantData = data.variant || {"id":"2eb2b57c-5e9a-44ce-9ce7-e75dadf621ca","product_id":"07a42f81-8b7c-4886-9680-5a26655b7890","title":"","weight_unit":"kg","inventory_quantity":25,"sku":"NAPZC00000217 sc-hc-hulagirl-h","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\/hula-girl-hybrid-cover?variant=2eb2b57c-5e9a-44ce-9ce7-e75dadf621ca","available_quantity":25,"options":[],"off_ratio":0,"flashsale_info":[],"sales":40};
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":"2eb2b57c-5e9a-44ce-9ce7-e75dadf621ca","product_id":"07a42f81-8b7c-4886-9680-5a26655b7890","title":"","weight_unit":"kg","inventory_quantity":25,"sku":"NAPZC00000217 sc-hc-hulagirl-h","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\/hula-girl-hybrid-cover?variant=2eb2b57c-5e9a-44ce-9ce7-e75dadf621ca","available_quantity":25,"options":[],"off_ratio":0,"flashsale_info":[],"sales":40};
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 `
`;
}()}