Skip to content

Lengow module not comptible with module "Order edit" (and possibily other modules that decorates the admin order controller) #31

@hugo-fasone

Description

@hugo-fasone

This module is not compatible with the popular module "Order edit" : https://addons.prestashop.com/en/order-management/18850-order-edit-change-and-modify-existing-order.html

Indeed when trying to view an order in admin, an error occurs. This comes from the fact that the Lengow module remaps to route for the viewAction of the admin order controller to Lengow's controller instead of decorating the controller https://devdocs.prestashop-project.org/8/modules/concepts/controllers/admin-controllers/override-decorate-controller/

The "Order Edit" module overrides the twig templates of the admin order controller, using a variable defined in the decoration of the controller by "Order Edit". But the Lengow module, by remaping the route, prevents the code from "Order Edit" to execute, leading to an error. This bug is may also occur for other modules that decorate the viewAction for the admin order controller.

The Lengow module should "decorate" the controller so that both controllers code are executed : https://devdocs.prestashop-project.org/8/modules/concepts/controllers/admin-controllers/override-decorate-controller/#decorate-the-controller

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions