How CustomShippingCalculator and all other custom calculators invoked in which all actions. It's always hitting on every TC API Methods .Any way to change that? For my scenario in need, it only when a form submit of delivery information
I'm not quite sure what you are asking, but I'm guessing you are only wanting to run a custom shipping calculator when you get to the shipping method stage?
Currently, all these events trigger when the order is saved so the whole order is recalculated again. If you need to know the stage of the order checkout, the best I could suggest would be to maybe store a "checkoutStage" property to your order so you know at what stage your checkout process it at and then only run your shipping calculator if you are on / after your checkout phase.
Custom Shipping Calculator Events
How CustomShippingCalculator and all other custom calculators invoked in which all actions. It's always hitting on every TC API Methods .Any way to change that? For my scenario in need, it only when a form submit of delivery information
Hi Vineeth,
I'm not quite sure what you are asking, but I'm guessing you are only wanting to run a custom shipping calculator when you get to the shipping method stage?
Currently, all these events trigger when the order is saved so the whole order is recalculated again. If you need to know the stage of the order checkout, the best I could suggest would be to maybe store a "checkoutStage" property to your order so you know at what stage your checkout process it at and then only run your shipping calculator if you are on / after your checkout phase.
Hope that helps
Matt
is working on a reply...