Lost income due to COVID-19? E-junkie is providing 1 year free accounts to sell anything, anywhere. Click Here for more details.

Customizing E-junkie

Intercepting the checkout button to redirect to another page

To do this, you need to be using our shopping cart buttons (Buy Now or Product Card buttons will not work for this), and make sure that our shopping cart appears as an overlay within your own sales page when a cart button is clicked. To get this overlay-style cart display, your sales page(s) each need a copy of our Cart Script code, which you can copy from your E-junkie Dashboard under Manage Products > Get Purchase Buttons/Links -- select Cart as the button type, copy the Cart Script code, and paste that into every sales page on your site where you have any cart buttons.

Next, you can paste this extra code into every sales page where you want to intercept clicks on the checkout button in your overlay cart:

var EJConfig = {}
EJConfig.onProceedToPayment = function(res, cb){
window.location.href = "http://www.example.com/folder/page.html"

Just replace the http://www.example.com/folder/page.html there with the actual URL of the page you want buyers redirected to when they click checkout. Of course, you'd omit this intercept code from that page, so the checkout button there would work normally.