Post by Silencer » Wed Apr 07, 2021 8:53 pm

In administration I am sending ID of order to my custom php file with

Code: Select all

$.get("/test.php", {id: id}...
Now inside test.php I need to get all data of that order to process it and return correct result to admin, what's best way to get order details in that file??

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by straightlight » Wed Apr 07, 2021 9:35 pm

Silencer wrote:
Wed Apr 07, 2021 8:53 pm
In administration I am sending ID of order to my custom php file with

Code: Select all

$.get("/test.php", {id: id}...
Now inside test.php I need to get all data of that order to process it and return correct result to admin, what's best way to get order details in that file??
OC version. Vague request.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Silencer » Thu Apr 08, 2021 12:21 am

OC version 2.1.0.1.

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by straightlight » Thu Apr 08, 2021 10:17 am

See this post as an e.g: viewtopic.php?f=202&t=220903#p805005 .

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Thu Apr 08, 2021 6:46 pm

Silencer wrote:
Wed Apr 07, 2021 8:53 pm
In administration I am sending ID of order to my custom php file with

Code: Select all

$.get("/test.php", {id: id}...
Now inside test.php I need to get all data of that order to process it and return correct result to admin, what's best way to get order details in that file??
Yeah, you're not going to get any help with a question like that.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Silencer » Sat Apr 10, 2021 12:27 am

I don't know how to ask more clearly, but I just used my own querys now (instead of already build in ones), so all fine.

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by straightlight » Sat Apr 10, 2021 1:45 am

Silencer wrote:
Sat Apr 10, 2021 12:27 am
I don't know how to ask more clearly, but I just used my own querys now (instead of already build in ones), so all fine.
Great. Now that the issue has been solved, please add [SOLVED] at the beginning of the subject line on your first post.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 8 guests