Tax and Total in Basket Details

Help for integrating the Laravel package
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!
User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Tax and Total in Basket Details

Post by whatdaro » 22 Sep 2021, 04:37

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.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Tax and Total in Basket Details

Post by aimeos » 23 Sep 2021, 13:52

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.
There are several strings that contains "VAT" and you have to change them all.
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.
By default, prices are gross prices already including the tax. If you need net prices, add this setting:
mshop/price/taxflag = false
whatdaro wrote: 22 Sep 2021, 04:37 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],
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, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: Tax and Total in Basket Details

Post by whatdaro » 29 Sep 2021, 06:09

aimeos wrote: 23 Sep 2021, 13:52 There are several strings that contains "VAT" and you have to change them all.
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.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Tax and Total in Basket Details

Post by aimeos » 30 Sep 2021, 07:44

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, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: Tax and Total in Basket Details

Post by whatdaro » 30 Sep 2021, 12:18

aimeos wrote: 30 Sep 2021, 07:44 No, use your preferred IDE or text editor to search for all occurences of "VAT".
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

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Tax and Total in Basket Details

Post by aimeos » 01 Oct 2021, 15:05

You've most likely missed that one:
https://github.com/aimeos/ai-client-htm ... po#L20-L22
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: Tax and Total in Basket Details

Post by whatdaro » 03 Oct 2021, 12:13

aimeos wrote: 01 Oct 2021, 15:05 You've most likely missed that one:
https://github.com/aimeos/ai-client-htm ... po#L20-L22
That setting is for something called Tax, I'm trying to change VAT to GST
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?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Tax and Total in Basket Details

Post by aimeos » 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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: Tax and Total in Basket Details

Post by whatdaro » 05 Oct 2021, 06:14

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
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.
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?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Tax and Total in Basket Details

Post by aimeos » 07 Oct 2021, 07:37

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, Image give us a star

Post Reply