Tax and Total in Basket Details
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Tax and Total in Basket Details
Hi,
I've got a few questions regarding the tax and totals.
1: I'm trying to change any thing that says VAT to say TAX.
I was able to change it for the product details by adding the string from the .pop file into the config/shop.php translater that works fine, but it does not affect the Basket Details summary it still says VAT there.
2: The VAT/TAX calculation is off or taking some other value into account even in the sample shop with demo products the total is not correct. e.g. demo article 1, blue. price is €140.00, vat = 10%. But in the basket the vat calculated is €12.73, instead of €14.
I've added completely new products with different currencies but the tax is always out not exact.
3: I would like to know how I would be able to add the actual full total to the basket i.e. price is €140, VAT = €14... then display the total €154 in the basket summary before the client clicks on [Checkou],
thanks.
I've got a few questions regarding the tax and totals.
1: I'm trying to change any thing that says VAT to say TAX.
I was able to change it for the product details by adding the string from the .pop file into the config/shop.php translater that works fine, but it does not affect the Basket Details summary it still says VAT there.
2: The VAT/TAX calculation is off or taking some other value into account even in the sample shop with demo products the total is not correct. e.g. demo article 1, blue. price is €140.00, vat = 10%. But in the basket the vat calculated is €12.73, instead of €14.
I've added completely new products with different currencies but the tax is always out not exact.
3: I would like to know how I would be able to add the actual full total to the basket i.e. price is €140, VAT = €14... then display the total €154 in the basket summary before the client clicks on [Checkou],
thanks.
Re: Tax and Total in Basket Details
There are several strings that contains "VAT" and you have to change them all.whatdaro wrote: ↑22 Sep 2021, 04:37 1: I'm trying to change any thing that says VAT to say TAX.
I was able to change it for the product details by adding the string from the .pop file into the config/shop.php translater that works fine, but it does not affect the Basket Details summary it still says VAT there.
By default, prices are gross prices already including the tax. If you need net prices, add this setting:whatdaro wrote: ↑22 Sep 2021, 04:37 2: The VAT/TAX calculation is off or taking some other value into account even in the sample shop with demo products the total is not correct. e.g. demo article 1, blue. price is €140.00, vat = 10%. But in the basket the vat calculated is €12.73, instead of €14.
I've added completely new products with different currencies but the tax is always out not exact.
mshop/price/taxflag = false
Use gross prices (as configured by default) for all prices you add to products, i.e.:
price value: €154
tax rate: 10%
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
Re: Tax and Total in Basket Details
OK, however is there documentation of all those locations? I've searched all text files in the project and I believe I've changed all the ones I could grep out but they don't change that one in the basket summary.
Re: Tax and Total in Basket Details
No, use your preferred IDE or text editor to search for all occurences of "VAT".
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
Re: Tax and Total in Basket Details
I've used both, the point is not which editor I need to use.
The point is I can not find the "VAT" instance that is used for the basket summary, could you please point me to the documentation where I need to change that, thanks
Re: Tax and Total in Basket Details
You've most likely missed that one:
https://github.com/aimeos/ai-client-htm ... po#L20-L22
https://github.com/aimeos/ai-client-htm ... po#L20-L22
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
Re: Tax and Total in Basket Details
That setting is for something called Tax, I'm trying to change VAT to GSTaimeos wrote: ↑01 Oct 2021, 15:05 You've most likely missed that one:
https://github.com/aimeos/ai-client-htm ... po#L20-L22
also that en.po file looks nothing like the default fresh install I have.
none of the below are included in my default en.po file
#. Tax name
msgid "tax"
msgstr "tax"
#. PST tax name
msgid "taxpst"
msgstr "PST"
#. GST tax name
msgid "taxgst"
msgstr "GST"
#. Price type default
msgid "price:default"
msgstr "%1$s %2$s"
#. Stock type
msgid "stocktype:default"
msgstr " "
Is there no documentation on how to do a simple change from VAT to GST?
Re: Tax and Total in Basket Details
These are all occurrences of "VAT" in the HTML client:
https://github.com/aimeos/ai-client-htm ... &p=1&q=VAT
https://github.com/aimeos/ai-client-htm ... &p=1&q=VAT
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
Re: Tax and Total in Basket Details
I've made changes to all VAT instances in the files you have provided however still does not change the VAT that is displayed in the Basket details, the checkout page or the final invoice page.aimeos wrote: ↑04 Oct 2021, 06:57 These are all occurrences of "VAT" in the HTML client:
https://github.com/aimeos/ai-client-htm ... &p=1&q=VAT
They all show VAT instead of GST.
This value does not appear to be coming from a template or the shop.php config file, is it derived logically via .js script on the fly?
Re: Tax and Total in Basket Details
These settings in the ./config/shop.php change all occurences of "VAT" and "tax" to "GST":
Code: Select all
'i18n' => [
'en' => [
'client' => [
'Incl. %1$s%% VAT' => ['Incl. %1$s%% GST'],
'+ %1$s%% VAT' => ['+ %1$s%% GST'],
],
'client/code' => [
'tax' => ['GST'],
]
]
],
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