100% Satisfaction Guaranteed. Click here to read why you should by from us.

Remove Checkout Buttons from top of Cart page


If you want to remove the Checkout buttons from the top of your Magento Cart page, here are 2 ways to do this .

(1) Remove the checkout buttons using Layout XML.

Add this to a layout XML file:

  1. <checkout_cart_index>
  2. <remove name="checkout.cart.top_methods" />
  3. </checkout_cart_index>

(2) Just hide the buttons using CSS

Add this to your Magento store css style sheet:

  1. .checkout-cart-index .title-buttons .checkout-types {display:none}


If you want to remove only Google Checkout and/or Paypal Express buttons from the top of the Magento Cart Page, you can use the following Layout XML

  1. <checkout_cart_index>
  2. <reference name="checkout.cart.top_methods">
  3. <action method="unsetChild"><name>checkout.cart.methods.googlecheckout</name></action>
  4. <action method="unsetChild"><name>checkout.cart.methods.paypal_express</name></action>
  5. </reference>
  6. </checkout_cart_index>



Magento Paypal Express Bug


This post details how to fix a bug in Magento 1.4.* processing payments using PayPal Express. 

The problem occurs when a customer selects PayPal Express, makes payment on the PayPal site, and then completes the transaction on your Magento store. The error the customer sees is “This payment cannot be processed using your PayPal account at this time.”, however the payment is processed successfully and shows up in your PayPal account.

To fix this, open up app/code/core/Mage/Paypal/Controller/Express/Abstract.php and comment out some code in the placeOrderAction function

(For a cleaner fix, copy the file to app/code/local/Mage/Paypal/Controller/Express/Abstract.php and then make changes to the new file)

  1. public function placeOrderAction()
  2. {
  3. try {
  4.  
  5. ....
  6.  
  7. // if ($url = $this->_checkout->getRedirectUrl()) {
  8. // $this->getResponse()->setRedirect($url);
  9. // return;
  10. // }
  11.  
  12. ...
  13. }
  14. }

The response object from PayPal is returning this on the final placeOrder step:

  1. [SUCCESSPAGEREDIRECTREQUESTED] => true

This means that the Magento store thinks it should redirect back to PayPal to finalize the order, however it does not need to redirect.

This fix has been tested on Magento 1.4.0.1, Magento 1.4.1.1

It has also been confirmed to work with PayPal Pro accounts (Both PayPal USA and PayPal Canada Pro Accounts)




Page 3 of 3 pages  <  1 2 3