Custom Field In Api For Order Creation

We have a custom field which we store while creating an order in the order_table called ext_id

Now we want to use the API to create orders and want to pass this field as well to the API params so that it gets saved as well . Which code will be required to modify, need some pointers .

We have a custom field which we store while creating an order in the order_table called ext_id

Now we want to use the API to create orders and want to pass this field as well to the API params so that it gets saved as well . Which code will be required to modify, need some pointers .

It is not clear what table is used. Do you mean cscart_orders ? If yes, just add the ext_id parameter to the request.

Then open the app/Tygh/Api/Entities/Orders.php file and add

$cart['ext_id'] = $params['ext_id'];

after the following line:

$cart['payment_id'] = $params['payment_id'];

It is not clear what table is used. Do you mean cscart_orders ? If yes, just add the ext_id parameter to the request.

Then open the app/Tygh/Api/Entities/Orders.php file and add

$cart['ext_id'] = $params['ext_id'];

after the following line:

$cart['payment_id'] = $params['payment_id'];

Thanks and yes you are right in understanding the problem.

Hope this solution will help you. Have a great weekend!