Created
February 20, 2013 21:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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