King of Monsters Godzilla Figure
${function() {
const variantData = data.variant || {"id":"133bcd02-fbe0-42f0-93ca-c9febcca0ea7","product_id":"c6440779-2030-48dd-b440-7f5486375dcc","title":"Red","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4e87d124a3bb1f323b545b69f8880df4.jpeg","path":"4e87d124a3bb1f323b545b69f8880df4.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0","compare_at_price":"129.99","price":"69.99","retail_price":"129.99","available":true,"url":"\/products\/king-of-monsters-godzilla-figure?variant=133bcd02-fbe0-42f0-93ca-c9febcca0ea7","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":46,"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}
`
}()}
Product was out of stock.
Product is unavailable.