Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2014

    This is an USPS September 7, 2014 K6 update, currently for the Test Server Only ...

    On November 2, 2014 USPS will be updating their Production Server for bugs currently on the Production Server. These updates should be working on the Test Server right now.

    Please test this USPS September 7, 2014 K6 shipping module.

    NOTE: until the changes are live on the Production Server, some features may only work on the Test Server, such as First-Class Large Envelope.
    Attached Files Attached Files
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,316
    Plugin Contributions
    78

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    No issues found, just a reminder that the readme.txt file for the K6 version still refers to the dates associated with the K5 version (September 7, 2014) in two places.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    I had left that as:
    * USPS RateV4 Intl RateV2 - September 7, 2014 Version K6
    As this is for the changes on September 7, but includes additions for a few other things including the change for the POODLE curl issue ...

    I will debate that :)
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    Works great. Got a minor issue and I can't find the code to fix it. Database is storing the shipping method in the orders table with "@reg;" and/or "@trade;". When this gets to Shipworks which I use for shipping, it prints out literally.

    I used to always modify this line from the previous versions of the module:

    PHP Code:
    $title str_replace(array('RM''TM''**'), array('®''™'''), $type_rebuilt); 
    and change it to

    PHP Code:
    $title str_replace(array('RM''TM''**'), array(''''''), $type_rebuilt); 
    That worked great. But the latest version did away with that line of code, and now I don't know where to get my hands on the string that is going into the database as shipping_method.

    Is there an easy way to get these symbols stripped?

    Thanks.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    Does the line on 564:
    Code:
            $title = str_replace(array('RM', 'TM', '**'), array('®', '™', ''), $type_rebuilt);
    do anything for you?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    No. I already changed that line. In previous versions changing this line handled the problem. But in this version, it isn't changing the variable that gets saved to the database. The special characters are still being saved to the orders table in the shipping_method field. I haven't been able to find out where shipping_method is getting it's string. Maybe in another module.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    And if you add the code in RED around line 635:
    Code:
    $show_hiddenCost = '';
    
    $title = str_replace(array('RM', 'TM', '**'), array('', '', ''), $type_rebuilt);
    
              $methods[] = array('id' => $type_rebuilt,
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    Yes, I have that exact line, exactly like that (the part in red).

    However, the lines nearby that line are different in my file. Here's what I have:


    PHP Code:
           // COST        
          // clean out invalid characters        
          
    $cost preg_replace('/[^0-9.]/''',  $cost);
          
    //echo 'USPS $cost: ' . $cost . ' $handling: ' . $handling . ' $hiddenCost: ' . $hiddenCost . ' $shipping_num_boxes: ' . $shipping_num_boxes . ' $usps_handling_fee: ' . $usps_handling_fee . '<br>';        
          // add handling for shipping method costs for extra services applied        
          
    $cost = ($cost $handling $hiddenCost) * $shipping_num_boxes;        
          
    // add handling fee per Box or per Order        
          
    $cost += (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box') ? $usps_handling_fee $shipping_num_boxes $usps_handling_fee;
          
          
    // set the output title display name back to correct format        
          
    $title str_replace(array('RM''TM''**'), array(''''''), $type_rebuilt);
          
    //echo 'USPS title: ' . $title . '<br />';
          
          // process customization of transit times in quotes        
          
    if (in_array('Display transit time'explode(', 'MODULE_SHIPPING_USPS_OPTIONS))) {
            if (
    $order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY || 
                 
    $this->usps_countries == 'US') {            
                    if (
    $this->transitTimeCalculationMode != 'OLD'
                       
    $this->parseDomesticTransitTimeResults($Package$type_rebuilt);         
                  } 
                 else {            
                 
    $this->parseIntlTransitTimeResults($Package$type_rebuilt);          
             }        
          } 
    However, note the formatting isn't quite the same as the original. My mod includes the changes for 2 Nov 14. But the surrounding text is different from yours. Am I missing something.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    That is not where I am suggesting you add that line, look at this piece of original code around line 633:
    Code:
    // switch comment marks to show $hiddenCost: from quote title
    //$show_hiddenCost =  ' $hiddenCost: ' . $hiddenCost;
    $show_hiddenCost = '';
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost,
                                 'insurance' => $usps_insurance_charge,
                                );
    Change that code to include the new line in RED:
    Code:
    // switch comment marks to show $hiddenCost: from quote title
    //$show_hiddenCost =  ' $hiddenCost: ' . $hiddenCost;
    $show_hiddenCost = '';
    
            $title = str_replace(array('RM', 'TM', '**'), array('', '', ''), $type_rebuilt);
    
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost,
                                 'insurance' => $usps_insurance_charge,
                                );
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: USPS RateV4 Intl RateV2 September 7, 2014 K6 for Test Server Only - November 2, 2

    Ok. The light shines now. Thanks. That did it.

    I had to think. I must not have been zenned yet.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. USPS RateV4 Intl RateV2 October 30, 2014 K6 for - November 2, 2014
    By Ajeh in forum Zen Cart Release Announcements
    Replies: 1
    Last Post: 16 Nov 2014, 02:48 PM
  2. v139h USPS RateV4 Intl RateV2 October 30, 2014 K6 for - November 2, 2014
    By WiccanWitch420 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 3 Nov 2014, 03:34 AM
  3. Replies: 11
    Last Post: 25 Sep 2014, 05:30 AM
  4. Replies: 6
    Last Post: 6 Sep 2014, 12:49 AM
  5. USPS RateV4 Intl RateV2 Jan 26, 2014 Rates, January 26, 2014 Version K1
    By Ajeh in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 24 Jan 2014, 06:49 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