people are viewing this right now
${function() {
const variantData = data.variant || {"id":"2be1e2c4-3f13-41c2-a085-d1b363ea82c6","product_id":"a11141b2-448c-4849-b533-1db1cb8003d2","title":"Black-S","weight_unit":"kg","inventory_quantity":979,"sku":"","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1f2bfe4cbaa61ad34142899290efcd7b.jpeg","path":"1f2bfe4cbaa61ad34142899290efcd7b.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"29.99","retail_price":"59.99","available":true,"url":"\/products\/sculpting-jumpsuit?variant=2be1e2c4-3f13-41c2-a085-d1b363ea82c6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":3586};
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":"2be1e2c4-3f13-41c2-a085-d1b363ea82c6","product_id":"a11141b2-448c-4849-b533-1db1cb8003d2","title":"Black-S","weight_unit":"kg","inventory_quantity":979,"sku":"","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1f2bfe4cbaa61ad34142899290efcd7b.jpeg","path":"1f2bfe4cbaa61ad34142899290efcd7b.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"29.99","retail_price":"59.99","available":true,"url":"\/products\/sculpting-jumpsuit?variant=2be1e2c4-3f13-41c2-a085-d1b363ea82c6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":3586};
return `
`
}()}