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?
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.
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
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
is working on a reply...