Hidden sockets
${function() {
const variantData = data.variant || {"id":"a9174a64-db6e-442a-95ab-ca4f1a0413ab","product_id":"19571161-b7de-4d84-9d4c-0eaed0ed89e1","title":"grey-US","weight_unit":"kg","inventory_quantity":998,"sku":"Hidden-sockets-grey-US","barcode":"","position":1,"option1":"grey","option2":"US","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a9e07ca8d2706297934ce4d66561667.jpg","path":"0a9e07ca8d2706297934ce4d66561667.jpg","width":790,"height":791,"alt":"","aspect_ratio":0.9987357774968394},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/self-adhesive-86-type-wall-socket-waterproof-box-nail-free-glue-paste-doorbell-board-panel-cover-switch-button-protection-cover?variant=a9174a64-db6e-442a-95ab-ca4f1a0413ab","available_quantity":999999999,"options":[{"name":"Color","value":"grey"},{"name":"Model","value":"US"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a9174a64-db6e-442a-95ab-ca4f1a0413ab","product_id":"19571161-b7de-4d84-9d4c-0eaed0ed89e1","title":"grey-US","weight_unit":"kg","inventory_quantity":998,"sku":"Hidden-sockets-grey-US","barcode":"","position":1,"option1":"grey","option2":"US","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a9e07ca8d2706297934ce4d66561667.jpg","path":"0a9e07ca8d2706297934ce4d66561667.jpg","width":790,"height":791,"alt":"","aspect_ratio":0.9987357774968394},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/self-adhesive-86-type-wall-socket-waterproof-box-nail-free-glue-paste-doorbell-board-panel-cover-switch-button-protection-cover?variant=a9174a64-db6e-442a-95ab-ca4f1a0413ab","available_quantity":999999999,"options":[{"name":"Color","value":"grey"},{"name":"Model","value":"US"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('52');
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 `
`;
}()}