anyhylus
anyhylus

Reputation: 25

Cannot edit order if payment method is cash on delivery in prestashop

I have been searching for an answer to this question for a few hours now, but I can't find anything relevant.

The problem is the following: If i make an order and I choose to pay with bankwire or check, then I can edit, delete and add products to that specific order. If I use cash on delivery or another module that does the same thing then the buttons for edit, delete and add are not there.

Can anyone help me with this problem? Or at least point me in the right direction? I'm all out of ideas.

Upvotes: 0

Views: 1748

Answers (1)

sadlyblue
sadlyblue

Reputation: 2987

When the payment method is cash on delivery it creates the order with a different order state (preparation in progress) than with bank wire (awaiting confirmation). The order state "preparation in progress", by default, sets the order as paid and/or as validated. When paid, it doesn't allow the order to be altered.

You have 2 solutions, either change the order state "preparation in progress" in backoffice to not set the order paid and not validated, or override the module cash on delivery to use a different order state when creating the order.

Upvotes: 1

Related Questions