1

I want to put virtual pageview javascript in one step checkout but this javascript will only be fired if the customer does not complete the order.

So that i can see customers address info, shipping and payment method selection for failed payments.

1

This is logically impossible. "Not completing the checkout" is nothing that happens but the absence of something happening.

What you can do instead (outlined):

  1. trigger first script when user goes to checkout page
  2. trigger second script when user completes checkout
  3. list carts where (1) has been triggered but not (2) within a certain time

You don't need to do this in custom JavaScript. There are quite a few extensions that already handle it, like Ebizmarts Magemonkey. The keyword to look for is "Abandoned Cart".

2
  • Thanks @fschmengler . The keyword is very useful . Using abandoned cart we can check if the product is in cart for long time without order.
    – nimit8989
    Sep 15 '15 at 11:48
  • Not sure if I understand your concern. After "place order" click, the cart is not abandoned anymore. Sep 15 '15 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.