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

Invoke API

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-13-2013, 07:54 AM
 
fwm fwm is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 78
 

Default Invoke API

Hi All,

I was wondering is there a way, when an order is placed to identify the products in that order belonging to a specific provider, then add these products only to an array and then call a php function so that I can notify them via their own API?

If noone knows how, then perhaps you could tell me where I would invoke call the funcition. Where is the order actually processed?

Thanks,
FWM.
__________________
X-Cart 4.1.9
X-Cart 4.4.1
X-Cart Platinum 4.6.1
Reply With Quote
  #2  
Old 11-13-2013, 09:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Invoke API

func.order.php - func_place_order. There is a code already that deals with providers
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-13-2013, 11:28 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Invoke API

Quote:
Originally Posted by fwm
If noone knows how, then perhaps you could tell me where I would invoke call the funcition. Where is the order actually processed?
I believe Steve is spot on about where to start, but if you do need to know when an order is "processed" and take some action then look again in include/func/func.order.php for function func_process_order. This runs when an orders status is set to "processed", in other words "paid for".
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #4  
Old 11-13-2013, 12:37 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Invoke API

Quote:
Originally Posted by fwm
Hi All,

I was wondering is there a way, when an order is placed ....

It is being placed in func_place_order regardless of anything. This is one of the most weak places in the cart logic when order is created in XC before it actually exists, inventory is modified, special offers applied, points given... you name it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-14-2013, 06:08 AM
  rogue's Avatar 
rogue rogue is offline
 

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

Default Re: Invoke API

There is no function to send an order to a supplier. For that you'll need custom code. Just so happens that I sell the code to do this. Contact me at the email below if you're interested.
__________________
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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:39 AM.

   

 
X-Cart forums © 2001-2020