people are viewing this right now
${function() {
const variantData = data.variant || {"id":"557009b8-d8b5-4ad8-8905-ee377ad097d3","product_id":"a26d1637-f157-43d9-aa7b-7b18c3be1c27","title":"Gold-14\u201d","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1677824891660","barcode":"","position":1,"option1":"Gold","option2":"14\u201d","option3":"","note":"","image":null,"wholesale_price":[{"price":42.89,"min_quantity":1}],"weight":"0","compare_at_price":"79.9","price":"42.89","retail_price":"79.9","available":true,"url":"\/products\/calligraphy-custom-name?variant=557009b8-d8b5-4ad8-8905-ee377ad097d3","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"},{"name":"Size","value":"14\u201d"}],"off_ratio":46,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"557009b8-d8b5-4ad8-8905-ee377ad097d3","product_id":"a26d1637-f157-43d9-aa7b-7b18c3be1c27","title":"Gold-14\u201d","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1677824891660","barcode":"","position":1,"option1":"Gold","option2":"14\u201d","option3":"","note":"","image":null,"wholesale_price":[{"price":42.89,"min_quantity":1}],"weight":"0","compare_at_price":"79.9","price":"42.89","retail_price":"79.9","available":true,"url":"\/products\/calligraphy-custom-name?variant=557009b8-d8b5-4ad8-8905-ee377ad097d3","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"},{"name":"Size","value":"14\u201d"}],"off_ratio":46,"flashsale_info":[],"sales":0};
return `
`
}()}