Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2134 by AndyH
30 Nov 2015, 14:38
Hello aimeos team,

I'm creating an B2B shop where the prices on product detail pages should be shown without Value Added Taxes (which is common in B2B).

The current hint "Incl. 19% VAT" should be replaced by "plus VAT". I assume this can be done by overriding the client/html templates.

Where I have no idea how to start is how should the VAT be added to the Sub-total in the basket. Is there allready a configuration available in aimeos or is there a best practice?

Thank you again for your help!

Best wishes
Andreas
#2135 by aimeos
30 Nov 2015, 15:14
AndyH wrote:The current hint "Incl. 19% VAT" should be replaced by "plus VAT". I assume this can be done by overriding the client/html templates.


It's much easier! This string is part of the translation and you can change it by overwriting it in TypoScript:
https://aimeos.org/docs/TYPO3/Overwrite_translations

The translation domain is "client/html" and the string is "Incl. %1$s%% VAT" (https://github.com/aimeos/aimeos-core/blob/master/client/html/templates/common/partials/price-default.php#L26)
#2141 by aimeos
30 Nov 2015, 17:10
AndyH wrote:Do you have also a tip for me how to do the calculation in the basket?


Unfortunately, that's not as easy as the previous question.

The good thing is the tax calculation is done only in one place:
https://github.com/aimeos/aimeos-core/blob/master/client/html/templates/common/summary/detail-body-default.php

But the main problem is the payment. In your own country, your customer has to pay the price including VAT even for B2B, customers from other countries don't. There's no single solution that handles all variations (incl. mixed B2B+B2C) perfectly yet.
#2161 by aimeos
05 Dec 2015, 11:40
marksyl wrote:
Code: Select all plugin.tx_aimeos.settings.i18n.en.0 {
      domain = client/html
      string = taxrate
      trans =Incl.  VAT
    }



No, the string needs to be the original value "Incl. %1$s%% VAT":
Code: Select all plugin.tx_aimeos.settings.i18n.en.0 {
    domain = client/html
    string = Incl. %1$s%% VAT
    trans = plus VAT
}