Hello my friends;
i have a trouble about when new order comes to datebase ,i want to hear a ring bell,
I need to write a ajax code in admin\controller\commen\header.php ,and i have written javascript which has a sound.
how can i implement ,write this code.
Did you write this code.
Please give some codes or idea.
thank you for all efforts
i have a trouble about when new order comes to datebase ,i want to hear a ring bell,
I need to write a ajax code in admin\controller\commen\header.php ,and i have written javascript which has a sound.
how can i implement ,write this code.
Did you write this code.
Please give some codes or idea.
thank you for all efforts
Hi,
You can do it this way:
If you want to do this without a page refresh, use javascript setInterval function.
Write an AJAX request to select the last order_id in the database. Save it as a variable and then compare the last order in the database with the stored order in the next request
If they were different, run the sound.
You can do it this way:
If you want to do this without a page refresh, use javascript setInterval function.
Write an AJAX request to select the last order_id in the database. Save it as a variable and then compare the last order in the database with the stored order in the next request
If they were different, run the sound.
DigitCart wrote: ↑Thu Sep 07, 2017 5:27 pmHi,
You can do it this way:
If you want to do this without a page refresh, use javascript setInterval function.
Write an AJAX request to select the last order_id in the database. Save it as a variable and then compare the last order in the database with the stored order in the next request
If they were different, run the sound.
Can you write this code, i coud not write properly
You're missing the point here. Nobody will "send you the codes". This is a custom job, for which you will pave to pay. This is what "commercial" mean.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
i did myself, nobody has to pay money .This is so easy...
Well, but why then not publish it here, so others could profit from your knowledge as well ?
Ernie
Well, but why then not publish it here, so others could profit from your knowledge as well ?
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 7 guests