Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Location
    Jacksonville Fl
    Posts
    73
    Plugin Contributions
    0

    Default Where do I tie an action to PayPal Status?

    Zen Cart 1.3.8a new install, Apache/2.2.11, PHP v5.2.9

    First, my website works just great! my "problem" is in locating where to put the call to a function.

    This is my challenge, this installation is a membership site and members may extend their membership by purchasing a 12 month extension via the shopping cart. I have added a field to the zen_customers table called customers_expire, this field has their enrollment date in a date format yyyy-mm-dd.

    We have the PayPal Website Pro service and use PayPal exclusively. I have built a function that will calculate a new expiration date and update the zen_customers table and in general testing it works perfectly BUT I just cannot seem to find where to put it so that when the payment status Completed is returned by PayPal it will do the update.

    So far, I've tried using the files in the includes/module/payments/paypal folder and the ipn_main_handler files with no success, in the zen_paypal table it says module_mode is paypalwpp.
    I want to use the function to update based on eCheck cleared and Completed statuses. Has anyone else tried this? Any and all suggestions would be welcome.

    Thanks,

    Andy

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Where do I tie an action to PayPal Status?

    You could add your function call into the after_process() function in the paypalwpp module.

    just after line 811:
    PHP Code:
        zen_db_perform(TABLE_PAYPAL$paypal_order); 
    add your call:
    PHP Code:
    if($this->payment_status == 'Completed' {

    // add your function call here....


    Neville
    An assumption is what you arrive at when you get tired of thinking...

 

 

Similar Threads

  1. v150 Action after change order status in admin
    By puhycz in forum General Questions
    Replies: 2
    Last Post: 17 Jun 2014, 12:21 PM
  2. v150 Tie Shipping to order status?
    By treblesand in forum General Questions
    Replies: 4
    Last Post: 14 Apr 2014, 02:20 PM
  3. Urgent: Where did the action bar go ( shipping module)
    By CartCrazy in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 1 Jul 2011, 11:13 AM
  4. admin area has no status or action
    By surefiremedia in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Feb 2011, 11:59 PM
  5. where do i have to write code to get response from form action url
    By krush in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 31 Mar 2008, 05:12 PM

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