people are viewing this right now
${function() {
const variantData = data.variant || {"id":"6764b14e-59b3-4606-8fd3-4e92c2d4cb4a","product_id":"53b95ea9-f7dd-4b49-91e4-8abc35654ec9","title":"Blue-S","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c029a2ba4f8401c734afd8709ceddd4a.jpg","path":"c029a2ba4f8401c734afd8709ceddd4a.jpg","width":2029,"height":3508,"alt":"","aspect_ratio":0.5783922462941847},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"39.99","retail_price":"49.99","available":true,"url":"\/products\/sexy-satin-strap-mini-dress-0vme-nudb-x87q-p9eb-j918-rmxn-u5t1-91i9-gpau-dui7-x9jo-p9gp-mstx-hs2c-okva-86vl-9r8r-88fn-zp59-kqj9-piy6-sktu-bzgu-rnyu-6b8y-jw81-m7af-za1s-rskx-ul0n-rh5w-c5fg-dpkq-dxep-3rnd-0gm4-rc6a-qrcn-6svy-k4lb-ese2-2815-2290-mvpb-3m-1tik?variant=6764b14e-59b3-4606-8fd3-4e92c2d4cb4a","available_quantity":999999999,"options":[{"name":"color","value":"Blue"},{"name":"size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":5};
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":"6764b14e-59b3-4606-8fd3-4e92c2d4cb4a","product_id":"53b95ea9-f7dd-4b49-91e4-8abc35654ec9","title":"Blue-S","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c029a2ba4f8401c734afd8709ceddd4a.jpg","path":"c029a2ba4f8401c734afd8709ceddd4a.jpg","width":2029,"height":3508,"alt":"","aspect_ratio":0.5783922462941847},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"39.99","retail_price":"49.99","available":true,"url":"\/products\/sexy-satin-strap-mini-dress-0vme-nudb-x87q-p9eb-j918-rmxn-u5t1-91i9-gpau-dui7-x9jo-p9gp-mstx-hs2c-okva-86vl-9r8r-88fn-zp59-kqj9-piy6-sktu-bzgu-rnyu-6b8y-jw81-m7af-za1s-rskx-ul0n-rh5w-c5fg-dpkq-dxep-3rnd-0gm4-rc6a-qrcn-6svy-k4lb-ese2-2815-2290-mvpb-3m-1tik?variant=6764b14e-59b3-4606-8fd3-4e92c2d4cb4a","available_quantity":999999999,"options":[{"name":"color","value":"Blue"},{"name":"size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":5};
return `
`
}()}