The app supports something we call 'Filters'. You can use one of the filter to call custom javascript function before the page is redirected. Here are a few examples you might want to use it for:


  • Change the form action
  • Track checkout button click analytics
  • Append custom input fields to pass along the form. I.e. Discount code



What you can't do:

  • The filters won't stop the form from submitting


How to use:

window.addEventListener("Sellify::UCD::Initialized", function(){
    sellify.ucd.filters.cart_submit.push(function(){
        // Your custom code here
    })
});