X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   On Processed send an XML transaction. (https://forum.x-cart.com/showthread.php?t=48950)

mike5906 08-01-2009 08:27 PM

On Processed send an XML transaction.
 
I want to a the ability to send an XML file to a provider once an order reaches the processed state (i.e., an XML file of their order details).

I'm having a little difficulty finding the section in the PHP to add this hook. Can anyone lend me a hint? ;-)

rogue 08-02-2009 09:18 AM

Re: On Processed send an XML transaction.
 
The email's (admin and provider) are sent in include/func/func.order.php (starting around line 869 in my version)

Looks like the same email template is used for both admin and provider emails. What you want to do is create a new template for the provider that builds the appropriate XML from the order info.

Then change the provider "send" so that it uses that email template for their email.

email templates are in skin1/mail.

mike5906 08-02-2009 12:28 PM

Re: On Processed send an XML transaction.
 
Right! Let me look at that. That sounds like a great place to hook in.

What I am going to do is POST an XML file to their server, not send an email, but the hook should work fine from that section of code.


All times are GMT -8. The time now is 01:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.