${function(){
const variantData = data.variant || {"id":"46a0ff11-605f-4432-a459-ecdd5e009dec","product_id":"8c552ed5-f90a-48b8-a66f-5821677f0446","title":"A","weight_unit":"kg","inventory_quantity":0,"sku":"973070.01","barcode":"","position":2,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6cc81ab6f3c2f6a115d7de5221921bfc.jpg","path":"6cc81ab6f3c2f6a115d7de5221921bfc.jpg","width":1001,"height":1001,"alt":"Watercolor Disney Donald Duck 30*40CM(Canvas) Full Round Drill Diamond Painting gbfke","aspect_ratio":1},"wholesale_price":[{"price":4.89,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"4.89","retail_price":"0","available":true,"url":"\/products\/watercolor-disney-donald-duck-30-40cmcanvas-full-round-drill-diamond-painting?variant=46a0ff11-605f-4432-a459-ecdd5e009dec","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"46a0ff11-605f-4432-a459-ecdd5e009dec","product_id":"8c552ed5-f90a-48b8-a66f-5821677f0446","title":"A","weight_unit":"kg","inventory_quantity":0,"sku":"973070.01","barcode":"","position":2,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6cc81ab6f3c2f6a115d7de5221921bfc.jpg","path":"6cc81ab6f3c2f6a115d7de5221921bfc.jpg","width":1001,"height":1001,"alt":"Watercolor Disney Donald Duck 30*40CM(Canvas) Full Round Drill Diamond Painting gbfke","aspect_ratio":1},"wholesale_price":[{"price":4.89,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"4.89","retail_price":"0","available":true,"url":"\/products\/watercolor-disney-donald-duck-30-40cmcanvas-full-round-drill-diamond-painting?variant=46a0ff11-605f-4432-a459-ecdd5e009dec","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const minInventory = parseInt('1');
const maxInventory = parseInt('15');
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 `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
people are viewing this right now