No ratings yet.

 

 

 

 

 

 

 

 

how to change method using magento class rewrites

Choose the correct answer:

Assume you have three models A, B and C. Both A and B extend C. Assume C contains a method that you are going to change in
both A and B. How can you change the method using Magento class rewrites.
a. Rewrite class C using the xpath global/models/_MODULE_/rewrite/C
b. Rewrite the method using the xpath global/models/_YOUR_MODULE_/rewrite/C/_METHOD_
c. You must rewrite both A and B using the xpaths global/models/_MODULE_/rewrite/A and
global/models/_MODULE_/rewrite/B
d. You must change that method directly in C.
Correct answer is :

You must rewrite both A and B using the xpaths global/models/_MODULE_/rewrite/A and

Please rate this