With this module installed, users cannot get to step 2 (review order) of the checkout process. When I uninstall it, they can checkout as expected. This occurs with both the current release as well as the dev version.

It does work, however, in a clean drupal installation. So, something else is obviously causing a conflict. Any thoughts to where I should look? Any hooks that could be causing validation to stop the user from getting to step 2?

In addition, using the other coupon module (uc_discounts_alt) instead blocks the user as well. I have tried completely uninstalling these two modules then reenabling uc_coupon to no avail.

Please help. Thank you!

Comments

wodenx’s picture

You say it works on a clean drupal install - so try adding in the other modules you're using one-by-one until the problem occurs. Also, what error message are you getting when the validation of the checkout page fails?

rrrob’s picture

I'm not getting any error message at all. That's what is weird. The page just reloads. There aren't any log entries in watchdog either.

wodenx’s picture

Status: Active » Postponed (maintainer needs more info)

Well - we need to figure out which module is causing the conflict. Can you try the process of elimination suggested in #1? Or post all contrib modules you have installed and when I have time I'll try it.

wodenx’s picture

Status: Postponed (maintainer needs more info) » Fixed

Was interaction with customized theme. Now fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

IncrediBody.com’s picture

Can you please let me know what was changed in order to fix the custom theme? I am having the same issue (hitting review order simply reloads the page), and I assume need to make the same change that was implemented to solve the problem in this thread. Any help is much appreciated!

IncrediBody.com’s picture

Status: Closed (fixed) » Active
wodenx’s picture

The theme was submitting the form via javascript but not simulating a click of the submit button - so the form was being submitted without any information as to which button caused the submit. When that happens, Drupal assumes it's the first button on the page - which in this case was the "Apply coupon" button.

A similar issue was reported at #1231642: Cannot advance to review order when checkout form is altered to use image buttons. - but the OP hasn't posted back his solution.

I think, basically, you have to make sure that the value of 'op' in the the POST from the form submission is set correctly to the value of the main submit button (usually "Review Order").

IncrediBody.com’s picture

Thanks for the reply. I am at a loss for what may be causing this; you mentioned that the author of this thread solved the problem by way of fixing a conflict with his theme, but all I've done is some CSS overrides to change the order form appearance, and I am using the reliable Zen theme as the basis. Do you have any ideas as to what I may try to fix this? I haven't made any coding changes or overrides to the checkout form (only CSS), so I am not sure what to experiment with so I can fix this issue.

Thanks for any help you or others can provide.

wodenx’s picture

can you post the contents of the post when you click the "review order" button? maybe via the firefox net tab?

IncrediBody.com’s picture

StatusFileSize
new220.54 KB

Thanks for the reply! I have attached a screen shot of the Firefox Firebug Net Tab after I click the order form review button. If this is not what you are looking for, please let me know.

IncrediBody.com’s picture

StatusFileSize
new137.35 KB

Upon closer examination of the net tab and your request, maybe what I have attached here is what you were looking for, as it's the Post tab under Post checkout. Please let me know if this is not the correct info or if you need additional data from me.

wodenx’s picture

Yes, the post tab is very helpful. From what you've posted, it appears the correct button is being submitted.

What payment gateway are you using? The credit card number in the post will be rejected by the test gateway, and that would prevent moving on to payment review. You should see a message in that case, but maybe something in your theme is hiding the messages?

IncrediBody.com’s picture

Thanks for the reply! When the coupon module is not installed and I enter an invalid credit card number for testing, I always progress to the payment preview page when hitting the review order button, and can successfully submit my form, but with the coupon module enabled, when I hit the review order button, the page simply reloads, with no error messages. If I do not enter a credit card number (leave the field blank) when the coupon module is disabled, I receive an error saying I must do so, therefore clearly some conflict between the coupon module and either my theme or another module must be causing this to happen.

By the way, the page actually reloads when I hit the review order button, meaning all of the data I entered in the fields is eliminated (although the item in the cart remains since the cookie is set).

I contacted the individual who started the other thread you mentioned earlier, and he replied with the following:

"During the checkout process, there are two points to enter a coupon. Once at the cart page and once at the payment information page. We found that having these multiple points was what was breaking the checkout process. Our resolution (though not pretty) was to remove one of these fields, I believe we removed it from the payment information page."

What are your thoughts on the above? Do you have any other ideas on what the solution may be, or what I can try?

I really want to use this module on my site, so your help is much appreciated!

wodenx’s picture

I think the only way for me to help you further with this is for you to send me your whole site. If you can zip up the files along with a dump of your DB, maybe I can reproduce the problem. Otherwise, there are too many factors for me to know what's going on. Please feel free to send to my email address if you don't feel comfortable posting all that info here.

IncrediBody.com’s picture

Thanks very much for your offer to assist wodenx and for the answers you've provided! The good news is that I've fixed the problem, which was some foolishness on my part. Firstly, I had the better messages module malfunctioning due to an option I selected that prevented messages from displaying, so I never noticed the SQL error. Once I did, it occurred to me that I had not run update.php on this particular database after upgrading Ubercart (I test new modules on a different database before installing on my main test site), so once I did, the error disappeared and I progress to the order review page.

I once again appreciate your efforts to assist me!

mrogers’s picture

I was having the same issue as the OP, accompanied with the following PHP error in the log (/admin/reports/dblog):
in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:/path/to/drupal/sites/all/modules/ubercart/uc_store/uc_store.module on line 2093.

I resolved it with the very simple patch found here: http://drupal.org/node/1318452#comment-5158046

Hope this helps someone!

wodenx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.