Jump to content

Want to override reorder


zahid

Recommended Posts

On reorder an order i want to add some data to my custom table with that reorder cart id how to implement it. I have tried to override the following function in override/classes/order/orderController.php but it didn't worked. I am new to prestashop  any suggestions.

public function postProcess()
{
    parent::postProcess();

    if (Tools::isSubmit('submitReorder') && $id_order = (int) Tools::getValue('id_order')) {
[spam-filter]

 Note: I want when somebody click on reorder then reorder take place that is perfectly working but with that order cart_id i save some data in my custom table and with reorder cart_id i also to duplicate that data in that custom table.I don't know how to do that.

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