woodnook Posted July 25, 2022 Share Posted July 25, 2022 I'm using a 3rd party tool to import orders from other channels into Prestashop. The problem is that although the orders are imported, the order reference isn't generated. If I open and close an order then the order reference is then created. Buts that's an admin process that shouldn't be needed. I have contacted the software supplier for support but I wondered if anyone had any suggestions for creating an automated workaround. For example would it be possible to create a database trigger to update the order reference? Link to comment Share on other sites More sharing options...
Ali Samie Posted July 25, 2022 Share Posted July 25, 2022 I am sure that the import data needs to have the order reference, otherwise how could any one map orders between the two systems? It is better to find out WHY it does not have order reference? Link to comment Share on other sites More sharing options...
Ali Samie Posted July 25, 2022 Share Posted July 25, 2022 But a simple workaround is to set order refrence before or after the order is being created. You can use these hooks, actionObjectOrderAddBefore or actionObjectOrderAddAfter. Just create a dummy module and do the rest. Link to comment Share on other sites More sharing options...
woodnook Posted July 27, 2022 Author Share Posted July 27, 2022 I don't know the specifics of how this 3rd party tool is working. The source has an order ref. and when importing it generates a prestashop order ID but not the prestashop order Reference. Otherwise the order is imported and is ok. If I open or resave the prestashop order status the prestashop order reference is generated. I suspect the import tool is bypassing the the normal prestashop order process that uses the cart. I need a way of post processing the import to open and close each order or reset the order status I'm not sure how using a dummy module would work 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