Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    It is weird.

    If there was a flaw in html_output then one would have expected it to not remain uncovered.

    Going through the versions now.

    1.5.4 the line is
    Code:
    $css_button = '<span class="' . $mouse_out_class . '" ' . $css_button_js . $tooltip . $parameters . '>&nbsp;' . $text . '&nbsp;</span>';
    This would work because sec_class is included in $mouse_out_class

    Working my way forward now ...

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Noting that the current version of OPC doesn't support zc154.

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    My turn to be confused. My version of html_output.php is the problem.

    The critical line does not exist in any version downloaded. So, I am embarrassed. But still puzzled because why would that have changed??

    Anyway, it is not your problem so I will get off your thread.

    The plugin is great by the way. Particularly the 1.5.7 version :-)

  4. #4
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    v1.5.5f php 7.1 OPC v2.3.4

    Hello Cindy,

    I have been getting PayPal error code 10730 'Shipping Address Postal Code Empty - The field Shipping Address Postal Code is required'... only when checking out as a Guest and electing to pay via PayPal. There are no other issues with checkout and OPC, just this.

    I have applied the patch you posted here (https://www.zen-cart.com/showthread....72#post1374172) however it is not working for me. (ever the pessimist I figure it may be a v155F quirk (???) )

    I am not getting an OPC debug report but am getting PayPal CURL debugs (see example below)

    Code:
    2020-11-13 01:02:51
    -------------------
    (live transaction) --> https://api-3t.paypal.com/nvp
    Request Headers: 
    Array
    (
        [0] => Content-Type: text/namevalue
        [1] => X-VPS-Timeout: 90
        [2] => X-VPS-VIT-Client-Type: PHP/cURL
        [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
        [4] => X-VPS-VIT-Integration-Version: 1.5.5
    )
    
    
    Request Parameters: {DoExpressCheckoutPayment} 
    Array
    (
        [PAYMENTREQUEST_0_AMT] => 17.46
        [PAYMENTREQUEST_0_ITEMAMT] => 12.56
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 4.9
        [L_PAYMENTREQUEST_0_NUMBER0] => ClipOn_433
        [L_PAYMENTREQUEST_0_NAME0] => Silver Clip On Earrings, Fashion Earrings, Turkish Influence [212]
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 12.56
        [PAYMENTREQUEST_0_SHIPTONAME] => Guest Customer, **do not remove**
        [PAYMENTREQUEST_0_SHIPTOSTREET] => Default billing address
        [PAYMENTREQUEST_0_SHIPTOCITY] => 
        [PAYMENTREQUEST_0_SHIPTOSTATE] => SA
        [PAYMENTREQUEST_0_SHIPTOZIP] => 
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => AU
        [BUTTONSOURCE] => ZenCart-EC_us
        [ADDROVERRIDE] => 1
        [RETURNFMFDETAILS] => 0
        [PAYMENTREQUEST_0_CUSTOM] => EC-33-1605232971
        [PAYMENTREQUEST_0_INVNUM] => 33-1605232971-[DazzlersClipOnEarrings]
        [PAYMENTREQUEST_0_CURRENCYCODE] => AUD
        [TOKEN] => EC-45W88961NA283840S
        [PAYERID] => DFX4AE5BAT5QU
        [PAYMENTREQUEST_0_PAYMENTACTION] => Sale
        [NOTIFYURL] => https://www.dazzlerscliponearrings.com.au/ipn_main_handler.php
        [METHOD] => DoExpressCheckoutPayment
        [USER] => dazzlers2009_api1.hotmail.com
        [PWD] => ****************
        [VERSION] => 124.0
        [SIGNATURE] => ****************************************************SLns
    )
    
    
    Response: 
    Array
    (
        [TOKEN] => EC-45W88961NA283840S
        [SUCCESSPAGEREDIRECTREQUESTED] => false
        [TIMESTAMP] => 2020-11-13T02:02:51Z
        [CORRELATIONID] => 1ebb03776eb0d
        [ACK] => Failure
        [VERSION] => 124.0
        [BUILD] => 55058010
        [L_ERRORCODE0] => 10730
        [L_SHORTMESSAGE0] => Shipping Address Postal Code Empty
        [L_LONGMESSAGE0] => The field Shipping Address Postal Code is required
        [L_SEVERITYCODE0] => Error
        [CURL_ERRORS] => 
    )
    
    
    DoExpressCheckoutPayment, Elapsed: 387ms -- Failure
    
    TOKEN=EC%2d45W88961NA283840S&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2020%2d11%2d13T02%3a02%3a51Z&CORRELATIONID=1ebb03776eb0d&ACK=Failure&VERSION=124%2e0&BUILD=55058010&L_ERRORCODE0=10730&L_SHORTMESSAGE0=Shipping%20Address%20Postal%20Code%20Empty&L_LONGMESSAGE0=The%20field%20Shipping%20Address%20Postal%20Code%20is%20required&L_SEVERITYCODE0=Error&CURL_ERRORS=
    This is a copy of the segment of my includes/modules/payment/paypalwpp.php (hopefully the patch is inserted correctly)
    Code:
    /**
       * Get Override Address (uses sendto if set, otherwise uses customer's primary address)
       */
      function getOverrideAddress() {
        global $db;
    
        // Only proceed IF *in* markflow mode AND logged-in (have to be logged in to get to markflow mode anyway)
        if (!empty($_GET['markflow']) && isset($_SESSION['customer_id']) && $_SESSION['customer_id']) {
          // From now on for this user we will edit addresses in Zen Cart, not by going to PayPal.
          $_SESSION['paypal_ec_markflow'] = 1;
    
    
          // debug
          $this->zcLog('getOverrideAddress - 1', 'Now in markflow mode.' . "\n" . 'SESSION[sendto] = ' . (int)$_SESSION['sendto']);
    
    
          // find the users default address id
          if (!empty($_SESSION['sendto'])) {
            $address_id = $_SESSION['sendto'];
          } else {
            $sql = "SELECT customers_default_address_id
                    FROM " . TABLE_CUSTOMERS . "
                    WHERE customers_id = :customerId";
            $sql = $db->bindVars($sql, ':customerId', $_SESSION['customer_id'], 'integer');
            $default_address_id_arr = $db->Execute($sql);
            if (!$default_address_id_arr->EOF) {
              $address_id = $default_address_id_arr->fields['customers_default_address_id'];
            } else {
              // couldn't find an address.
              return false;
            }
          }
    	  
    	  // -----
          // Give a watching observer the opportunity to bypass this address-override.  An observer
          // can disable the address-override processing by setting the $disable_address_override
          // parameter to specifically (bool)true.
          //
          $disable_address_override = false;
          $this->notify('NOTIFY_PAYPALWPP_DISABLE_GET_OVERRIDE_ADDRESS', $address_id, $disable_address_override);
          if ($disable_address_override === true) {
            $this->zcLog('getOverrideAddress - 1a', "Override disabled by observer request.\n");
            return false;
          }
    cheers,
    Mike

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Mike, that's because the addition I'd posted for paypalwpp.php was necessary but not sufficient to correct the problem. I've got the full update staged on OPC's GitHub repository (https://github.com/lat9/one_page_che...17cbe0f8166ec3) for the upcoming 2.3.5 release.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    I've just submitted OPC v2.3.5 to the downloads area.

    This release contains changes associated with the following GitHub issues:

    #265: Form entries, use placeholder instead of trailing span to identify required fields.
    #271: Correct checkout-loop when an order's total goes negative, which can happen with "Reward Points".
    #272: Add a diagnostic tool to help identify the cause of checkout-redirection loops.
    #274: Update the jQuery handling to address 'double-submit' concerns.
    #275: Correct "Error 10730 Shipping Address Postal Code Empty" error when using paypalwpp payments.
    #276: Remove unwanted HTML generation from the base OPC class.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    I've just submitted OPC v2.3.5 to the downloads area.

    This release contains changes associated with the following GitHub issues:

    #265: Form entries, use placeholder instead of trailing span to identify required fields.
    #271: Correct checkout-loop when an order's total goes negative, which can happen with "Reward Points".
    #272: Add a diagnostic tool to help identify the cause of checkout-redirection loops.
    #274: Update the jQuery handling to address 'double-submit' concerns.
    #275: Correct "Error 10730 Shipping Address Postal Code Empty" error when using paypalwpp payments.
    #276: Remove unwanted HTML generation from the base OPC class.
    Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

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