Jump to content

Remove Express Check Out Paypal button


theride

Recommended Posts

Hi,

When a user goes to check out, in the first step there is a paypal express checkout button at the bottom which i want to remove. Would someone mind to let me know what i need to do to the code to remove it.

 

Page: /index.php?controller=order&step=0

 

HTML code.

 

 

<div class="cart_navigation_extra">

<div id="HOOK_SHOPPING_CART_EXTRA"><div id="container_express_checkout" style="float:right; margin: 10px 40px 0 0">

<img id="payment_paypal_express_checkout" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" alt="" />

<form id="paypal_payment_form" action="http://www.XXXXXXXXXXXXX.com/modules/paypal/express_checkout/payment.php" data-ajax="false" title="Pay with PayPal" method="post" data-ajax="false">

 

<!-- Change dynamicaly when the form is submitted -->

<input type="hidden" name="quantity" value="1" />

<input type="hidden" name="id_p_attr" value="" />

<input type="hidden" name="express_checkout" value="cart"/>

<input type="hidden" name="current_shop_url" value="http://www.XXXXXXXXXXXXX.com/index.php?controller=order&step=0" />

<input type="hidden" name="bn" value="FR_PRESTASHOP_H3S" />

</form>

 

</div>

Edited by theride (see edit history)
Link to comment
Share on other sites

  • 7 months later...

How can I remove the express checkout block that appears in the 5th step (payment)? I have the standard payment and express checkout enabled. I do want the block to show up on the 1st step (summary), which it does, but it's also showing on the payment page along with the standard payment one, so now I have two. 

 I appreciate any help! 

 

post-707068-0-78161500-1383592340_thumb.png
Link to comment
Share on other sites

I am having same problem.

Did you find any solution?

Thank you in advance

 

How can I remove the express checkout block that appears in the 5th step (payment)? I have the standard payment and express checkout enabled. I do want the block to show up on the 1st step (summary), which it does, but it's also showing on the payment page along with the standard payment one, so now I have two. 

 I appreciate any help! 

 

please share url to websites

Link to comment
Share on other sites

  • 2 months later...
  • 7 months later...

I have figured out this issue, but am plagued with other issues related to accepting PayPal payments.  I was attempting to have both Express and Standard PayPal checkout options, but didn't want the Express checkout button in the shopping cart.  In the end, I found that Express wouldn't work for me as it doesn't allow vouchers.

Link to comment
Share on other sites

  • 7 months later...
  • 6 months later...

How can I remove the express checkout block that appears in the 5th step (payment)? I have the standard payment and express checkout enabled. I do want the block to show up on the 1st step (summary), which it does, but it's also showing on the payment page along with the standard payment one, so now I have two. 

 I appreciate any help! 

 

Yes!  This is exactly what I have been trying to do for hours without success!  Any solution?  I activated Standard and Express on the Paypal module.   I like the Express button on step 1 of checkout.  However, on step 5 I don't like the Express button because it is confusing with two Paypal buttons! 

 

On step 5, the top button is for Express and the bottom button is for Standard, but how could a customer know that?  If a customer makes it to step 5 I don't consider it "Express" anymore and the Express button should be removed.  If a customer clicks the top Express button on step 5 and doesn't have a Paypal account and tries to go back on the browser it causes a website error, or at best, confusion.  If I disable Express in the Paypal module it removes the button from step1 AND 5.  The solution to unhook the "Shopping Cart - Additional Button" removes the Express button from step 1 only, which is the opposite of what we wanted to do.

 

I thought that it would be under the Paypal Module - Manage hooks.  I tried to edit "displayPayment" and added the exception "module-paypalusa-expresscheckout" and hit save but it didn't do anything.     

 

My website is www.stephendevans.com if you want to try it.

Link to comment
Share on other sites

Isn't there options in the modules configuration page, towards the bottom of the page, there are some checkbox options?

 

On that page if you enable Express Check Out there are some options on the bottom.    You can check or uncheck "Show Express Checkout on ( ) Product Page ( ) Shopping Cart".  If you uncheck shopping cart and hit save it just puts a check back on.  I guess if you enable Express Checkout you would want a Express Checkout button so you really can't change that check box - it's a false option.  Plus, I do think I want it on the Shopping Cart (Step 1) just not step 5.  I tried changing it just to see what happens but it just puts the check back on if Express Checkout is enabled.     

Link to comment
Share on other sites

Then i suppose you will need to alter the payment module code to fit your needs

 

Then i suppose you will need to alter the payment module code to fit your needs

 

Thanks for all the input bellini13.

 

I can't see how having two identical paypal buttons at the end would suit anybody and I am surprised there isn't an easy way of changing this option.  Better yet, it would be better for the module [coding] not to have two Paypal buttons by default on Step 5.

 

I found two work arounds before but I don't think they are great solutions.  Here are some work arounds for other people who are searching.  

 

1.) Just forget and inactivate Paypal Express in the Configuration of the Paypal Module.  Just use Paypal Standard.  Even though you have the option of choosing both, having both Paypal Express and Standard causes confusing for customers at step 5.  While Paypal Express is beneficial to have in Step 1, it isn't worth the confusion of having two buttons in Step 5.  Paypal Standard let's you pay without a Paypal account with the "Don't have a Paypal Account" on the bottom right so you can accept credit cards. 

 

2.)   When I updated Prestashop all my hard coding disappeared so I can't even take a screenshot of the changes I made and I don't want to do it again.  But this is what I did to change to help customers with confusion in Step 5.   I changed one Paypal button images and added some notes.

 

The two logos were the same and was confusing.  I made backups of the files I was changing just in case I messed things up so "express_checkout_shortcut_button.tpl" was called "express_checkout_shortcut_button.tpl.backup" and I was free to modify "express_checkout_shortcut_button.tpl".  

I searched Paypal developers for a good Paypal Express logo and changed src="location for new image" in module: modules/paypal/views/templates/hook/ open file: express_checkout_shortcut_button.tpl

search for: <img id="payment_paypal_express_checkout" src="https://www.paypal.com/{$PayPal_lang_code}/i/btn/btn_xpressCheckout.gif" alt="" />

 

I think I left the other Paypal Standard Logo alone but added some text.  Instead of "Pay with Paypal" I think I changed it to "Pay with Credit Card with or without Paypal."  

 

post-1136710-0-44623800-1449416800_thumb.jpg

 

 

Link to comment
Share on other sites

  • 1 month later...

Hi guys 

After removing the paypal hook in the express page, I have some customers asking for paypal. I can not remember where I unhooked the paypal method of payment. Can someone advise me, I have been searching now for hours. 

Thanks in advance 

Kind regards

Len 

ps here is the link to the 3 payment options I have

 http://rosieposy.fr/fr/quick-order

Link to comment
Share on other sites

try reinstalling paypal by clicking reset  on the paypal module. It also depends on your setup.

Look in

 Configure "Theme configurator" module

 

then scroll down to

Display logos of available payment methods

click 'configure'

I hope that helps. 

I Configure "Theme configurator" module

  •  
Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

Hi guys,

 

ok after alot of pondering I did the below and it worked for me.

 

1) I uploaded a transparent image file "transparent.png" to where ever you want in to store directory. I uploaded it to

/module/paypal/views/img/transparent.png

2) Edit the file below

modules/paypal/views/templates/hook/express_checkout_shortcut_button.tpl

3) On line 35 change it accordingly

<img id="payment_paypal_express_checkout" src="https://www.paypal.com/{$PayPal_lang_code|escape:'htmlall':'UTF-8'}/i/btn/btn_xpressCheckout.gif" alt="" />

to

<img id="payment_paypal_express_checkout" src="http://www.YOURSITE.com/module/paypal/views/img/transparent.png" alt="" />

WARNING :

THE ABOVE DOES NOT REMOVE IT BUT IT WILL MAKE IT DISAPPEAR (Which is what i wanted)

 

If you want to really make it disappear go to the paypal module in your module admin page and click on MANAGE HOOKS and unhook those that you do not want it to appear. honestly I am not confident enough to unhook so I did the above. you have to be careful you might unhook those that are important.

 

Happy Trying.

post-64567-0-87977800-1467123637_thumb.png

Edited by archproject (see edit history)
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Everyone noticed that everyitme somesone visit the product page, it generate this error: i have paypal express button disabled

 

2016/11/17 11:03:18 [error] 30348#0: *119 FastCGI sent in stderr: "PHP message: PHP Warning:  include_once(/var/www/sanitariacamporomano.cominit.php): failed to open stream: No such file or directory in /var/www/sanitariacamporomano.com/modules/paypal/express_checkout/ajax.php on line 28
https://test.sanitariacamporomano.com/it/dambulatori-e-rollator/75-rollator-dolomite-jazz.html"

Edited by malachiel (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...