Post by ysfagr12 » Thu Sep 07, 2017 4:24 pm

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

Newbie

Posts

Joined
Mon Aug 14, 2017 4:10 pm

Post by DigitCart » Thu Sep 07, 2017 5:27 pm

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.

My Extensions / DigitCart


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by ysfagr12 » Mon Sep 11, 2017 2:22 pm

DigitCart wrote:
Thu Sep 07, 2017 5:27 pm
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.

Can you write this code, i coud not write properly

Newbie

Posts

Joined
Mon Aug 14, 2017 4:10 pm

Post by DigitCart » Mon Sep 11, 2017 6:24 pm

Yes, I can write it as a commercial extension.

My Extensions / DigitCart


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by ysfagr12 » Tue Sep 12, 2017 4:38 pm

DigitCart wrote:
Mon Sep 11, 2017 6:24 pm
Yes, I can write it as a commercial extension.
Well would you like to send these codes ?

Newbie

Posts

Joined
Mon Aug 14, 2017 4:10 pm

Post by thekrotek » Tue Sep 12, 2017 5:02 pm

ysfagr12 wrote:
Tue Sep 12, 2017 4:38 pm
Well would you like to send these codes ?
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 support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by DigitCart » Sat Sep 16, 2017 6:24 pm

Hi,
here it is:
Admin Ajax Notice

My Extensions / DigitCart


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by ysfagr12 » Mon Sep 18, 2017 6:31 pm

DigitCart wrote:
Sat Sep 16, 2017 6:24 pm
Hi,
here it is:
Admin Ajax Notice
i did myself, nobody has to pay money .This is so easy ;D

Newbie

Posts

Joined
Mon Aug 14, 2017 4:10 pm

Post by DigitCart » Mon Sep 18, 2017 7:00 pm

ysfagr12 wrote:
Mon Sep 18, 2017 6:31 pm
DigitCart wrote:
Sat Sep 16, 2017 6:24 pm
Hi,
here it is:
Admin Ajax Notice
i did myself, nobody has to pay money .This is so easy ;D

Glad to hear that.

My Extensions / DigitCart


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by IP_CAM » Tue Sep 19, 2017 2:29 am

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

Ernie's OpenCart v.1.5.6.5 LIGHT + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.evelo.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 5 guests