Optionally skip the review stage on the Ubercart checkout page. The store admin can set whether checkout review is required in the checkout settings.
| Preview | Attachment | Size |
|---|---|---|
| uc_optional_checkout_review-5.x-1.0.tar.gz | 6.7 KB |
|
Ubercart |
|
|
|
||
I just ran into the same problem, I've made a patch for the problem (attached). The patch should also fix a minor bug with the checkbox for deciding if you want to skip checkout review. Discussion of this issue can be found here.
Here's a Drupal 6 port. I'm calling it 6.x-1.0-beta1. This includes the basic idea of the validation patch above, but is more extensive, and takes a different approach because of differences in the D6 FAPI. Any errors which would normally appear on the review page are instead shown on the checkout form page. I have tested this successfully with the uc_credit module and a custom payment gateway module.
I notice this line of code: // Now submit the form. Obviously the $form_state isn't actuallyWhat do you mean by the $form_state is not formed correctly? Doesn't it come form the previous function? For those like me who are having trouble figuring out how to enable this feature: 1.- Install and Enable the module 2.- Go to Store administration | Configuration | Checkout Settings | Edit 3.- Click on "Skip checkout review" under "General checkout settings" and Save. Works as a charm by the way thanks for the module. unfortunately paypal express checkout was ignoring the skip review option I set. so I dived into the paypal module and added this to the uc_paypal_ec_review function in uc_paypal.pages.inc before the "$output = ..." line near the end: // are we skipping the review form? if so update line items and such like then goto order submitit seems to do the trick. but now I'm thinking, the customer has already read about the product, added it to the cart and gone through paypal. do they really want to confirm again? normally when I buy something from using paypal, when I leave paypal, that's it, I've already completed my purchase. when I get sent back to the store site, i get a thank you message, not another confirmation form... so I think I will use the approach above, just to forward the user onto to the thankyou page. I guess you could also allow order comments, but after the order has been automatically confirmed. cheers, I'm using paypal website payments standard as my checkout payment method. I installed and enabled the module, configured to skip checkout review. When I click "submit order", I am taken to an "Your order was completed" page, without going through paypal at all! So the whole payment process was skipped! How to fix this?? We missed an important detail with this module. The submit button on the review page has a Javascript behavior to disable the submit button when it's clicked, as well as the other button (back). This patch adds a javascript file with the core behavior copied and modified to work on the checkout form. Apply to uc_optional_checkout_review-6.x-1.0-beta1.tar.gz
Attached is the version with the Paypal Website Payments Standard support. I have also incorporated the JS patch posted above. It works fine for me but I haven't done too many tests. In my specific setup it works.
|
|
This is looking great! However, I think there's a problem with missing fields or invalid CC numbers; if you enable the 'skip review' screen and submit the form with bogus information (using the test CC gateway at least) it displays the error messages, but completes the order instead of bouncing you back to the form to make the corrections.