Skip to content

Instantly share code, notes, and snippets.

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 kalenjordan/ebef4d8d3082ac247983 to your computer and use it in GitHub Desktop.
Save kalenjordan/ebef4d8d3082ac247983 to your computer and use it in GitHub Desktop.
if ((string)Mage::getConfig()->getModuleConfig('Acme_OrderApi')->active == 'true') {
class Clean_Api_Model_Sales_Order_Api_Abstract extends Acme_OrderApi_Model_Order_Api { }
} else {
class Clean_Api_Model_Sales_Order_Api_Abstract extends Mage_Sales_Model_Order_Api { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment