Optional Checkout Review

Contrib type: 
Module
Status: 
Initial upload
Latest version: 
5.x-1.0

Downloads

Compatibility: 
Ubercart 1.x

Optionally skip the review stage on the Ubercart checkout page. The store admin can set whether checkout review is required in the checkout settings.

PreviewAttachmentSize
uc_optional_checkout_review-5.x-1.0.tar.gz6.7 KB
usonian's picture
Offline
Joined: 08/20/2008
Juice: 5
Seems to be a problem with payment processing errors

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.

kevster's picture
Offline
Joined: 09/03/2008
Juice: 19
Re: Optional Checkout Review

this looks really useful to cut out one step in the cart but when I apply it just jumps straight to order complete without sending to protx - we are using protx form method. Am I missing something?

thx - kevster

postcarbonjason@drupal.org's picture
Offline
Joined: 12/17/2008
Juice: 13
Validation errors

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.

AttachmentSize
Patch to validate and return to form before skipping checkout review. 1.7 KB
cedarm's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/29/2008
Juice: 100
Drupal 6 port

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.

AttachmentSize
uc_optional_checkout_review-6.x-1.0-beta1.tar.gz 7.27 KB
esend7881@drupal.org's picture
Offline
Joined: 04/23/2009
Juice: 118
Re: Drupal 6 port

I notice this line of code:

    // Now submit the form.  Obviously the $form_state isn't actually
    // correct... hopefully nothing will care.
    uc_cart_checkout_review_form_submit($form, $form_state);

What do you mean by the $form_state is not formed correctly? Doesn't it come form the previous function?

cedarm's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/29/2008
Juice: 100
form_state

The $form_state is from the uc_cart_checkout_form() submission, and we're passing it to the uc_cart_checkout_review_form() handlers. If you have a better way, I'm all ears.

JoaoJose's picture
Offline
Joined: 05/01/2009
Juice: 2
I believe this isn't working with paypal

If you use Paypal wsp you won't be redirected to the payment page but instead to an order completed page.

Any ideas?

amitpatel049's picture
Offline
Joined: 06/12/2009
Juice: 12
its paypal's requirement

i think its paypal's requirement to make that page compulsary to show....
may be u can try out with CC , it will work.

hiades.mx's picture
Offline
Joined: 06/27/2009
Juice: 13
How to enable

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
or
/admin/store/settings/checkout/edit/basic

3.- Click on "Skip checkout review" under "General checkout settings" and Save.

Works as a charm by the way Laughing out loud

martinjbaker@drupal.org's picture
Offline
Joined: 07/27/2009
Juice: 23
Ubercart 6.x-2.x

Thanks for the module, the D6 port seems to work fine with Ubercart 6.x-2.x.

oddmedley's picture
Offline
Joined: 08/03/2009
Juice: 9
getting it to work with paypal express checkout

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 submit
  $skipreview = variable_get('uc_checkout_skip_review', FALSE);
  if($skipreview){
     $form_state = array();
     drupal_execute('uc_paypal_ec_review_form', $form_state, $order);
     drupal_goto('cart/echeckout/submit');
  }

it 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,

epg
epg's picture
Offline
Joined: 09/26/2009
Juice: 56
Trouble with paypal?

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??

cedarm's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/29/2008
Juice: 100
Submit button disable

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

AttachmentSize
uc_optional_checkout_review_js.patch 1.45 KB
chellman@drupal.org's picture
Offline
Joined: 09/18/2008
Juice: 34
Works here

I just tried tried this using credit card payment and the test gateway, and it works as expected. Thanks!

VividWind's picture
Offline
Joined: 11/05/2009
Juice: 2
PayPal Website Payments Standard

Any way to get this working with PayPal Website Payments Standard? By skipping the review order, it seems the submitted form doesn't have the necessary info/redirect to properly take the user to PayPal.

cedarm's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/29/2008
Juice: 100
WPS doesn't currently work

It is known that PayPal Website Payments Standard (WPS) doesn't work with this module right now. I don't have the resources to tackle this so someone else will have to jump in and contribute.

giorgio79@drupal.org's picture
Offline
Joined: 02/02/2008
Juice: 280
Re: Optional Checkout Review

subs

cookiesunshinex's picture
Offline
Joined: 10/14/2009
Juice: 127
Re: Optional Checkout Review

Subscribing on a Paypal Standard (WPS) usable module.

mkassets's picture
Offline
Joined: 11/26/2009
Juice: 29
Paypal WPS Support Added

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.

AttachmentSize
uc_optional_checkout_review-6.x-1.0-beta2.tar.gz 7.76 KB
lmaharas's picture
Offline
Joined: 03/27/2010
Juice: 5
Alternate checkout completion page ignored

I installed this module, but my custom checkout page link was ignored and the user is instead taken to "cart/checkout/complete". Can someone help me figure out how to force this redirect?

thanks!

lmaharas's picture
Offline
Joined: 03/27/2010
Juice: 5
also....

I have added the "path redirect" module and redirected the cart/checkout/complete page to another node, but now the confirmation emails are not being sent to customers.

Any thoughts on this issue. Sorry if it's in the wrong thread.

mkassets's picture
Offline
Joined: 11/26/2009
Juice: 29
Re: Optional Checkout Review

lmaharas, the checkout completion page URL is hardcoded in the Paypal model to be uc_paypal/wps/complete/[order-id] and has nothing to do with the optional checkout review module. You can request a feature on the paypal module page.

aerosoul's picture
Offline
Joined: 04/25/2010
Juice: 3
ClickandBuy

ClickandBuy (http://drupal.org/project/uc_clickandbuy) also doesnt work when skipping the review page.

Maybe someone can take a look at?!

thx in advance
danny

joostvdl's picture
Offline
Joined: 05/10/2010
Juice: 11
Module works

I tested it on:
Ogone (http://drupal.org/project/uc_ogone)
Creditcard payment

Ubercart 2.x

darren's picture
Offline
Joined: 07/28/2010
Juice: 4
using sagepay

This didn't work with sagepay, and I think because the sagepay module form_alter()s it's own submit handler into the form on the review page. Adding this to uc_optional_checkout_review_form_alter() works, but if sagepaygoserver is the ONLY payment method:

<?php
       
if (function_exists('uc_sagepaygoserver_checkout_form_submit')) {
         
$form['#submit'] = array('uc_sagepaygoserver_checkout_form_submit');
        }
?>
cedarm's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/29/2008
Juice: 100
Use jQuery!

While not optimal this brilliant idea from formodarich on http://www.ubercart.org/forum/ideas_and_suggestions/918/potential_checko... may allow some of you with "other" payment gateways to mostly bypass the review page.

mrfelton's picture
Offline
Joined: 10/03/2008
Juice: 31
Re: Optional Checkout Review

Great - this seems to work fine with the uc_realex payment processor. I have added this code to my git repo for the sake of ease:
http://github.com/systemseed/uc_optional_checkout_review

Tom Kirkpatrick - kirkdesigns.co.uk

mrfelton's picture
Offline
Joined: 10/03/2008
Juice: 31
Re: Re: Optional Checkout Review

I fixed up the JavaScript that hides the submit button too. There were some problems with it (throbber css not being loaded onto the page, and missing call to end() was causing the new version of the submit button to be hidden, rather than the original one as intended)

Tom Kirkpatrick - kirkdesigns.co.uk

arskipaski's picture
Offline
Joined: 02/17/2010
Juice: 99
Re: Optional Checkout Review

hmm, doesn't work with Adyen payment gateway.. it appears that it too adds some custom stuff using form_alter, but it also needs the $order object which does not exist until the order review page.. I think this module should try to emulate a "hidden" review page in order to function properly - i.e. do what Ubercart would do first, create an order object etc., and then redirect to the payment gateway or something like that.

Oh, and why don't you start a project on drupal.org where it belongs, before it gets messy with 10 different distributions on this site, github and somewhere else Smiling

Cheers

arskipaski's picture
Offline
Joined: 02/17/2010
Juice: 99
Re: Re: Optional Checkout Review

heh, the solution was totally easy.. you had some stuff in the uc_optional_checkout_review_form_submit function that built a paypal_wps form and then submitted it.. well exactly the same stuff can be done for adyen as well.. I wonder if there is a way of making that work in a more generic fashion, for many more payment methods?

Either way, thumbs up for the module! You should really get it posted on drupal.org to get the more exposure and help from the community. If you want, I can help you with that, got a CVS account and all, wouldn't mind helping with maintenance either. Drop me a line if interested.

Cheers

hanoii's picture
Offline
Joined: 07/30/2008
Juice: 103
Re: Optional Checkout Review

Does it work with paypal website payments pro? I think it doesn't either, does it?

It might be good to try to create a module on drupal.org to follow up development about this there, what do you think?

arskipaski's picture
Offline
Joined: 02/17/2010
Juice: 99
Re: Optional Checkout Review

I think it does.. there is some code in there about it..

Well, the first step should be to get this module posted on drupal.org in the first place.. then we can think about future extensions.

I'm tempted to just go ahead and to it.. but it's not really mine, so... :/

cookiesunshinex's picture
Offline
Joined: 10/14/2009
Juice: 127
Re: Optional Checkout Review

I agree that someone should put this on drupal.org as an official project. It seems like there is enough sustained interest in it over the last year or more to warrant the effort in getting it up on drupal.org and some needed patches made to it.

arskipaski's picture
Offline
Joined: 02/17/2010
Juice: 99
Re: Optional Checkout Review

Yea, well.. sent a message to both guys who provided us with 5.x and 6.x versions of the module - let's see what they say, if they reply at all.. If I get no reply until next year I'll just go ahead and do it myself Smiling

Cheers

longwave's picture
Offline
Joined: 09/20/2008
Juice: 630
Re: Optional Checkout Review

I'm considering merging this functionality into http://drupal.org/project/uc_checkout_tweaks

--
These forums are for general support questions about Ubercart.
Bug reports and feature requests should be posted at http://drupal.org/project/issues/ubercart
Latest API documentation can be found at http://api.ubercart.me/

cookiesunshinex's picture
Offline
Joined: 10/14/2009
Juice: 127
Re: Re: Optional Checkout Review

@longwave, I had not ever seen your module before.

It sounds good.

I would also really much value the inclusion of this functionality in this discussion into your module.

+1 here for sure.

GlossyIbis's picture
Offline
Joined: 01/26/2011
Juice: 4
PayPal WPS Issue still happening?

Hi,

Thanks for this very handy module. I see it's practically a year ago that beta2 was released (I can't see a later version anywhere). A website I'm developing can have free as well as chargeable items. This module perfectly handles the zero total carts but we can't get past the checkout page for positive total carts with PapPal Websites Payments Standard: it keeps re-directing back to the checkout page with the "review Order" button changed to "Submit Order". I see other people have had a problem with this also.

Is there a solution for this or can anyone who has this working for both zero and positive total carts explain how they got it working? I would really appreciate any help. Thanks.

arskipaski's picture
Offline
Joined: 02/17/2010
Juice: 99
Re: Optional Checkout Review

I think longwave is looking into integrating that into his module, or what's your status with that?

/me pokes longwave (we seem to bump into each other a lot Eye-wink)

joethejoe's picture
Offline
Joined: 10/12/2009
Juice: 79
Any downside?

Up thread there is a reference to customers not receiving confirmation email.
On a wps site does the customer receive confirmation? Does everything function normally, especially with paypal wps, when skipping the review page?

thx
joe

mrfelton's picture
Offline
Joined: 10/03/2008
Juice: 31
Re: Optional Checkout Review

I went ahead and posted this up on drupal.org:
http://drupal.org/project/uc_optional_checkout_review

Tom Kirkpatrick - kirkdesigns.co.uk

greatfield's picture
Offline
Joined: 04/12/2011
Juice: 3
Re: Re: Optional Checkout Review

Thanks mrfelton, i've installed the module and it's working so far (it's skipping the review page)

I'm using the acquia prosper theme.

When a user clicks the submit button, and the form is not valid (e.g. the emial validation fails), i see two submit buttons instead of one. If a user clicks let's say 4 times quickly on the submit button, he'll have 4 buttons for a few seconds. It only lasts for a few seconds until the checkout form is reloaded, but it looks amateuristic.

Most likely it's in the javascript. However, i don't know how to fix it. Any clues?

Thanks

G

mettasoul's picture
Offline
Joined: 04/09/2011
Juice: 8
Re: Re: Re: Optional Checkout Review

Same problem here. I fixed it by changing line 13 in uc_optional_checkout_review.js (- remove line, + add line)

- $(this).clone().attr('disabled', true).insertAfter(this).after('    ').end().end().hide();

+ $(this).clone().insertAfter(this).attr('disabled', true).after('    ').end().hide();

Hope this helps. Great little module btw! Thanks.

mrfelton's picture
Offline
Joined: 10/03/2008
Juice: 31
Re: Optional Checkout Review

Please can we move issues for this module over the the issue queue on drupal.org. I've created a ticket for this:
http://drupal.org/node/1129168

Tom Kirkpatrick - kirkdesigns.co.uk

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1109
Re: Optional Checkout Review

Holy cow this is awesome! How have I not known about this? Gonna install it right now in fact... Thanks to everyone who made this possible!!!! Seriously thank you!

Mike

make-online-shop's picture
Offline
Joined: 01/01/2011
Juice: 511
Can you tell me if it works with Drupal 6 and latest Ubercart ?

Hi,

Can you tell me if it works with Drupal 6 and latest Ubercart version ?

Thanks a lot.

SNaushadS's picture
Offline
Joined: 11/11/2011
Juice: 17
Great, Thanks

This module helped me a lot. I was fidgeting with pane.inc in uc_cart.

This module solved the issue in a blink.

daniel7912's picture
Offline
Joined: 04/06/2012
Juice: 7
Hi, My website uses the

Hi,

My website uses the WorldPay payment system and when I try to use this module it completely skips the payment pages and confirms the order. Could someone tell me how I can make it work properly please?

Many thanks for any help