Calculation script
If you write and use your own calculation scripts, then you should always use only the price
variables. Use the price variables and the
TAXpercentage and
TAXincluded constants.
You can use the
local PHP variables
$calculated and
basket calculation example
use TYPO3\CMS\Core\Utility\GeneralUtility;
use JambageCom\TtProducts\Api\BasketApi;
$basketObj = GeneralUtility::makeInstance(Basket::class);
$itemArray = $basketObj->getItemArray();
Copied!
to make your own price calculations.
set calculationScript as EXT:my_extension/Classes/Utility/MyCalculations.php
10.calculationScript = EXT:my_extension/Classes/Utility/MyCalculations.php
Copied!