people are viewing this right now
${function() {
const variantData = data.variant || {"id":"bb51603c-1a8a-4c96-bec1-c76a128c64eb","product_id":"a3a330ae-112d-499a-9f60-19d41874be57","title":"Gray-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSCC2402334-Gray-S(US 6-8)","barcode":"","position":17,"option1":"Gray","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0769491d418bf769dc796749a94c92a8.jpeg","path":"0769491d418bf769dc796749a94c92a8.jpeg","width":800,"height":1200,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.98","price":"32.99","retail_price":"65.98","available":true,"url":"\/products\/v-neck-lace-cotton-dress?variant=bb51603c-1a8a-4c96-bec1-c76a128c64eb","available_quantity":999999999,"options":[{"name":"color","value":"Gray"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"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":"bb51603c-1a8a-4c96-bec1-c76a128c64eb","product_id":"a3a330ae-112d-499a-9f60-19d41874be57","title":"Gray-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSCC2402334-Gray-S(US 6-8)","barcode":"","position":17,"option1":"Gray","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0769491d418bf769dc796749a94c92a8.jpeg","path":"0769491d418bf769dc796749a94c92a8.jpeg","width":800,"height":1200,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.98","price":"32.99","retail_price":"65.98","available":true,"url":"\/products\/v-neck-lace-cotton-dress?variant=bb51603c-1a8a-4c96-bec1-c76a128c64eb","available_quantity":999999999,"options":[{"name":"color","value":"Gray"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
`
}()}