Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Post Order Results to Another Website

    Hi, is it possible to somehow do an HTML form post of some arbitrary information (in my case, the details of the order after it has been completed) to a 3rd party website?

    I want to submit orders to my distributor's website after they've cleared. This would be easier for them to receive it that way vs. having to parse an email (a suggestion I saw in this post when searching on this topic).

    Any way to do this short of writing a new module or plugin?

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Post Order Results to Another Website

    Not out of the box, no. You might search the Free Software Add Ons for 'XML' for some ideas about how order info is exported to the various shippers. Might give you a place to start.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Post Order Results to Another Website

    Or you could write a small addon yourself, perhaps even an Observer class, to use CURL to do the POST of the order upon completion.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Post Order Results to Another Website

    Riffing on DrByte's suggestion, if you happen to be using a recent Linux kernel (2.6.13 and higher) you can use a handy tool such as incron. Before you read this--it's a no-go unless you've got at least a virtual dedicated server. If your server is Linux, you can check your kernel version
    by typing

    Code:
    uname -a
    from a shell. If it's 2.6.13 you will be able to install and set up incron.
    Then you can find your mysql data directory. If you use Webmin, you can go to System->Users and Groups. One of the users in the table is a daemon named mysql. Her home directory is the mysql data directory. Let's say it's something like "/path/to/mysql"

    Next, look inside that directory. You will see a directory for each of your databases, including one for zencart.
    When a row is added or modified in a mysql table "tablename" the file that changes will be "tablename.MYI".

    From the command line, as root (or any user who can see the table you're interested in) do

    Code:
    incrontab -e
    and add the line

    Code:
    /path/to/mysql/dbname/tablename.MYI IN_MODIFY php /path/to/yourphpscript.php
    I should point out that some serious thought about the control logic is required here. For instance, you might consider adding an extra "status" column to the table, defaulting to "0". The php script yourphpscript.php could read the lines that have a "0" in the extra column and act on those columns that have 0's and when it's done with them, change them to 1's if the action is successful, or a 2 if it's unsuccessful.

    The script yourphpscript.php can do just about anything. For that matter, you can put any command you like after "IN_MODIFY". (I'm currently working on something similar for a client who needs his Zen Cart stock synced with his ebay stock!).

 

 

Similar Threads

  1. v153 Auth.net SIM script timed out while trying to POST transaction results
    By RixStix in forum Built-in Shipping and Payment Modules
    Replies: 18
    Last Post: 16 Nov 2014, 07:48 PM
  2. SIM: Your script timed out while we were trying to post transaction results to it.
    By xcergy in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 2 Dec 2009, 02:58 PM
  3. Calculate Shipping on shopping cart page to send order to another website
    By ICS in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Aug 2008, 07:25 PM
  4. Canada Post and UPS XML - no results for Shipping Estimator unless logged in
    By MsHutch in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 15 May 2007, 09:52 PM

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