16
How-to questions / Re: Is there any way for tax to be included in product price?
« on: October 11, 2023, 07:13:38 AM »
Hello andmoss123,
There are multiple aspects here and I try to understand what you ask.
I assume you want to enter price with the the tax and automatically recalculate to base price without tax.
Challenge is with multi regional stores, as tax class is connected to the customer's location (delivery address).
If your business is only in one location it will not be a problem, but we need to cover all the scenarios in the platform.
I think this can be solved with adding 2 extra fields. Price Including tax and tax class/value selection
After entering price with tax, base price will be calculated based on selected tax class/value
This can be done with the JavaScript on tax class/value selection event.
After base price is calculated and form is saved, the storefront will use base price with tax class appropriate to the location.
See similar form image from prestashop
Does this work or you looking for something different?
There are multiple aspects here and I try to understand what you ask.
I assume you want to enter price with the the tax and automatically recalculate to base price without tax.
Challenge is with multi regional stores, as tax class is connected to the customer's location (delivery address).
If your business is only in one location it will not be a problem, but we need to cover all the scenarios in the platform.
I think this can be solved with adding 2 extra fields. Price Including tax and tax class/value selection
After entering price with tax, base price will be calculated based on selected tax class/value
This can be done with the JavaScript on tax class/value selection event.
After base price is calculated and form is saved, the storefront will use base price with tax class appropriate to the location.
See similar form image from prestashop
Does this work or you looking for something different?