Skip to content

Instantly share code, notes, and snippets.

@tegansnyder
Created February 20, 2013 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegansnyder/4999873 to your computer and use it in GitHub Desktop.
Save tegansnyder/4999873 to your computer and use it in GitHub Desktop.
Amasty Customer Attributes Extension conflicts with Magento Paypal Express Payments by overriding the html block output on the Order Review page. Here is a quick fix.
<?php
// Edit your Amasty Custoemr Attributes
// Observer.php file
// find the handleBlockOutput function
public function handleBlockOutput($observer)
{
/* @var $block Mage_Core_Block_Abstract */
$block = $observer->getBlock();
if ($block instanceof Mage_Checkout_Block_Onepage_Billing) {
return false;
}
if ($block instanceof Mage_Checkout_Block_Onepage_Shipping) {
return false;
}
if ($block instanceof Mage_Paypal_Block_Standard_Form) {
return false;
}
// rest of the function continues here....
// ...
// ...
// ...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment