Can you please make sure that you are getting empty $order? – poojan sharma Jul 3 '19 at 4:43 · yes my code interrupts at exit() it means if condtion is true – ...
Step 1: Create an xml file : routename_controllername_actionname.xml to call
phtml file
sales_order_place_after did not called every time. So , my suggestion to use checkout_submit_all_after event which better than instead of ...
When you fill out details in a form and click on a Submit button, the data has to be stored in a table. To do that, you will need to create Submit.php ...
The following save-function is in one file: ... I build this "save-function" to save each ordered product in a custom table.
Let put this content for this file to create above table:
those 2 textbox created in html file, path is
I have to save some data to another table.
for save custom field value in database table using magento 2.
Let put this content for this file to create above table: