Sandy Grassineau Posted June 6 Share Posted June 6 Hello PrestaShop Community, I am currently developing a custom module for PrestaShop 1.8 and need some assistance with enabling the editing of a site assignment after an order has been placed. Specifically, I am trying to call a function saveOrderSite($orderId, $siteId) via an AJAX request in my AdminSiteAjaxController. Below is an overview of my situation: Background I have created a module named SiteManagement that allows managing and assigning orders to specific sites. The module includes various hooks and functionalities, such as displaying site selection during checkout and saving site data related to orders. Objective I want to allow the editing of the site assignment for an order via the back office. To achieve this, I display a form using the hook hookDisplayAdminOrderTabContent. The form is then supposed to trigger an AJAX request to the AdminSiteAjaxController to call the saveOrderSite($orderId, $siteId) method and update the order’s site assignment. Request for Help Could anyone guide me on the following: • Ensuring the saveOrderSite method is callable within the controller. Any help or pointers would be greatly appreciated! Thank you in advance for your assistance. Best regards, sitemanagement.zip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now