My customer wants to have custom prices for each customer. He already has an existing system where he holds such data where we can invoke an API call to retrieve it based on the customerREF and SKU.
How can i do this in Magento2 itself? I see a lot of plugins but most of them are way too much overhead.
I thought below steps are needed but no idea where i need to implement this:
- Ensure that no prices are shown on the category index pages and such. I can overwrite this method?
- When a product detail page is opened i invoke an API call to retrieve the actual price. I can add some basic caching for lets say 5 min to ensure that there is not too much overhead
- How can i ensure when a product is added to the cart, that specific price is also used?
I know there are some events as well. No idea how to get the actual price there then though: