Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    1,752
    Plugin Contributions
    5

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    Quote Originally Posted by dbltoe View Post
    Would that mean the $sumoLineTax should be changed as well?

    Payphone line 606 and others. Seems like same case mistake everywhere sumofLineItems appears.
    Just skimmed through this file myself - I think you are right on the money.

    $sumofLineTax only appears once in the whole file, no reference in any other formula.
    Frank's Stores (Fair Dinkum Australian):
    iSO Network | frNT Online Dispensary

  2. #12
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,006
    Plugin Contributions
    6

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    auto-spellchecker got me
    Payphone line 606 and others.
    shoulda been
    shows up on line 1606 and other files.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  3. #13
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

    Default Re: 139c DoExpressCheckoutPayment variables missing

    Quote Originally Posted by stagebrace View Post
    The following modification fixed the issue for me. I warn it may not fix it for others.

    replace a line 1262 in file paypalwpp.php
    if ($sumofLineItems == 0) {

    with
    if ($sumofLineItems === 0) {


    There must be a difference between being Equal and Identical. Or the change may just shut down the equation altogether and bypass the needed logic. I don't know, not smart enough. I need the line items and am willing to take the chance at the moment.

    Dennis
    I noticed your use of the triple = instead of the more common double. Although this is true for solving strange problems within JS, is it also true for PHP?

    I also noticed 'paypalwpp.php' has neither a closing ?> nor EOF. Any concern with that?
    The learning is in the doing.

    Potent Products

  4. #14
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,006
    Plugin Contributions
    6

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    Rob,
    Need to read up a few posts. I think the === was not required once the sumofLineItems was changed to sumOfLineItems.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  5. #15
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    Understood, but it is the specific use of === within PHP that I am curious about. I have only seen that used within JS.
    The learning is in the doing.

    Potent Products

  6. #16
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    Quote Originally Posted by Website Rob View Post
    Understood, but it is the specific use of === within PHP that I am curious about. I have only seen that used within JS.
    It's a perfectly valid operator in PHP when doing type-matching: http://php.net/manual/en/language.op...comparison.php

    And ... you're way off topic for this bug-fix thread
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  7. #17
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 139c DoExpressCheckoutPayment variables missing

    Quote Originally Posted by Website Rob View Post
    I also noticed 'paypalwpp.php' has neither a closing ?> nor EOF. Any concern with that?
    That's been common practice now in Zen Cart for several years, starting in various files touched since v1.3.7.1: http://tutorials.zen-cart.com/index.php?article=313
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  8. #18
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 139c DoExpressCheckoutPayment variables missing

    NOTE: v1.3.9e has now been released and contains the fixes to the issue described by stagebrace initially. See the News & Announcements section of the forum for details.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  9. #19
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,006
    Plugin Contributions
    6

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    $sumofLineTax is still at line 1264 of the paypalwpp.php

    In the // Sanity Check
    // Sanity Check of line-item subtotals
    for ($j=0; $j<$k; $j++) {
    $itemAMT = $optionsLI["L_AMT$j"];
    $itemQTY = $optionsLI["L_QTY$j"];
    $itemTAX = (isset($optionsLI["L_TAXAMT$j"]) ? $optionsLI["L_TAXAMT$j"] : 0);
    $sumOfLineItems += ($itemQTY * $itemAMT);
    $sumOfLineTax += ($itemQTY * $itemTAX);
    }
    $sumOfLineItems = round($sumOfLineItems, 2);
    $sumOfLineTax = round($sumOfLineTax, 2);

    if ($sumOfLineItems == 0) {
    $sumofLineTax = 0;
    $optionsLI = array();
    $discountProblemsFlag = TRUE;
    if ($optionsST['SHIPPINGAMT'] == $optionsST['AMT']) {
    $optionsST['SHIPPINGAMT'] = 0;
    }
    }
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  10. #20
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.3.9e] 139c DoExpressCheckoutPayment variables missing

    So it is.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Some missing data in admin after a port from 138a to 139c
    By Natty in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 4 Jun 2010, 09:37 AM
  2. Paypal Payments Pro 139c
    By Shane78 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 21 May 2010, 11:06 PM
  3. [Not a bug] 139c updating code.... query
    By Shane78 in forum Bug Reports
    Replies: 5
    Last Post: 20 May 2010, 03:08 PM
  4. doexpresscheckoutpayment not getting to PP
    By Shoyu Concepts in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 6 May 2008, 08:20 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
  •