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.

  1. A. Rewrite class C using the xpath global/models/MODULE/rewrite/C
  2. B. Rewrite the method using the xpath global/models/YOUR_MODULE/rewrite/C/METHOD
  3. C. You must rewrite both A and B using the xpaths global/models/MODULE/rewrite/A and global/models/MODULE/rewrite/B
  4. D. You must change that method directly in C

Leave a Reply

Your email address will not be published. Required fields are marked *