Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

On Processed send an XML transaction.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-01-2009, 08:27 PM
 
mike5906 mike5906 is offline
 

Member
  
Join Date: Jun 2009
Posts: 18
 

Default 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?
__________________
Mike | X-Cart 4.2.1 | Ubuntu 64 Server
MurraySoft :: The Application Store╝ for DotNetNuke, SharePoint, Web Design Templates, X-Cart and more!
http://www.MurraySoft.com/
Reply With Quote
  #2  
Old 08-02-2009, 09:18 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default 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.
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
  #3  
Old 08-02-2009, 12:28 PM
 
mike5906 mike5906 is offline
 

Member
  
Join Date: Jun 2009
Posts: 18
 

Default 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.
__________________
Mike | X-Cart 4.2.1 | Ubuntu 64 Server
MurraySoft :: The Application Store╝ for DotNetNuke, SharePoint, Web Design Templates, X-Cart and more!
http://www.MurraySoft.com/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:19 PM.

   

 
X-Cart forums © 2001-2020