Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vineeth 48 posts 228 karma points
    May 23, 2019 @ 13:34
    Vineeth
    0

    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

  • Matt Brailsford 2300 posts 11175 karma points MVP 6x c-trib
    May 27, 2019 @ 14:28
    Matt Brailsford
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft