Multiple Tax Fields in Prices Section
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Multiple Tax Fields in Prices Section
Hi,
(This might be a development request - if I'm posting in the wrong area, sorry, please direct me to the proper channel(s).)
Here in Canada we have 2 taxes - federal and provincial - and businesses are required to clearly indicate/separate the two. Now, Aimeos' "Products > Prices" section only has "tax rate in %" (i.e. 1 total amount for tax). Is it possible to have "tax 1 rate in % ... tax 2 rate in % ..." etc.?
Thanks!
-Scott.
(This might be a development request - if I'm posting in the wrong area, sorry, please direct me to the proper channel(s).)
Here in Canada we have 2 taxes - federal and provincial - and businesses are required to clearly indicate/separate the two. Now, Aimeos' "Products > Prices" section only has "tax rate in %" (i.e. 1 total amount for tax). Is it possible to have "tax 1 rate in % ... tax 2 rate in % ..." etc.?
Thanks!
-Scott.
Re: Multiple Tax Fields in Prices Section
Is it only the second tax rate that must be additionally shown or is the second tax rate required for calculation too?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Multiple Tax Fields in Prices Section
Good question.
Ideally, it would be nice if it was both shown and calculated. However, I guess we could show them (for example, GST = 5%, PST = 6%) but use the total tax rate (11%) for calculations.
Having said that, what do you recommend?
-S.
Ideally, it would be nice if it was both shown and calculated. However, I guess we could show them (for example, GST = 5%, PST = 6%) but use the total tax rate (11%) for calculations.
Having said that, what do you recommend?
-S.
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Multiple Tax Fields in Prices Section
Update:
Tax people say it must be shown: GST is 5% and amounts to $x, PST is 6% and amounts to $y.
Tax people say it must be shown: GST is 5% and amounts to $x, PST is 6% and amounts to $y.
Re: Multiple Tax Fields in Prices Section
OK, this is going to be a bit of work, maybe you can help
First of all, we will implement properties for price items so tax rates for different purposes can be stored. Afterwards, we have to adapt the frontend and the price calculation and there we would need a bit of help from you.
First of all, we will implement properties for price items so tax rates for different purposes can be stored. Afterwards, we have to adapt the frontend and the price calculation and there we would need a bit of help from you.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Multiple Tax Fields in Prices Section
Happy to help in any way I can!
Re: Multiple Tax Fields in Prices Section
It's now possible to store multiple tax rates as price properties in dev-master. Next is price calculation and displaying in the frontend. Maybe you can help in the later part?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Multiple Tax Fields in Prices Section
Wow, that was fast!
Anything I can do to help I will. What do you need to me do?
Anything I can do to help I will. What do you need to me do?
Re: Multiple Tax Fields in Prices Section
Can you please create a PR for aimeos/ai-client-html that renders the tax rates in the price partial, basket and checkout summary? There's now a $priceItem->getTaxRates() method available that returns all tax rates as array with the tax types as key so they can be translated e.g. from "taxrate-pst" to "PST 5%".
You can add arbitrary tax rates as price properties to price items by creating new price property types that begin with "taxrate" (currently, "taxrate-local" has beed defined).
You can add arbitrary tax rates as price properties to price items by creating new price property types that begin with "taxrate" (currently, "taxrate-local" has beed defined).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Multiple Tax Fields in Prices Section
Hi,
While I'm certainly willing to do that, I'm embarrassed to admit that I don't know what you're talking about. I don't know the blueprint of the aimeos file structure (I've only been a user for a couple weeks, and FAR from a "under the hood" developer) - so I don't even know where to find the file/function you've mentioned let alone connect it/them to other functions/files ... and I don't know what a PR is ... :-/
-S.
While I'm certainly willing to do that, I'm embarrassed to admit that I don't know what you're talking about. I don't know the blueprint of the aimeos file structure (I've only been a user for a couple weeks, and FAR from a "under the hood" developer) - so I don't even know where to find the file/function you've mentioned let alone connect it/them to other functions/files ... and I don't know what a PR is ... :-/
-S.