blauwfruit / PrestaShop-Order-Reference

PrestaShop module that customizes the order reference of an order.
24 stars 6 forks source link

fix: payment reference is not changed #5

Closed ghost closed 3 years ago

ghost commented 3 years ago

With the current hooks the order reference is not changed when we creating a order payment transaction. If we change the order reference after the order is created with the actionObjectOrderAddAfter hook, the order payment transaction is also created with the new order reference.

This hooks are not needed anymore and are unregistered in the upgrade file:

This also fix #2

muyncky commented 3 years ago

@gett-thijssimonis awesome PR! Thanks a lot!

In the configuration page there is still the check for the module position in actionValidateOrder, this is obsolete now. If you like you can create another pull request for this. If not, I will remove it and commit this.

ghost commented 3 years ago

If you like you can create another pull request for this. If not, I will remove it and commit this

@muyncky see #6