Do you know anything about plugin dev  ?

Question

eitan
whatws up

eitan
Do you know anything about plugin dev  ?

WordPress Agent
May I know your Website Address Please ?

eitan
http://***********
are you a chat bot  ?

WordPress Agent
We are human beings

eitan
thats cool
well
I need some help with plugin development
are you the right guy ?

WordPress Agent
Yes

eitan
cool

WordPress Agent
May i know what type of plugin you want?

eitan
I created a metabox inside woocommerce order
in the admin page
I need to make ajax call from this metabox
but everytime I am making the ajax call – for some reason the page is getting refreshed and I get- order saved. message , like the order is upldaing everytime I am sending an ajax call
I tried also creating a form – same problem

WordPress Agent
Yes i can understand your issue
You want that if anyone fill the form ,after submit form your page will not be refreshed
Which is the main work of ajax right?
For your orders of woocommerce?

eitan
yes

WordPress Agent
Ok We help you

eitan
cool

WordPress Agent
Tell me about your issue because there is no any product in your site only one is present with the name of test ?
Are you talking about http://*************/checkout this page ?
After submit form it will show you message for successful order right?

eitan
no
I am talking about the order admin page
inside the order admin page (an existing order0

WordPress Agent
yes it comes after place order from checkout page

eitan
no
again in the edit order page inisde the ADMin panel\
wp-admin ?

WordPress Agent
Are you trying to create orders from wp-admin page under WooCommerce ?

eitan
no
I want to edit an existing order
and add some meta data to it
from the admin panel

WordPress Agent
ok
And after add metadata what you want to do?

eitan
the problem that I need to get user input. and in order to save this user input I need to use a form or an ajax call. but every-time I am submitting the data from the (using admin-ajax.php) the whole page is refreshed

WordPress Agent
Ok Please wait
Ok we can do it

eitan
thank you!

0
Beth 8 years 0 Answers 143 views 0

About Beth

Leave an answer

Sorry this question is a special, The admin must answer first .