Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Execute SMS API on successful order

    If you're getting a blank page, you need to follow the blank page debugging steps:

    http://www.zen-cart.com/content.php?124
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Execute SMS API on successful order

    Quote Originally Posted by swguy View Post
    If you're getting a blank page, you need to follow the blank page debugging steps:

    http://www.zen-cart.com/content.php?124
    Hi,

    i have already tried these steps but no luck.

    I think there might be a cURL API causing error. And I dont have any idea about cURL.

    It would be great if you can help me with this.

    I have already provided code which I am using.

    Thanks.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Execute SMS API on successful order

    .

    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. #14
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Execute SMS API on successful order

    Quote Originally Posted by DrByte View Post
    No, I have checked. It didnt worked. Syntax is fine.

    If you require I can provide with full code file?

  5. #15
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Execute SMS API on successful order

    Might be helpful to have a zip containing all the code affected by this.
    .

    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.

  6. #16
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Execute SMS API on successful order

    Quote Originally Posted by DrByte View Post
    Might be helpful to have a zip containing all the code affected by this.
    Hi,

    Please find attached zip file of file affected.

    I have used SMS ON SALE addon and modified a bit to use with cURL API provided by my service provider.

    Thanks & Regards,

    Attachment 10874
    Attached Files Attached Files

  7. #17
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Idea or Suggestion Re: Execute SMS API on successful order

    Quote Originally Posted by swguy View Post
    If you switch to using NOTIFY_ORDER_AFTER_SEND_ORDER_EMAIL, then $zf_insert_id (the order id) is one of the parameters.
    In ./includes/classes/observers/class.msg_owner.php, change

    $zco_notifier->attach($this, array('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL'));
    to

    $zco_notifier->attach($this, array('NOTIFY_ORDER_AFTER_SEND_ORDER_EMAIL'));

    then change

    function update(&$callingClass, $eventID) {

    to


    function update(&$callingClass, $eventID, $paramsArray = array()) {
    list($zf_insert_id, $email_order, $extra_info, $html_msg) = $paramsArray;

    and you have the order id in $zf_insert_id.
    Dear swguy,

    What to do when I update order status from Zen-cart Admin Panel (e.g. Shipped) and want to execute this same Module to send SMS?

    Thanks.

  8. #18
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Execute SMS API on successful order

    The notifiers don't fire in admin. You'd need to just call the underlying logic yourself.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #19
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Execute SMS API on successful order

    Quote Originally Posted by swguy View Post
    The notifiers don't fire in admin. You'd need to just call the underlying logic yourself.
    Ok. So If I update a Order status from Zen Admin Panel, order.php is file which changes/updates status in database?

    Any pointers/directive that I can look for? Where to Apply that cURL Logic?

    What basically I wanted to do is, use your SMS Add-on for sending even of Order Status change.

    Thanks.

  10. #20
    Join Date
    Jul 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Execute SMS API on successful order

    Quote Originally Posted by max4u View Post
    Ok. So If I update a Order status from Zen Admin Panel, order.php is file which changes/updates status in database?

    Any pointers/directive that I can look for? Where to Apply that cURL Logic?

    What basically I wanted to do is, use your SMS Add-on for sending even of Order Status change.

    Thanks.
    Any updates?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 Order placed - did not show up - Payment was successful
    By puddlesofpaint in forum General Questions
    Replies: 5
    Last Post: 3 Mar 2014, 12:21 AM
  2. can't receive and show order after paypal successful
    By gueston in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Aug 2009, 05:21 AM
  3. Authorize.net AIM - Successful - No Order?
    By Cylants in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 24 May 2009, 09:27 PM
  4. Custom function upon successful order placement
    By Gwixel in forum General Questions
    Replies: 8
    Last Post: 17 May 2008, 06:37 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