We are using third-party extension to get the rates for customers with discounted rates based on customer preferences, Items and etc. And it’s working good.
Here we have couple of questions.
When the product is added to cart the
collectRates()method is calling. I think this is unnecessary until the customer on shopping cart or Checkout page. Can we restrict? If we restrict is there any issues rise?
After adding the products to cart when the customer is came to Checkout page
collectRates()method is calling 3 times. Is this necessary to 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 calling 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?