Web Store bug confirming orders

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/14/2012 5:38:56 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Web Store bug confirming orders

Hi Joe, here's an FYI about a bug (or rather oversight) in ConfirmOrder.aspx.cs. If you enter the required info for checkout and press update, the Continue button becomes enabled. If you then delete some required data and press continue, it goes on to the final confirmation page without errors. To fix this I placed one last page validate inside the btnContinue_Click function:

        private void btnContinue_Click(object sender, System.EventArgs e)
        {
            SaveCartDetail();

            string checkoutUrl = SiteRoot + "/WebStore/Checkout.aspx?pageid="
                + pageId.ToInvariantString()
                + "&mid=" + moduleId.ToInvariantString();

            Page.Validate();
            if (Page.IsValid)
            {
                if (store.IsValidForCheckout(cart, out checkoutErrors))
                {
                    WebUtils.SetupRedirect(this, checkoutUrl);
                    return;
                }
                else
                {
                    ShowCheckoutErrors();
                }
            }
            else
            {
                btnContinue.Enabled = false;
            }
          }
 

Jamie

7/15/2012 12:08:55 PM
Gravatar
Total Posts 18439

Re: Web Store bug confirming orders

Thanks Jamie! This is now fixed in the source code repository.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.