Create a factory to determine if the original Magento class exists. If not it will use a local class. I did not want to load the product. This should be removed at some point if you drop support for certain versions, but composer.json should force magento module version if you decide to do that.
Fix for https://github.com/NVision-Commerce-Solutions/module-customer-price/issues/28
Create a factory to determine if the original Magento class exists. If not it will use a local class. I did not want to load the product. This should be removed at some point if you drop support for certain versions, but composer.json should force magento module version if you decide to do that.