Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The PayPal button can look pretty clunky as an option in the "Payment methods" list. It seems like a good idea to provide an option to use the text only.
Further, sometimes you don't want the "Express Checkout" as an option on the Cart page, e.g. when it doesn't work properly like the site requires a user to complete billing and shipping details first. It would be nice to have an option to disable that too.
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedPatch attached which provides rules-configurable options for both of these.
Comment #2
aidanlis CreditAttribution: aidanlis commentedFixed the default values.
Comment #3
heddnRe-rolled against current HEAD.
Comment #4
haggins CreditAttribution: haggins commentedWould be great if this was integrated!
Here's a quick review of the patch. I didn't test it, though:
'Cart' lowercase.
Append dot.
Should be
</div>
.Comment #5
aidanlis CreditAttribution: aidanlis commentedThanks for the review
Comment #6
haggins CreditAttribution: haggins commentedI cannot apply the patch against 7.x-2.x-dev, sorry. Wrong format?
Also found another one:
Append dot.
Comment #7
aidanlis CreditAttribution: aidanlis commentedIs the full stop after a comment a new policy for DC? It seems a bit superfluous ...
Comment #8
haggins CreditAttribution: haggins commentedI probably wouldn't have mentioned it, if it was possible to apply the patch. But since the patch needs some rework nevertheless, it doesn't hurt, does it?
Comment #9
markisatacomputer CreditAttribution: markisatacomputer commentedHere's a version of the patch that works for me. Rolled for 7.x-2.2
Comment #10
haggins CreditAttribution: haggins commentedThank you Mark!
I just tested it and it seems to work fine.
I'm wondering why you added this? This seems not related to this topic...and it adds wrong information since not everyone provides credit card functionality via paypay (like me).
Please revert this change.
Remove spaces.
And last but not least: patchfiles should be created from the module root not from Drupal root.
Comment #11
aidanlis CreditAttribution: aidanlis commented@haggins That's the text which appears by default, this patch just moves it out-of-line.
Comment #12
haggins CreditAttribution: haggins commentedNo, the icons do only appear in the wps module not in ec module.
Comment #13
markisatacomputer CreditAttribution: markisatacomputer commentedOops - sorry guys - here it again.
Comment #14
haggins CreditAttribution: haggins commentedThere are still icons which should only be shown by wps module.
Comment #15
aidanlis CreditAttribution: aidanlis commentedWhy should it be shown on one module and not the other?
Comment #16
haggins CreditAttribution: haggins commentedI just wanted to point out, that the icons were not shown before this patch. However, this issue is about disabling the button on the cart page and not about showing icons.
So it's better to open another issue for that. If you want to show them, you should also take care of the configuration made at the paypal_ec rules setting page:
Express Checkout mode
Comment #17
aidanlis CreditAttribution: aidanlis commentedThis issue is about two things, Express Checkout looking clunky and providing an extra option to disable EC on cart pages. The patch addresses both these issues, bringing the styling of EC inline with the other payment methods, specifically paypal standard and the standard credit card form. Let's stop bikeshedding and get this 3 month old issue committed.
Comment #18
haggins CreditAttribution: haggins commentedOk, however the credit card icons should only be shown if credit card option is enabled (see #16).
Comment #19
Exploratus CreditAttribution: Exploratus commentedTried the patch and it worked wonderfully. Really wanted to get the button out of the cart, it was sending the total to Paypal without Shipping / tax costs. Nice!
Can we get this committed?
Comment #20
svouthi CreditAttribution: svouthi commentedI've applied the patch and am so happy to get rid of the Express Checkout button from the cart. However, the Paypal logo is still displaying on my payment page rather than the plain text.
Comment #21
BrianLP CreditAttribution: BrianLP commentedSame here, no text but only the Paypal logo regardless which setting I select. Any ideas what I might have missed?
Comment #22
torgosPizzaI need this option too. Will see if I can help soon.
Comment #23
daveparrish CreditAttribution: daveparrish commented#13 applied cleanly but there were some white space issues and #20 pointed to a problem which I fixed in my attached patch.
As to @haggins concerns I've also split this issue into three more issues each with their own, smaller patches. I hope this will be enough to get at least some of these improvements committed. I personally need to be able to hide the Paypal button on cart pages.
Here are the new issues:
#2415489: Provide option for text only radio button
#2415495: Improve Paypal payment message
#2415501: Add option for disabling the Paypal button on cart page
Comment #24
daveparrish CreditAttribution: daveparrish commentedComment #25
zhoudrupal CreditAttribution: zhoudrupal commentedI followed the new steps (#23), but I got this information in "Review order" page. What should I do?
In my file, line 517 : if ($settings[$key]['settings']['display_name_as_logo']) {
Notice: Undefined index: display_name_as_logo in commerce_paypal_ec_form_alter() (line 517 of/var/www/www.XXXX.com/profiles/commerce_kickstart/modules/contrib/commerce_paypal...)
Comment #26
RobbMLewis CreditAttribution: RobbMLewis commentedPatch 23 worked for me.
Comment #27
RobbMLewis CreditAttribution: RobbMLewis commentedCould this be added into the code? I've been using patch 23, and just had to manually update it due to latest module update.
Comment #28
bensey CreditAttribution: bensey as a volunteer commentedYes, was using #23 on a client's site too, but suddenly found that button back again after an update.
Can somebody on the project please review and commit this, as it is such a simple setting, so harmless, and not everyone wants it on the cart page. And in many cases the express checkout directly from the cart page doesn't work with all of our order and checkout workflows. In our case assigning licenses etc.