last day !! The best helper for outdoor travel!
${function() {
const variantData = data.variant || {"id":"54576a13-d1e6-474e-9911-741462e4de86","product_id":"828dd7ee-94b7-4fda-9e96-9e37caf92e38","title":"Red-35mph & 1000Wh(55 miles range)","weight_unit":"kg","inventory_quantity":983,"sku":"sku2129291033385","barcode":"","position":1,"option1":"Red","option2":"35mph & 1000Wh(55 miles range)","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/4bdcdc5d9cd375f0f1b75987cd25036a.jpeg","path":"4bdcdc5d9cd375f0f1b75987cd25036a.jpeg","width":679,"height":660,"alt":"","aspect_ratio":1.0287878787878788},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"599.98","price":"39","retail_price":"599.98","available":true,"url":"\/products\/outdoo?variant=54576a13-d1e6-474e-9911-741462e4de86","available_quantity":999999999,"options":[{"name":"color","value":"Red"},{"name":"MAX SPEED & BATTERY RANGE","value":"35mph & 1000Wh(55 miles range)"}],"off_ratio":93,"flashsale_info":[],"sales":3};
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":"54576a13-d1e6-474e-9911-741462e4de86","product_id":"828dd7ee-94b7-4fda-9e96-9e37caf92e38","title":"Red-35mph & 1000Wh(55 miles range)","weight_unit":"kg","inventory_quantity":983,"sku":"sku2129291033385","barcode":"","position":1,"option1":"Red","option2":"35mph & 1000Wh(55 miles range)","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/4bdcdc5d9cd375f0f1b75987cd25036a.jpeg","path":"4bdcdc5d9cd375f0f1b75987cd25036a.jpeg","width":679,"height":660,"alt":"","aspect_ratio":1.0287878787878788},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0","compare_at_price":"599.98","price":"39","retail_price":"599.98","available":true,"url":"\/products\/outdoo?variant=54576a13-d1e6-474e-9911-741462e4de86","available_quantity":999999999,"options":[{"name":"color","value":"Red"},{"name":"MAX SPEED & BATTERY RANGE","value":"35mph & 1000Wh(55 miles range)"}],"off_ratio":93,"flashsale_info":[],"sales":3};
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 `
`;
}()}