WHAT A GREAT DAY TO STAY INSIDE | TEE
${function() {
const variantData = data.variant || {"id":"a9b4c6e2-f248-4974-a0ef-1981e4ce28cf","product_id":"d55154ea-d72b-4058-b0af-bda3b7113cbd","title":"Mens Tees-S","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Mens Tees","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c798ac0c706c667e00ab05a142cf05f8.jpg","path":"c798ac0c706c667e00ab05a142cf05f8.jpg","width":500,"height":600,"alt":"","aspect_ratio":0.8333333333333334},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"19.99","retail_price":"29.99","available":true,"url":"\/products\/what-a-great-day-to-stay-inside-tee?variant=a9b4c6e2-f248-4974-a0ef-1981e4ce28cf","available_quantity":999999999,"options":[{"name":"WHAT WOULD YOU LIKE?","value":"Mens Tees"},{"name":"Size","value":"S"}],"off_ratio":33,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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 tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.