Can´t rewrite Mage_Customer_Model_Customer_Api #2249
-
Can´t rewrite Summary (*)Examples (*)
MageRun Output:
The Log Message 'Hello from extended API call' is never written into the log file. If I put the Proposed solutionNo idea ... Any help? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
if you put a die() at the top of the file? does it get executed? I've rewritten the same models in the past for a customers and it worked correctly |
Beta Was this translation helpful? Give feedback.
-
Yes! API Response just fine!
Yes! API Response just fine, but:
|
Beta Was this translation helpful? Give feedback.
-
so it seems that file is actually required right? put a die in the items funcion then instead of the log, just to check |
Beta Was this translation helpful? Give feedback.
-
I think the problem in the code in OP is that your |
Beta Was this translation helpful? Give feedback.
-
THX a lot! |
Beta Was this translation helpful? Give feedback.
-
Happy to help :) |
Beta Was this translation helpful? Give feedback.
I think the problem in the code in OP is that your
MyModule_CustomerOptIn_Model_Customer_Api_V2
file is extending fromMage_Customer_Model_Customer_Api
instead ofMyModule_CustomerOptIn_Model_Customer_Api
, thus your customitems
method is never executed.