Jump to content

Stopping order process with displaying clear error why it stopped. Possible?


jareq

Recommended Posts

Hello, is there possible to stop order process in event hooks and display nice message (i thought about javascript popup alert box) to customer why the process was stopped. At this point i know how to stop it by just typing exit(); but im wondering if there is any api that could display clear error for customer, or maybe do you have any idea?

 

second question:

how to pass $globalmessage to ShoppingCartValidateCheckout hook ?

How this works? I have already tried just $errormessage = "error bla bla";

or return $errormessage;

Or did i missunderstood it and it works another way and passing error by itself when occurs? And i can display it by print($errormessage) ?

Edited by jareq
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated