How manage Magento orders from Drupal ?

mtopolov's picture

Big problem we're facing right now is that Magento have no core API for managing orders. Is it not possible also to set up any SSO solution to avoid Drupal / Magento double login. Any ideas or suggestions ?

We're actually planning to write some modules for Magento, but if you have quicker solution, ... :)

Groups:
Login to post comments

Not sure mate, I have just

Kezoon - Sat, 2009-01-24 11:32

Not sure mate, I have just started working with Magento though and think its great. Only problem is the OSL 3.0 licence.


Core API

gamaroso's picture
gamaroso - Thu, 2009-01-29 15:07

The core API does have Order, Shipment, and Invoice calls. You can find the documentation starting here:
http://www.magentocommerce.com/wiki/doc/webservices-api/api#order_api

Is there something specific you think it missing from those functions?


Hi all update on this thread

mtopolov's picture
mtopolov - Fri, 2009-02-13 00:32

Hi all !

So

@gamaroso :

Yes the main problem is that it is impossible to create new orders trough the API calls. It is possible to cancel, list or retrieve details about an order but not to create new orders. What we're doing right now is following :

  1. Add support of users management on Magento when an update on Drupal users occurs (create/update/delete)
  2. We add extra API on Magento to :
    • create a session for a givven user and get it back in Drupal
    • add/remove items to the cart and retrieve cart's price
    • create an order from the cart
    • retrieve all available data about paiement gateway and provide those data inside a drupal hook. This last point is the most tricky, the idea is that we'll need to port any new paiement gateway created on magento to it's Drupal version. But I see no other way.... Any ideas ?

So our goal is to switch off totally Magento's Front office, keeping whole power of magento's back (Promotions, catalogue & stocks management). From installation point of view users will have to follow these steps :

  • Install a Magento
  • Install our Magento modules
  • Install a set of our Drupal modules
  • Setup connectivity
  • Add some theme for our modules (mainly for cart management)

There will be, for sure some latency because of adding an extra layer between the end-user and magento, but in fact it should be ok as global load on magento server will be much lighter, as main charge will be supported by Drupal side.

I'll keep you informed. We should publish everything near June or July.

Maxime TOPOLOV
Adyax / http://www.adyax.com
+33 6 42 77 11 87


Did you implement "sales_order.create" custom API?

samurai_projects - Fri, 2009-05-15 21:17

Hi Maxime,

We need the same custom API? Did you implement it and would like to share?

Pls, let me know how you'd like to provide this solution.

Thanks much.

Best,

Carlos Rocha
Samurai
Skype ID rocha_samurai


soon ready

Yann P - Fri, 2009-05-15 22:20

Hi
I am Maxim's partner and I am happy to announce you that after few month of work, magento api is soon finished (question of weeks now)
Let me know what we can do for you

Yann Perron
Adyax - Paris, France
skype : portblair1


send proposal

samurai_projects - Fri, 2009-05-15 22:58

Hi Yann,

Thanks for your reply. We're working on a project and we need to create orders in Magento from another application. And there will be other development services as well.

Pls, send proposal for development services. Do you work via www.elance.com or www.rentacoder.com?

Best,

Carlos Rocha
Samurai - Sao Paulo, Brasil
skype: rocha_samurai