Jump to content

can not update address or select different address prestashop 1.7.7.4 under order


Eydolan

Recommended Posts

if I click on orders and try update or change the shipping address I get

 

Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "updateDeliveryAddressId" of class "Cart"." at /***/src/Adapter/Order/CommandHandler/ChangeOrderDeliveryAddressHandler.php line 80

error

Any one know why? I tried to fix it myself in php but failed.....

Link to comment
Share on other sites

note sure if the stack trace helps?

 

UndefinedMethodException

Symfony\Component\Debug\Exception\UndefinedMethodException: Attempted to call an undefined method named "updateDeliveryAddressId" of class "Cart". at src/Adapter/Order/CommandHandler/ChangeOrderDeliveryAddressHandler.php:80 at PrestaShop\PrestaShop\Adapter\Order\CommandHandler\ChangeOrderDeliveryAddressHandler->handle(object(ChangeOrderDeliveryAddressCommand)) (src/Adapter/Address/CommandHandler/EditOrderAddressHandler.php:101) at PrestaShop\PrestaShop\Adapter\Address\CommandHandler\EditOrderAddressHandler->handle(object(EditOrderAddressCommand)) (vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php:71) at League\Tactician\Handler\CommandHandlerMiddleware->execute(object(EditOrderAddressCommand), object(Closure)) (vendor/league/tactician/src/CommandBus.php:62) at League\Tactician\CommandBus->League\Tactician\{closure}(object(EditOrderAddressCommand)) (src/Core/CommandBus/Middleware/CommandRegisterMiddleware.php:79) at PrestaShop\PrestaShop\Core\CommandBus\Middleware\CommandRegisterMiddleware->execute(object(EditOrderAddressCommand), object(Closure)) (vendor/league/tactician/src/CommandBus.php:62) at League\Tactician\CommandBus->League\Tactician\{closure}(object(EditOrderAddressCommand)) (vendor/league/tactician/src/CommandBus.php:42) at League\Tactician\CommandBus->handle(object(EditOrderAddressCommand)) (src/Core/CommandBus/TacticianCommandBusAdapter.php:54) at PrestaShop\PrestaShop\Core\CommandBus\TacticianCommandBusAdapter->handle(object(EditOrderAddressCommand)) (src/Core/Form/IdentifiableObject/DataHandler/OrderAddressFormDataHandler.php:132) at PrestaShop\PrestaShop\Core\Form\IdentifiableObject\DataHandler\OrderAddressFormDataHandler->update(631, array('id_customer' => '111', 'customer_email' => '[email protected]', 'dni' => '', 'alias' => 'Dimpho', 'first_name' => 'name', 'last_name' => 'Mahlangu', 'company' => 'XXX, Shop 24', 'vat_number' => '', 'address1' => 'XXX street', 'address2' => 'XXX', 'city' => 'XXX', 'postcode' => '0472', 'id_country' => '30', 'id_state' => null, 'phone' => '000', 'phone_mobile' => '2323', 'other' => '', 'address_type' => 'delivery_address')) (src/Core/Form/IdentifiableObject/Handler/FormHandler.php:143) at PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler->handleFormUpdate(object(Form), 631) (src/Core/Form/IdentifiableObject/Handler/FormHandler.php:122) at PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler->handleForm(object(Form), 631) (src/Core/Form/IdentifiableObject/Handler/FormHandler.php:92) at PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler->handleFor(631, object(Form)) (src/PrestaShopBundle/Controller/Admin/Sell/Address/AddressController.php:457) at PrestaShopBundle\Controller\Admin\Sell\Address\AddressController->editOrderAddressAction(631, 'delivery_address', object(Request)) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false) (*****/index.php:82)

Link to comment
Share on other sites

Normally the first thing to do would be to check whether /classes/Cart.php is still there and that it isn't zero-length. This is the file that contains the function updateDeliveryAddressId() so you should check that it is still there.

Other than that I don't have ideas at the moment.

  • Thanks 1
Link to comment
Share on other sites

musicmaster many thanks

I managed to fix it.

If anyone got a same issue. the overwrite folder controllers so I got rid of the overwrites and it works, keep in mind if you have certain templates this might stop them to work. but its working so far my side

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...