3 replies [Last post]
denizengt@drupal.org's picture
Offline
Joined: 12/12/2008
Juice: 27
Was this information Helpful?

Hey guys, once again

My testing users are telling me that the Paypal Express Checkout button on the cart pane is confusing them. They see it as an advertisement rather than a button, then are dismayed when not finding paypal after clicking the "checkout" button, which takes them to a seperate page.

In the interest of usability, I'm trying to change that Paypal EC button to a standard button called "Checkout with paypal" and the normal "checkout" button to "checkout with other services", however there's a problem.

It appears that the Paypal EC button, part of the uc_paypal_ec_form in the uc_paypal.module is attached using hook_cart_pane. Normally this is fine, but I need to move that button-form so it's after the "update cart" button.

This is neccesary because our client prefers Paypal. How can I move the Paypal EC button-form so it renders after the "update cart" button?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Move the Paypal EC button in the cart pane

So, I'm not sure PayPal checks on everyone using Express Checkout, but they basically require you to use the checkout image like this. At the very least, I know we couldn't get our integration certified without it. You should be able to disable the cart pane yourself and add the Express Checkout form using hook_form_alter() manually, though. The hitch is it's gotta submit straight to PayPal, meaning it needs to be its own form with its own action. Stuffing that in the middle of another form won't work out, so I doubt you can get it to show up in between the two normal buttons.

denizengt@drupal.org's picture
Offline
Joined: 12/12/2008
Juice: 27
Re: Re: Move the Paypal EC button in the cart pane

After some time spent figuring out how the modules worked together I realised that the button could not be moved (even tried rendering the paypal ec form as a form item in the standard buttons location).

So basically I made my other buttons look exactly the same as the Paypal ones, that was the best solution.

icymetal's picture
Offline
Joined: 06/19/2009
Juice: 24
Ryan wrote: So, I'm not sure
Ryan wrote:

So, I'm not sure PayPal checks on everyone using Express Checkout, but they basically require you to use the checkout image like this. At the very least, I know we couldn't get our integration certified without it. You should be able to disable the cart pane yourself and add the Express Checkout form using hook_form_alter() manually, though. The hitch is it's gotta submit straight to PayPal, meaning it needs to be its own form with its own action. Stuffing that in the middle of another form won't work out, so I doubt you can get it to show up in between the two normal buttons.

It's great having the PayPal button in the View Cart node. I enable the Shopping Cart as a block and it is always out there. I fear that customers will, instead of using the View Cart (and thus seeing the PayPal Express Checkout), select Checkout from the Shopping Cart block and now see the Checkout form where the Express Checkout is not available. Can we add that button to the Checkout node as well, so that customers won't have to fill in their information?

Thanks for a great module.