We are using a third-party extension to get the rates for customers with discounted rates based on customer preferences, Items and etc. And it’s working well.
Here we have couple of questions.
When the product is added to the cart the
collectRates()method is called. I think this is unnecessary until the customer on the shopping cart or the Checkout page. Can we restrict? If we restrict is there any issues that may arise?
After adding the products to the cart, when the customer comes to the Checkout page, the
collectRates()method is called 3 times. Is this necessary in Magento 2? If Yes why? If Not then how can we restrict?
After selecting the shipping method when we click on the Next for payment method again the
collectRates()method is called after selected the shipping method also. Is this necessary to in Magento 2? If Yes why? If Not then how can we restrict?
Can you please help on this?