Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Idea or Suggestion Shopping Estimator Stopped Working!

    Zen Cart 1.5.5f
    Database Patch Level: 1.5.5
    Database: MySQL 5.6.41-84.1
    PHP Version: 5.6.37 (Zend: 2.6.0)

    The Shipping Estimator stopped showing actual estimates. I have UPS enabled and has been working this whole time.

    Nothing on Error log.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Shopping Estimator Stopped Working!

    Quote Originally Posted by sle39lvr View Post
    Zen Cart 1.5.5f
    Database Patch Level: 1.5.5
    Database: MySQL 5.6.41-84.1
    PHP Version: 5.6.37 (Zend: 2.6.0)

    The Shipping Estimator stopped showing actual estimates. I have UPS enabled and has been working this whole time.

    Nothing on Error log.
    "known" issue, need to modify the method of communication from the software to UPS to include possibly https:, ssl: and port 443, or other corrections. There is a thread here I believe something like UPS shipping estimates stopped January (don't recall the date but it was in the last 7 days). The change is done in the includes/modules/shipping/ups.php module. possibly look for ups.com and update as appropriate.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Shopping Estimator Stopped Working!

    Quote Originally Posted by mc12345678 View Post
    "known" issue, need to modify the method of communication from the software to UPS to include possibly https:, ssl: and port 443, or other corrections. There is a thread here I believe something like UPS shipping estimates stopped January (don't recall the date but it was in the last 7 days). The change is done in the includes/modules/shipping/ups.php module. possibly look for ups.com and update as appropriate.
    That would be this post: https://www.zen-cart.com/showthread....January-5-2019

  4. #4
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Shopping Estimator Stopped Working!

    Thank you for the swift reply!

    I made the changes to old UPS module -> No luck
    Updated the UPS module to newest -> No luck

    Free Shipping or Store pick up options always seem to show up properly. Tried a trial FedEX module and it wouldn't show up either.

    May be I need to update 1.5.5f to 1.5.6a?
    Last edited by sle39lvr; 10 Jan 2019 at 11:13 PM.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Shopping Estimator Stopped Working!

    Quote Originally Posted by lat9 View Post
    Thanks, yes that was it.
    Quote Originally Posted by sle39lvr View Post
    Thank you for the swift reply!

    I made the changes to old UPS module -> No luck
    Updated the UPS module to newest -> No luck

    Free Shipping or Store pick up options always seem to show up properly. Tried a trial FedEX module and it wouldn't show up either.

    May be I need to update 1.5.5f to 1.5.6a?
    If the module was updated, it may still need to have the change described above applied after that update. While for other reasons should update to 1.5.6a, it is not expected to be the source of this issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Shopping Estimator Stopped Working!

    The new ups.php file in modules was significantly different from the old one. The new one did not have any references to ports. It has:

    Code:
     if (!isset($this->_upsActionCode)) $this->_upsActionCode = '4';
        $host = 'https://www.ups.com/using/services/rave/qcostcgi.cgi?';
        $request = implode('&', array('accept_UPS_license_agreement=yes',
                                   '10_action=' . $this->_upsActionCode,
                                   '13_product=' . $this->_upsProductCode,
                                   '14_origCountry=' . $this->_upsOriginCountryCode,
                                   '15_origPostal=' . $this->_upsOriginPostalCode,
                                   '19_destPostal=' . $this->_upsDestPostalCode,
                                   '22_destCountry=' . $this->_upsDestCountryCode,
                                   '23_weight=' . $this->_upsPackageWeight,
                                   '47_rate_chart=' . $this->_upsRateCode,
                                   '48_container=' . $this->_upsContainerCode,
                                   '49_residential=' . $this->_upsResComCode));
        $url = $host . $request;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_VERBOSE, 0);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Zen Cart quote inquiry');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        $error = curl_error($ch);
    Above is the only reference to 'https' and no references to any ports.

    This module update came out two days ago, Jan 8th.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Shopping Estimator Stopped Working!

    Would suggest clearing your cache and cookie (or trying the process using a different browser so that a new session might be started.)

    Good to know about the update including the change. I wasn't aware.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Shopping Estimator Stopped Working!

    Quote Originally Posted by mc12345678 View Post
    Would suggest clearing your cache and cookie (or trying the process using a different browser so that a new session might be started.) .
    Cleared everything, tried from other machines. Still no other shipping modules (UPS or FEDEX) would give estimates or an order to be placed.

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Shopping Estimator Stopped Working!

    Quote Originally Posted by sle39lvr View Post
    The new ups.php file in modules was significantly different from the old one. The new one did not have any references to ports. It has:

    Code:
     if (!isset($this->_upsActionCode)) $this->_upsActionCode = '4';
        $host = 'https://www.ups.com/using/services/rave/qcostcgi.cgi?';
        $request = implode('&', array('accept_UPS_license_agreement=yes',
                                   '10_action=' . $this->_upsActionCode,
                                   '13_product=' . $this->_upsProductCode,
                                   '14_origCountry=' . $this->_upsOriginCountryCode,
                                   '15_origPostal=' . $this->_upsOriginPostalCode,
                                   '19_destPostal=' . $this->_upsDestPostalCode,
                                   '22_destCountry=' . $this->_upsDestCountryCode,
                                   '23_weight=' . $this->_upsPackageWeight,
                                   '47_rate_chart=' . $this->_upsRateCode,
                                   '48_container=' . $this->_upsContainerCode,
                                   '49_residential=' . $this->_upsResComCode));
        $url = $host . $request;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_VERBOSE, 0);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Zen Cart quote inquiry');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        $error = curl_error($ch);
    Above is the only reference to 'https' and no references to any ports.

    This module update came out two days ago, Jan 8th.
    this module is now using curl. and my guess is you have a curl error.

    when using curl with UPS and/or Fedex i like to log everything. that way if there is a problem you can see the last transaction in the log. i would modify your code as such:

    PHP Code:
     if (!isset($this->_upsActionCode)) $this->_upsActionCode '4';

        
    $ups_log fopen(DIR_FS_LOGS '/ups_error.log''w');

        
    $host 'https://www.ups.com/using/services/rave/qcostcgi.cgi?';
        
    $request implode('&', array('accept_UPS_license_agreement=yes',
                                   
    '10_action=' $this->_upsActionCode,
                                   
    '13_product=' $this->_upsProductCode,
                                   
    '14_origCountry=' $this->_upsOriginCountryCode,
                                   
    '15_origPostal=' $this->_upsOriginPostalCode,
                                   
    '19_destPostal=' $this->_upsDestPostalCode,
                                   
    '22_destCountry=' $this->_upsDestCountryCode,
                                   
    '23_weight=' $this->_upsPackageWeight,
                                   
    '47_rate_chart=' $this->_upsRateCode,
                                   
    '48_container=' $this->_upsContainerCode,
                                   
    '49_residential=' $this->_upsResComCode));
        
    $url $host $request;
        
    $ch curl_init();
        
    curl_setopt($chCURLOPT_URL$url);
        
    curl_setopt($chCURLOPT_VERBOSEtrue);
        
    curl_setopt($chCURLOPT_HEADERfalse);
        
    curl_setopt($chCURLOPT_USERAGENT'Zen Cart quote inquiry');
        
    curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
    curl_setopt($chCURLOPT_STDERR$ups_log);
        
    $response curl_exec($ch);
        
    $error curl_error($ch); 
    we have now established a var called $ups_log that should have the last transaction for every curl call made in your code. it resides in your logs directory.

    we have upped the logging to verbose, so that we can see everything. and we are sending the standard output for the curl call to the $ups_log.

    i have not looked at this code before, so i'm not sure what it does with the $error; i can only assume something, that should point us to any potential errors with this call.

    but in my experience debugging common carrier curl calls, this is the easiest way to figure out what is going on. and the beauty is that only the last transaction is stored..... we could change that but this is sufficient for my debugging.

    you can try a transaction and post the contents of the ups_error.log. if it has any 'sensitive' information, i would modify it accordingly.

    good luck.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Shopping Estimator Stopped Working!

    Thank you for your reply!

    Quote Originally Posted by carlwhat View Post
    this module is now using curl. and my guess is you have a curl error.
    But the older module did not use curl? Because I had the same issues with the old module.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v154 UPS Estimator Stopped Working on January 5, 2019
    By kwright in forum Addon Shipping Modules
    Replies: 32
    Last Post: 12 May 2019, 04:02 PM
  2. v153 HELP!!!!! my shopping cart and checkout have stopped working
    By ultimateautovibes in forum Basic Configuration
    Replies: 4
    Last Post: 23 Nov 2014, 10:36 PM
  3. Shopping cart stopped working please help
    By adam123 in forum General Questions
    Replies: 1
    Last Post: 1 Nov 2011, 11:29 AM
  4. My Shipping Estimator just stopped working
    By johnd in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 7 Jul 2007, 06:41 PM
  5. My Shopping Cart Just Stopped Working Won't Process cards
    By tbianco in forum Addon Payment Modules
    Replies: 1
    Last Post: 2 Apr 2007, 12:14 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR