getMaxTax example

if (!$basketDiscount) {
            return;
        }

        $discount = $basketAmount / 100 * $basketDiscount;
        $discount *= -1;
        $discount = round($discount, 2);

        $taxMode = $this->config->get('sTAXAUTOMODE');
        if (!empty($taxMode)) {
            $tax = $this->getMaxTax();
        } else {
            $tax = $this->config->get('sDISCOUNTTAX');
        }

        if (!$tax) {
            $tax = 19;
        }

        if (empty($this->sSYSTEM->sUSERGROUPDATA['tax']) && $this->sSYSTEM->sUSERGROUPDATA['id']) {
            $discountNet = $discount;
        } else {
            
'amount' => $amount,
                'amount_net' => $amount_net,
            ]
        );

        $basket = $queryBuilder->execute()->fetch(PDO::FETCH_ASSOC);

        if ($basket === false) {
            return false;
        }

        $basket['max_tax'] = $this->moduleManager->Basket()->getMaxTax();

        $postPaymentId = $this->front->Request()->getPost('sPayment');
        $sessionPaymentId = $this->session->offsetGet('sPaymentID');

        if (!empty($paymentID)) {
            $paymentID = (int) $paymentID;
        } elseif (!empty($userId)) {
            $user = $this->sGetUserData() ?: [];
            $paymentID = (int) $user['additional']['payment']['id'];
        } elseif (!empty($postPaymentId)) {
            $paymentID = (int) $postPaymentId;
        }

    public function getTaxRates($basket)
    {
        return $this->taxAggregator->taxSum($basket(float) $this->basket->getMaxTax());
    }

    /** * @deprecated in 5.6, will be protected in 5.8 * * Get similar shown products to display in ajax add dialog * * @param int $articleID * * @return array<array<string, mixed>> */
    
Home | Imprint | This part of the site doesn't use cookies.