people are viewing this right now
${function() {
const variantData = data.variant || {"id":"3a330780-8284-4cd2-9dd8-6a65e9db64a9","product_id":"136eb4a3-4378-4cc8-b6b1-de87a9357696","title":"Photo Color-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDHX23081906P-Photo Color-S","barcode":"","position":1,"option1":"Photo Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c933fab9309011659f4c56d66bf14e16.jpeg","path":"c933fab9309011659f4c56d66bf14e16.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.99","price":"39.99","retail_price":"54.99","available":true,"url":"\/products\/one-shoulder-solid-color-two-piece-suit-sq06-wy9a-l2wl-awjh-4aqw-dk4a-4j0f-h66z-nk12-8dq9-a5f8-6hbv-xr0a-jmrj-glyh-ay3j-838o-1hw4-55y0-nt47-a9wz-y4y6-kv71-94hs-1yo3-v59u-7it3-07ch-blez-1nwd-6znj-1oag-9ewn-gi0j-lrub-wo81-jvr9-c4xg-6b91-whs2-wavt-tz3o-wjon?variant=3a330780-8284-4cd2-9dd8-6a65e9db64a9","available_quantity":999999999,"options":[{"name":"color","value":"Photo Color"},{"name":"size","value":"S"}],"off_ratio":27,"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":"3a330780-8284-4cd2-9dd8-6a65e9db64a9","product_id":"136eb4a3-4378-4cc8-b6b1-de87a9357696","title":"Photo Color-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDHX23081906P-Photo Color-S","barcode":"","position":1,"option1":"Photo Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c933fab9309011659f4c56d66bf14e16.jpeg","path":"c933fab9309011659f4c56d66bf14e16.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.99","price":"39.99","retail_price":"54.99","available":true,"url":"\/products\/one-shoulder-solid-color-two-piece-suit-sq06-wy9a-l2wl-awjh-4aqw-dk4a-4j0f-h66z-nk12-8dq9-a5f8-6hbv-xr0a-jmrj-glyh-ay3j-838o-1hw4-55y0-nt47-a9wz-y4y6-kv71-94hs-1yo3-v59u-7it3-07ch-blez-1nwd-6znj-1oag-9ewn-gi0j-lrub-wo81-jvr9-c4xg-6b91-whs2-wavt-tz3o-wjon?variant=3a330780-8284-4cd2-9dd8-6a65e9db64a9","available_quantity":999999999,"options":[{"name":"color","value":"Photo Color"},{"name":"size","value":"S"}],"off_ratio":27,"flashsale_info":[],"sales":0};
return `
`
}()}