1 of these has a ProductCalculatorContext parameter, just wondering when that might be used. I'm implementing a 3rd party tax api and just wondering which one I should be overriding. Thanks
Actually a better question is, which Calculator should I be implementing. I'm only going to show tax during checked, after a delivery address has been choosen. I won't show tax per product or for shipping. The tax will be a total tax value based on the origin (of the store), customer delivery address, and product value, product quantity.
I see that OrderCalculator doesn't have a method for calucating the tax for the entire order.
You'll want to implement an OrderLineCalculator really. The ProductCalculator or more used for calculating the price of a product prior to adding it to an order. Once it's in an order, you'll want the OrderLineCalculator.
RE which method to override, you'll want the one with the context arg.
ProductCalculator
Hi Matt
1 of these has a ProductCalculatorContext parameter, just wondering when that might be used. I'm implementing a 3rd party tax api and just wondering which one I should be overriding. Thanks
Actually a better question is, which Calculator should I be implementing. I'm only going to show tax during checked, after a delivery address has been choosen. I won't show tax per product or for shipping. The tax will be a total tax value based on the origin (of the store), customer delivery address, and product value, product quantity.
I see that OrderCalculator doesn't have a method for calucating the tax for the entire order.
Actually origin/destination will vary from state to state.
Hey Sean
You'll want to implement an OrderLineCalculator really. The ProductCalculator or more used for calculating the price of a product prior to adding it to an order. Once it's in an order, you'll want the OrderLineCalculator.
RE which method to override, you'll want the one with the
context
arg.is working on a reply...