Dirty Butter Posted July 17, 2013 Share Posted July 17, 2013 Not sure what is involved, but from the way this email (received today) reads CC will need to make some adjustments to make this USPS upgrade work for us. USPS will release updates to the Web Tools APIs on 28 July 2013. The staging environment is currently open for testing your updated applications. You may review staging information and the release notes at the USPS Web Tools site here <http://j.mp/18dTBs1> for more details. If you rely upon a third-party developer (e.g. software or ecommerce/cart provider) for USPS products and services on your website or your shipping application, please direct any application-specific questions to them. For questions and concerns, please contact our customer support at 1-800-344-7779 or [email protected]. Regards, Web Tools Program Office Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 15, 2013 Share Posted August 15, 2013 Please read this analysis for CC4. CubeCart 5 properly handles the special characters issue raised in the above forum post. Other changes involve a few more service types. CC522 does not have them listed, but the service names CC5 does currently use are still valid. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 15, 2013 Author Share Posted August 15, 2013 Thanks for the link, but I'm getting orders with no shipping choice shown on the Delivery tab of the Order page since the USPS change. I can tell which they meant by the cost of s/h, but something is not being handled correctly. And I've had a few potential customers let me know that they were only given the more expensive Priority International choice rather than the First Class International choice - whatever the names are now. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 15, 2013 Share Posted August 15, 2013 "no shipping choice shown on the Delivery tab of the Order page" The code I see so far uses the name of the module, not the name of the service the module provides, when displaying the Shipping Method. (That said, I also see evidence that, on Free_Shipping at least, the database column 'ship_method' in CC_order_summary holds the admin-supplied name of the module, "Free", for example, instead of the module name, "Free Shipping".) Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 15, 2013 Author Share Posted August 15, 2013 Here's a couple of screenshots - one old and one new, both going to UK. Neither one of these orders was completed, so you're seeing what CC put in. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 26, 2013 Author Share Posted August 26, 2013 I just noticed this on the customer page and wonder if that unrecognized character is what is keeping me from getting First Class Mail as the delivery choice showing on the Order Summary Delivery page. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 That "question mark in black diamond" means that your browser does not know what character to show for this character code. Which is strange because USPS started using the HTML entity number for the trademark symbol - which is supposed to be very universal. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 26, 2013 Author Share Posted August 26, 2013 And the Trademark symbol shows up for other US shipping choices - and those DO show correctly in the Order Summary Delivery box. JUST CHECKED with an International test order - Priority Mail International has the diamond, too - but it DOES show correctly in Admin. So I guess this has nothing to do with my Delivery entry erratically showing. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 I wonder... In your cache directory, do you find a file with USPS, or a USPS service name as part of the filename? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 26, 2013 Author Share Posted August 26, 2013 No, nothing readable in the cache that might have something to do with shipping. I do know our Postmaster said someone else was having trouble with the USPS's own online shipping site since the changes, but haven't noticed anyone else mentioning this issue on the forums. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 Take a look at the admin's Request Log. The Response should have the special character encoded as discussed in the link mentioned above. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 26, 2013 Author Share Posted August 26, 2013 See screenshot - now I'm even MORE puzzled. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 Other than the fact that this is what it is supposed to be, this is new. At no point in the documentation I read does it say that the USPS will be putting the Trademarked and/or Registered symbols in its Domestic rate responses. International? Sure. I mentioned somewhere (I thought in the CC4 analysis) that CC5 can handle whatever the response might be. (I will look again at the code.) You see #8482 and #174 surrounded by a lot of stuff. That's fine. But, as always, because the non-stock skin is a variable, we must remove that variable in an experiment. What, in particular, do you see as puzzling? Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 But let's try this experiment anyway: In the USPS module file, shipping.class.php, find near line 135: ## Send request Then, 17 lines down, find: 'name' => (string)$this->cleanName($option->MailService), 'value' => (string)$this->plusHandling($option->Rate), Change it to this: 'name' => $this->cleanName((string)$option->MailService), // put (string) in a different place 'value' => $this->plusHandling((float)$option->Rate), // replaced (string) with (float) and put it in a different place Then, 18 lines later, move the indicated characters for the 'name' and 'value' statements. Note: 'MailService/Rate' is for domestic while 'SvcDescription/Postage' is for international. Manually make each edit to what is indicated in each statement, don't just copy the first edits to the second. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 26, 2013 Author Share Posted August 26, 2013 Didn't seem to work. What puzzled me was that shipping options I don't have checked show up in the transaction log BEFORE I changed the code, and there was no trademark symbol, right or wrong, in the transaction. Your code made ALL the shipping options show, whether I had them checked in Admin or not. And the diamond still shows. OOPS - just saw you said to do it twice. I'll be back. OK the code shows only what it should when I follow your directions correctly, but the diamond is still there. I took a test order as far as PayPal, which makes it Pending. There is nothing in the Delivery text box in the Order Summary, so it's still not working. PS I did not clear cache, in case there was something you wanted me to check first. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 26, 2013 Share Posted August 26, 2013 Transaction Log? These are the headers on an order's TL tab table: Transaction ID Status Amount Gateway Date/Time Notes Where are shipping options showing in the TLs? But I'm not worried about the transaction log just yet. Are you actually referring to the Request Log? No, you won't find the actual symbols there. If the shipping choice is not reflected in the admin Order Summary, Shipping Information boxes, we can check if they show in the actual CubeCart_order_summary table, ship_method column. Have we already established if anything is recorded in this column? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 27, 2013 Author Share Posted August 27, 2013 Sorry for using the wrong term - I meant the I left the cache alone in case you needed me to relay the Request Log. Anyway, there is no data in the ship_method column. The last time there is a USPS supplied First Class method shown is before their last changes. I have been putting in my version of First Class in the blank so the customer email would show the shipping method. All the test ones from yesterday are empty. BUT I had to take your code off temporarily. We lost a Singapore order last night because the Request Log shows the correct USPS postage of $20.15, but the customer was charged only my handling change. That has never happened before. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 27, 2013 Share Posted August 27, 2013 To help us locate where CubeCart is losing the shipping, please enable CubeCart's "debug" mode and enter your computer's IP address (www.whatismyip.com). By entering your IP address, CubeCart will show the debug only to you. As you work through the checkout process, the debug block will show the contents of the '__basket', including the shipping choice made (but not the shipping choices prior to selection). If the shipping choice is shown after selection all the way to the "Complete" phase, then the problem is when CubeCart makes the final update to the "order_summary" table. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 27, 2013 Author Share Posted August 27, 2013 OK. I'll put your code back in and enable Debugging and create another test order. Here's what I think you need, but the page is still open if you need something different: 'shipping' => 'offset' => 1 'name' => NULL 'value' => 5.61 'tax_id' => 6 'min_shipping_set' => true 'cart_order_id' => '2013-PC-2283' 'order_status' => 1 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 27, 2013 Share Posted August 27, 2013 'name' => NULL is the "smoking gun". Now we just need to know who pulled the trigger. I'll get to it shortly. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 27, 2013 Author Share Posted August 27, 2013 That's what I figured when I saw it. Help with the Spanish urls -this can wait. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 27, 2013 Share Posted August 27, 2013 In the checkout page where you get the black diamond, please have the browser View Source, scroll to the drop-down selector HTML, and copy the series of <option> statements. Hopefully the source will show what the HTML is supposed to be in place of the diamond. You can probably do this more easily with Firebug. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 28, 2013 Author Share Posted August 28, 2013 <option value="eyJvZmZzZXQiOjMsIm5hbWUiOm51bGwsInZhbHVlIjo0LjQyLCJ0YXhfaWQiOjZ9"> $4.42 (First-Class Mail� Parcel)</option> Strange thing - ALL the shipping choices, whether I have them checked in Admin or not, are showing - happened yesterday, but I couldn't reproduce it then. Firebug does not have code for the trademark - just the diamond. I didn't take it to actually going to PP and the debug shows: 'shipping' => 'offset' => 1 'name' => 'First-Class Mail� Postcards' 'value' => 2.68 'tax_id' => 6 'min_shipping_set' => true 'order_taxes' => '0' => 'tax_id' => 9 'amount' => 1.08 Then I "paid" and again I got this: 'shipping' => 'offset' => 3 'name' => NULL 'value' => 4.42 'tax_id' => 6 'min_shipping_set' => true 'order_taxes' => '0' => 'tax_id' => 9 'amount' => 1.08 'cart_order_id' => '2013-PC-2284' 'order_status' => 1 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 28, 2013 Share Posted August 28, 2013 In Firebug, click on the <option> tag. Then click Edit. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 28, 2013 Author Share Posted August 28, 2013 <option selected="selected" value="eyJvZmZzZXQiOjMsIm5hbWUiOm51bGwsInZhbHVlIjo0LjQyLCJ0YXhfaWQiOjZ9"> $4.42 (First-Class Mail� Parcel)</option> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.