G4 Electric Scooter
${function() {
const variantData = data.variant || {"id":"cfba1292-76b2-4673-a649-1fd9e4a40055","product_id":"e53d837b-970d-44ab-96ea-2ac7072106f5","title":"350W Motor","weight_unit":"kg","inventory_quantity":1000,"sku":"6687669636460","barcode":"","position":1,"option1":"350W Motor","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/439507c46c0cbcb43bbe395696838cc0.jpeg","path":"439507c46c0cbcb43bbe395696838cc0.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"199.9","price":"19.99","retail_price":"199.9","available":true,"url":"\/products\/g4-electric-scooter-669a1619cd3e5?variant=cfba1292-76b2-4673-a649-1fd9e4a40055","available_quantity":999999999,"options":[{"name":"Size","value":"350W Motor"}],"off_ratio":90,"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"cfba1292-76b2-4673-a649-1fd9e4a40055","product_id":"e53d837b-970d-44ab-96ea-2ac7072106f5","title":"350W Motor","weight_unit":"kg","inventory_quantity":1000,"sku":"6687669636460","barcode":"","position":1,"option1":"350W Motor","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/439507c46c0cbcb43bbe395696838cc0.jpeg","path":"439507c46c0cbcb43bbe395696838cc0.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"199.9","price":"19.99","retail_price":"199.9","available":true,"url":"\/products\/g4-electric-scooter-669a1619cd3e5?variant=cfba1292-76b2-4673-a649-1fd9e4a40055","available_quantity":999999999,"options":[{"name":"Size","value":"350W Motor"}],"off_ratio":90,"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 `
`;
}()}