Created
June 16, 2015 09:09
-
-
Save aleron75/f453dcc15f97d5e616df to your computer and use it in GitHub Desktop.
Magento Compare Version
This file contains hidden or 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 | |
class Myvendor_Mymodule_Helper_Data extends Mage_Core_Helper_Data | |
{ | |
/** | |
* Check whether current Magento version supports Transactions | |
*/ | |
public function isTransactionSupported() | |
{ | |
return version_compare(Mage::getVersion(), '1.4.0.1', '>'); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment