Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Is this possible? Zen Cart observer + MySql?

    Hey guys,

    I've recently started learning about ZenCart observers. I am trying to build a dashboard for my mobile phone so I can manage my company using pure data and business logic.

    I've set up a database to query results from my app. So I would like to somehow do inserts from within zencart events.

    I think my 'structure' or method of doing this is wrong, but I can't think of another way to do it.

    Say when an order is completed, I would like to send information about Inventory, and the Order just placed to the MySQL database on my server.

    Any help, insight, or ideas on how to transfer this data to a new source would be great! thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Is this possible? Zen Cart observer + MySql?

    In v1.3.8 you could hook something at the NOTIFY_HEADER_END_CHECKOUT_PROCESS point, which happens after all the order details have been stored and the customer's email has been sent.

    or you could hook the NOTIFY_ORDER_AFTER_ORDER_CREATE_ADD_PRODUCTS point which is triggered just after the product details have been stored to the current order.
    or the NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE_ADD_PRODUCTS point which is triggered a moment later after setting the current order ID into a session variable which can be accessed via $_SESSION['order_number_created']
    .

    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.

 

 

Similar Threads

  1. is this possible within zen cart???
    By bubbas454 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Apr 2010, 03:13 AM
  2. Is this possible in Zen Cart?
    By soundmagus in forum General Questions
    Replies: 9
    Last Post: 13 Jul 2009, 08:38 AM
  3. Is this possible in Zen Cart?
    By RobM in forum General Questions
    Replies: 4
    Last Post: 10 Jul 2009, 03:23 PM
  4. Is this possible with Zen Cart?
    By deathbybutterscotch in forum General Questions
    Replies: 3
    Last Post: 15 Jan 2009, 12:22 PM
  5. Is this possible with Zen Cart?
    By webfooted in forum General Questions
    Replies: 15
    Last Post: 20 Jul 2008, 02:52 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR