Jump to content

Is there a way to programmatically open and close imported orders?


Recommended Posts

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

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

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...