Copied to clipboard

Flag this post as spam?

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


  • Tor Langlo 191 posts 554 karma points
    Dec 09, 2022 @ 22:24
    Tor Langlo
    0

    What's the purpose of IProductCalculator?

    Hi, we're in the process of migrating from TeaCommerce to Vendr and as a part of that came to the realization that our custom product calculator was only used when called directly from our own code.

    Is it correct that the product calculator (even when correctly registered at app startup) is never actually used directly by Vendr? It's only used when calling IProductSnapshot.CalculatePrice(), and that method is also not called by Vendr itself?

    Maybe there's a scenario where I create the snapshot, call CalculatePrice(), and then pass the returned Price object back/onto Vendr somewhere?

    I'm trying to understand how Vendr works here :-)

    -Tor

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Dec 12, 2022 @ 08:48
    Matt Brailsford
    100

    Hi Tor,

    Yea, that's correct. The Product Calculator is mainly used as a friendly way of getting the price of a product to display on the front end, taking into account your tax settings.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft