Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    Big D
    Posts
    36
    Plugin Contributions
    0

    Default paypalwpp.php - How to strike Payment Amount from comments?

    Oh Great Wisened Ones,

    For various logistical reasons I'd like to strike the "Payment Amount:$XX.XX from being automagically inserted into the order history comments field when using paypalwpp.php.

    I'm guessing if I REM the following line in paypalwpp.php I'd achieve the effect I'm looking for, but I'd like to run it by you folks before I start hacking at the module.

    From this...

    PHP Code:
        $commentString "Transaction ID: :transID: " 
                             (isset(
    $this->responsedata['PPREF']) ? "\nPPRef: " $this->responsedata['PPREF'] : "") . 
                                             (isset(
    $this->responsedata['AUTHCODE'])? "\nAuthCode: " $this->responsedata['AUTHCODE'] : "") . 
                                     
    "\nPayment Type: :pmtType: " 
                                     
    "\nTimestamp: :pmtTime: " 
                                     
    "\nPayment Status: :pmtStatus: " 
                         (
    $this->avs != 'N/A' "\nAVS Code: ".$this->avs."\nCVV2 Code: ".$this->cvv2 '') .
                                     
    "\nAmount: :orderAmt: ";
        
    $commentString $db->bindVars($commentString':transID:'$this->transaction_id'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtType:'$this->payment_type'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtTime:'$this->payment_time'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtStatus:'$this->payment_status'noquotestring');
        
    $commentString $db->bindVars($commentString':orderAmt:'$this->amt'noquotestring'); 
    To this (last line)...

    PHP Code:
        $commentString "Transaction ID: :transID: " 
                             (isset(
    $this->responsedata['PPREF']) ? "\nPPRef: " $this->responsedata['PPREF'] : "") . 
                                             (isset(
    $this->responsedata['AUTHCODE'])? "\nAuthCode: " $this->responsedata['AUTHCODE'] : "") . 
                                     
    "\nPayment Type: :pmtType: " 
                                     
    "\nTimestamp: :pmtTime: " 
                                     
    "\nPayment Status: :pmtStatus: " 
                         (
    $this->avs != 'N/A' "\nAVS Code: ".$this->avs."\nCVV2 Code: ".$this->cvv2 '') .
                                     
    "\nAmount: :orderAmt: ";
        
    $commentString $db->bindVars($commentString':transID:'$this->transaction_id'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtType:'$this->payment_type'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtTime:'$this->payment_time'noquotestring');
        
    $commentString $db->bindVars($commentString':pmtStatus:'$this->payment_status'noquotestring');
    //    $commentString = $db->bindVars($commentString, ':orderAmt:', $this->amt, 'noquotestring'); 
    Thanks in advance,

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

    Default Re: paypalwpp.php - How to strike Payment Amount from comments?

    You would be better off changing this line:
    Code:
                                     "\nAmount: :orderAmt: ";
    to just this:
    Code:
                                     ""; 
    .

    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.

  3. #3
    Join Date
    Aug 2006
    Location
    Big D
    Posts
    36
    Plugin Contributions
    0

    Default Re: paypalwpp.php - How to strike Payment Amount from comments?

    Thank you very kindly, Sir...Will do.

    Regards,

 

 

Similar Threads

  1. v154 Call to undefined method currencies::get_decimal_places() in paypalwpp.php line 1055
    By Kenton in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 12 Apr 2016, 07:04 AM
  2. v152 paypalwpp.php inserts a shipping address outside the zone definition, no tax applied
    By torvista in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 11 Feb 2014, 05:28 PM
  3. Replies: 2
    Last Post: 19 Dec 2009, 09:16 AM
  4. How to allow check out on a zero payment amount?
    By robthemanbob in forum Managing Customers and Orders
    Replies: 4
    Last Post: 22 Jan 2009, 02:43 AM
  5. How to remove comments box from invoice?
    By rayleighstamps in forum Managing Customers and Orders
    Replies: 1
    Last Post: 14 Nov 2008, 11:46 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