- Issue created by @chrisscrumping
- 🇮🇱Israel jsacksick
Oh do you mean the equivalent of the "Calculated" price formatter?
- 🇬🇧United Kingdom chrisscrumping
Yeah exactly, the price with promotions etc applied
- 🇮🇳India shabana.navas
Any momentum on this? We're looking to add the same to take into account taxes. So, something like a new calculated price field where the user can configure on a settings page which adjustment types they want to be added to the calculated price, similar to how we're doing it on the Manage Display for each variation type ie:
Apply fees to the calculated price
Apply promotions to the calculated price
Apply taxes to the calculated price
Apply shipping costs to the calculated price
Apply shipping promotions to the calculated price - 🇬🇧United Kingdom chrisscrumping
I ended up switching out the JSON:API and this module and using my own endpoint as I only really needed a few bits of data and JSON:API was overkill in my case.
- 🇮🇳India shabana.navas
@chrisscrumping I see, thanks. In that case, I think we will work on creating a new patch that adds the `calculated_price` field similar to how we currently have the `resolved_price` field in the module.
- 🇮🇳India shabana.navas
Adding patch that creates a `calculated_price` field similar to the `resolved_price`. A new Settings Form has been created that gives admins the option to select which adjustment types to include in the Calculated Price that will be displayed in the API response.
Still need to add tests.