source/Application/Component/UserComponent.php
public function deleteShippingAddress()
    {
        $request = oxNew(Request::class);
        $addressId = $request->getRequestParameter('oxaddressid');

        $address = oxNew(Address::class);
        $address->load($addressId);
        if ($this->canUserDeleteShippingAddress($address) && $this->getSession()->checkSessionChallenge()) {
            $address->delete($addressId);
        }
    }
public function deleteShippingAddress()
    {
        $request = oxNew(Request::class);
        $addressId = $request->getRequestParameter('oxaddressid');

        $address = oxNew(Address::class);
        $address->load($addressId);
        if ($this->canUserDeleteShippingAddress($address) && $this->getSession()->checkSessionChallenge()) {
            $address->delete($addressId);
        }
    }
public function deleteShippingAddress ( ) { $ request = oxNew ( Request :: class ) ; $ addressId = $ request -> getRequestParameter ( 'oxaddressid' ) ; $ address = oxNew ( Address :: class ) ; $ address -> load ( $ addressId ) ; if ( $ this -> canUserDeleteShippingAddress ( $ address ) && $ this -> getSession ( ) -> checkSessionChallenge ( ) ) { $ address -> delete ( $ addressId ) ; } }
Deletes user shipping address.
Deletes user shipping address .