Jump to content

i want to develope an module to export orders in xml when i hit to a specific url


sourabh

Recommended Posts

Hi @sourabh,

What do you mean by "whrn I hit a specific url"? is that meaning when you get a url in the back end you want to start downloading that xml file? if so, you need  to hook displayBackOfficeHeader hook and check for the url you want, if it's the right url then you can start your xml file procedures.

I hope I answered you, let me know if I can help out ;)

 

Cheers

 

 

 

Link to comment
Share on other sites

17 hours ago, phpist said:

Hi @sourabh,

What do you mean by "whrn I hit a specific url"? is that meaning when you get a url in the back end you want to start downloading that xml file? if so, you need  to hook displayBackOfficeHeader hook and check for the url you want, if it's the right url then you can start your xml file procedures.

I hope I answered you, let me know if I can help out ;)

 

Cheers

 

 

 

first thank you for your reply so quickly..actually i want create a module which will return xml response when i call a url with some specific parameters

Link to comment
Share on other sites

Actually we need xml response in different format and this module will be work as medium between presta shops and our application.    when we hit endpoint of any store url that will give response of xml in expected format is that possible we can create custom web service through module in presta 1.7 ?

 

really thank you for your support

Link to comment
Share on other sites

I see what you're looking for @sourabh I don't think a webservice is needed in this case. What you need is to create a front controller that will have this business of creating the xml and displaying as you like, you can then provide the link of this controller of your module to be accessed by your application.

That simple ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...