在Magento 2.2.8中,我想覆盖CalculateWithTaxInPrice文件中的/vendor/magento/module-tax/Model/Calculation/AbstractAggregateCalculator.php受保护的功能。
CalculateWithTaxInPrice
/vendor/magento/module-tax/Model/Calculation/AbstractAggregateCalculator.php
我尝试使用插件和首选项,但未覆盖该功能。
任何人都可以帮助我解决问题。
谢谢。
在Magento插件中仅适用于公共功能。
对于您的情况,建议您尽可能使用Observer,否则可以使用首选项。