Home About Blog Terms Docs Contact

Pre-order Javascript event


Useful when you need to run custom front-end code when a product is on pre-order. PreProduct’s pre-order Javascript events can be useful in all kinds of situations.


The event will fire whenever PreProduct launches (only for products on pre-order).


window.addEventListener('ppJustLaunched', () => {
   //do something great here
}, false);



The event will fire whenever the user clicks pre-order from the on-page cart.


window.addEventListener('ppJustConverted', () => {
   //do something even greater here
}, false);