SUMOHeavy Ordercomment

Extension Name

OrderComment

Developer

SUMOHeavy

Issue Status

Resolved with modifications.

Versions

MageRewards  1.7.1.2

SUMOHEavy Ordercomment  0.0.2

Problem

There's an extension conflict on sales Order model rewrite between these 2 extensions.

Resolution

To solve, follow these instructions:

1. Copy file  app/code/community/TBT/Rewards/Model/Sales/Order.php toapp/code/local/TBT/Rewards/Model/Sales/Order.php and modify line #50 from: 

class TBT_Rewards_Model_Sales_Order extends Mage_Sales_Model_Order {

to:

class TBT_Rewards_Model_Sales_Order extends SUMOHeavy_Ordercomment_Model_Order {

2. Comment out Order model rewrite declaration in SUMOHeavy Ordercomment module, as it's now extended by class TBT_Rewards_Model_Sales_Order, more exactly lines #17 - #24 in app/code/local/SUMOHeavy/Ordercomment/etc/config.xml

<!-- commented out for compatibility with MageRewards --><br><!--<br> <sales><br> <rewrite><br> <order>SUMOHeavy_Ordercomment_Model_Order</order><br> </rewrite><br> </sales>
	

3.  Add dependency for SUMOHeavy Ordercomment extension in TBT_Rewards module declaration ( app/etc/modules/TBT_Rewards.xml): 

<depends> <br><SUMOHeavy_Ordercomment/> <br></depends>

Please keep in mind that implementing any modifications to your MageRewards core code does void your support agreement because you're adding dependency to the other module.

Still need help? Get Help Get Help