php - Overwritten Model Function - Magento2 -
on checkout, there 2 calls fetch totals data. specific function called twice is, fetch() located within tax class model. wanted rewrite method used di.xml supply path override. etc/frontend/di.xml. on first call when customer on checkout, re-written function fetch, gets triggered. when second call comes through, old function fetch, gets triggered. tried adding di.xml located inside etc/adminhtml/ see if fix problem, no avail.
why second call fetch not triggering new class function overwritten?
Comments
Post a Comment