people are viewing this right now
${function() {
const variantData = data.variant || {"id":"a198cba1-76e9-49e5-ac1e-d6a1e625a272","product_id":"77ec7928-3eec-4857-bf72-0d1f17be9506","title":"blue-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSOYM2203-blue-S","barcode":"","position":1,"option1":"blue","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/06ed70323fda6da5f4cf59b09d43c5c4.jpeg","path":"06ed70323fda6da5f4cf59b09d43c5c4.jpeg","width":554,"height":743,"alt":"","aspect_ratio":0.7456258411843876},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"43.98","price":"21.99","retail_price":"43.98","available":true,"url":"\/products\/contrast-color-patchwork-casual-top?variant=a198cba1-76e9-49e5-ac1e-d6a1e625a272","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"flashsale_info":[],"sales":3};
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":"a198cba1-76e9-49e5-ac1e-d6a1e625a272","product_id":"77ec7928-3eec-4857-bf72-0d1f17be9506","title":"blue-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSOYM2203-blue-S","barcode":"","position":1,"option1":"blue","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/06ed70323fda6da5f4cf59b09d43c5c4.jpeg","path":"06ed70323fda6da5f4cf59b09d43c5c4.jpeg","width":554,"height":743,"alt":"","aspect_ratio":0.7456258411843876},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"43.98","price":"21.99","retail_price":"43.98","available":true,"url":"\/products\/contrast-color-patchwork-casual-top?variant=a198cba1-76e9-49e5-ac1e-d6a1e625a272","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"flashsale_info":[],"sales":3};
return `
`
}()}