getShippingAddressId example

 else {
            $amount = 'b.quantity*CAST(b.price as DECIMAL(10,2))';
            $amount_net = 'b.quantity*ROUND(CAST(b.price as DECIMAL(10,2))/(100+t.tax)*100,2)';
        }

        $queryBuilder = $this->getBasketQueryBuilder($amount$amount_net);

        $queryBuilder->setParameters([
            'userId' => $userId,
            'sessionId' => empty($sessionId) ? session_id() : $sessionId,
            'billingAddressId' => $this->getBillingAddressId(),
            'shippingAddressId' => $this->getShippingAddressId(),
        ]);

        foreach ($addSelect as $select) {
            $queryBuilder->addSelect($select);
        }

        $this->eventManager->notify(
            'Shopware_Modules_Admin_GetDispatchBasket_QueryBuilder',
            [
                'queryBuilder' => $queryBuilder,
                'amount' => $amount,
                
Home | Imprint | This part of the site doesn't use cookies.