Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Plugin Contributions
    0

    Default Integating POS and Zen Cart via XML RPC

    I am purchasing a POS for our pizza restaurant that uses RPC (remote procedure call) protocol to receive XML orders from online ordering software. Rather than paying for an online ordering company, I would like to use an open source shopping cart and pay a local programmer. I was wondering if this is doable. Your opinion?

    Here is a snippet from their developers guide on the format of the order XML:

    <ORDER ID="" date="" time="" total_price="" total_tax="" total_discount="" delivery_fee="" misc_charge="" tip="" order_type="" payment_status="" deferred="">

    <CC_INFO CC_AMOUNT="" CC_TIP_AMOUNT="" CC_STRING="" >;
    </CC_INFO>


    <ITEM id="" item_price="" item_quantity="" item_fraction="" item_tax="" base_item="">

    <SIZE item_id="" plu_number="" >
    </SIZE >
    <STYLE item_id="" plu_number="">
    </STYLE >

    <SUB_ITEM item_id="" item_type="" sub_item_index="" plu_number="" sub_item_quantity="" sub_item_fraction="">
    </SUB_ITEM>

    <MSG item_id="" msg_detail="" message_frac_index="">
    </MSG>
    <REQUIREMENT item_id="" order_req_frac ="" order_req_text="" plu_number="">
    </REQUIREMENT>

    </ITEM>

    <COUPON item_id="" amount="" plu_number="" offer_order_index="" offer_counter="">
    </COUPON>

    <MSG item_id="" msg_detail="" message_frac_index="">
    </MSG>
    ....etc.

    The RPC request to get a confirmation looks like this:

    Use RPC to call the function on our server: store_order_listener.receiveOrder($xml)

    This function needs to be called in a standard RPC way, so actually our XML Order format will be wrapped by RPC XML Call (see examples below). After each call of function the immediate confirmation of the call follows - again, based on the RPC standard.

    When creating the XML, put the method name in method name tag and parameters in
    parameter tag, followed by the <string> tag which will include your order XML.

    Example:
    <?xml version="1.0"
    encoding="iso-8859-1"?><methodCall><methodName>store_order_listener.receiveorder< /methodName><params><param><value><string>


    Order Response:
    You will receive a response to confirm that the order has been received.
    In success:
    <order msg="Added Successfully" order_id="7226" >
    </order>

    In failure:
    <order msg="Failed to Add the order" order_id="0" >
    </order>

    In success, order id is the order_id after insertion of the order.

  2. #2
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: Integating POS and Zen Cart via XML RPC

    Totally doable. It wouldn't be that difficult for a programmer. They could setup a trigger in the database to look for completed orders. Then extract the information into XML format and send to your POS system. The communication back would be similar to what happends in the payment interfaces. (Transmit info, confirm acceptance, report acceptance to user.)

    Great idea. I know the "big guys" do this, an independant doing it will set you apart!

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Integating POS and Zen Cart via XML RPC

    That's good to hear. Any idea how complicated (ie expensive) this would be? There are companies that will process orders for $1 an order (or 5%) but they are very simple. Ideally, I would love to have a site that suggestive sells. For example, if they did not order drinks, it would be offered.

    My dream is that our site would be a complete extension of our POS. I think that will only be achieved when we write our own online system.

 

 

Similar Threads

  1. v151 3rd party software access using XML-RPC for PHP
    By torvista in forum Contribution-Writing Guidelines
    Replies: 7
    Last Post: 24 Oct 2012, 10:39 PM
  2. Is anyone using QB POS with Zen-Cart?
    By Qwert302 in forum Addon Payment Modules
    Replies: 4
    Last Post: 6 Feb 2010, 05:45 AM
  3. Zen Cart as POS for coffee bar
    By organicplanet in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Dec 2007, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg