Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    81
    Plugin Contributions
    0

    Default Partial Refund Cancels Order

    For some reason my partial refund requests from zencart admin are getting denied by paypal.

    So i am going into paypal and issuing partial refunds, but now my orders are disappearing from zencart after the refund. Whats going on?

  2. #2
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    81
    Plugin Contributions
    0

    Default Re: Partial Refund Cancels Order

    bummmmpp

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Partial Refund Cancels Order

    They're not getting deleted. It seems like your PayPal module's refund-status must be blank or set to 0 instead of 1-Pending.

    To fix the order so it still shows in your admin list, you'll need to do a search for the order, open it, and change the status to 1-Pending, from the pulldown list, and uncheck the "notify customer" box, and submit. Then it should show back in your list again.
    .

    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
    Apr 2008
    Location
    Ontario
    Posts
    81
    Plugin Contributions
    0

    Default Re: Partial Refund Cancels Order

    I searched for the order and it said that it was set to "pending" (I have changed the status names), but I updated it to pending again and now it has re-appeared. Can i fix the modules code to update it to pending instead of whatever it tired to do? or is me changing the names the culprit?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Partial Refund Cancels Order

    Hmmm .. a tiny bug was causing that.
    You can fix it by making the following edit, or upgrading to v139 when it's released (tune in here for release announcements when they're made: )

    /includes/modules/payment/paypaldp.php
    around line 971 you'll see this block of code. Simply add the new line highlighted as shown:
    Code:
        /**
         * Submit refund request to PayPal
         */
        if ($proceedToRefund) {
          $response = $doPayPal->RefundTransaction($oID, $txnID, $refundAmt, $refundNote);
          $error = $this->_errorHandler($response, 'DoRefund');
          $new_order_status = ((int)$new_order_status > 0 ? (int)$new_order_status : 1);
          if (!$error) {
            if (!isset($response['GROSSREFUNDAMT'])) $response['GROSSREFUNDAMT'] = $refundAmt;
            // Success, so save the results
    You can always recover old orders by using the search+update steps discussed earlier.
    .

    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. #6
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    81
    Plugin Contributions
    0

    Default Re: Partial Refund Cancels Order

    awsome ty

 

 

Similar Threads

  1. v139f Client cannot do partial refund
    By paulcreedy in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 10 May 2012, 12:27 PM
  2. Partial Refund Refused
    By RicM in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 12 Dec 2011, 09:54 PM
  3. Refund or Partial Refund functionality? (problem with SuperOrders)
    By bi11i in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 24 Oct 2010, 03:27 AM
  4. Partial refund not changing order total?
    By malice95 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 23 Jul 2009, 03:52 AM
  5. Change (alter) price before or after order is placed (partial refund / extra freight)
    By HerbertFilby in forum Managing Customers and Orders
    Replies: 1
    Last Post: 19 Feb 2009, 09:07 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