Jump to content



Latest News: (loading..)

- - - - -

USPS Rate V4, Intl Rate V2 (official support thread)


  • Please log in to reply
470 replies to this topic

#121   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 05 April 2012 - 10:10 AM

Okay, I just installed on an oscMax site, which is basically a maxed out 2.2 shop, and didn't have any problems at all.  Skipped the checkout_shipping parts, overwrote the usps.php files, and modified the two files in admin.

Problems are most likely to arise either from installation error, configuration error, from outdated php, or some other errors.  But, the script works fine, even in 2.2 shops.

There is a debug code in here.  It's the one commented line in the usps.php file.  Just remove the comment and test the site and check your email for a response.  I intentionally set it up so that if it threw an error, the error would not show on the PUBLIC checkout page.  Errors shown on a checkout page are tacky, distasteful, and unprofessional.  It's not the customer's responsibility to deal with script bugs.  It's the webmaster's responsibility.  So, if the screen is blank, it's possible that you ARE getting a response, but that the response is an error.  Start with that line of code and see what USPS sends you, if anything.

#122   altoid

altoid
  • Community Sponsor
  • 740 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 05 April 2012 - 11:25 PM

Jetta, this is just some feedback for you re the options restrict methods.  What made me mention this is the "radio button" issue you posted in simple checkout.

Anyway, I have one shop I added "restrict methods"  to and have noticed the radio buttons don't stay selected.  However the add on still works.

So for example:

Restrict USPS Shipping Methods

First-Class MailRM Parcel

Priority MailRM

Show unchecked, but in the database  products>usps products restricted, the data shows correctly as:

First-Class MailRM Parcel, Priority MailRM,

So even if the buttons don't stay checked in the display it works.  Yesterday a customer purchased a product I get drop shipped at the fixed rate, and the fixed rate was all that showed.

Again, just feed back.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC.  It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce.  Look around, you'll figure out who they are.

#123   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 12:49 AM

i installed your mod, very cool. gave alot more options, hopefully i do it correctly....

1 issue i saw in the admin area was when i clicked on catalog and that expanded, i saw soem scroll bars around it instead of it being listed like regular. i have attached a screen shot. any ideas?

Attached Files



#124   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 01:06 AM

and what does

Retail pricing or Online pricing?
Online

mean?

#125   altoid

altoid
  • Community Sponsor
  • 740 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 06 April 2012 - 02:04 AM

View PostGoTTi, on 06 April 2012 - 01:06 AM, said:

and what does

Retail pricing or Online pricing?
Online

mean?

I believe that's buying postage at the PO vs buying postage at usps.com.  it's cheaper on line.
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC.  It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce.  Look around, you'll figure out who they are.

#126   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 02:11 AM

can i stop the total weight from showing on checkout_shipping.php?

United States Postal Service X lbs, X oz

i dont want that to show

Edited by GoTTi, 06 April 2012 - 02:11 AM.


#127   kepa

kepa
  • Members
  • 198 posts
  • Real Name:kepa

Posted 06 April 2012 - 02:17 AM

View Postoscas, on 03 April 2012 - 11:42 PM, said:

Kepa:

I use oscommerce as well. We recently had to upgrade our USPS shipping calculator to USPSmethods 6.1a and it does work but First class mail shipping does not work.  Does First class mail work (I am in the US and use First Class mail domestic) on your installation? Is so, did you do anything special that you remember to get it to work?

Thank you for your time.

Hi,

Thanks Jetta for helping. I am sorry that this post is about the 6 contribution but I didn't know how else to respond quickly or where.  I am still going to try to finish installing this one probably this weekend, tackle the apostrophe as I think that is what is holding me up -- funny escaping it didn't work either in the admin, it had to be spelled out...

6.1It seems to work for me.  I ship in the US also and it is my understanding the First Class is 13 oz. or under and anything else is either Parcel Post (or suggested to send, Priority Mail).   So perhaps it is just a display issue?  When I add an item that is just a few ounces to my cart, what shows is the following as one of the USPS options:
[img]USPS[/img] United States Postal Service  (1 pkg, 0.47 lbs total) (
---Delivery Confirmation
---Approximate delivery time from mailing date 1 day) $4.33 [select]

Which I have been assuming that this is First Class or Parcel Post depending on the weight, it just doesn't say it (you can probably rig an if-then so that it shows appropriately).  I may be wrong, but that looks like a First Class rate (I add $1.50 in handling).

Hope this helps,
Kepa

Edited by kepa, 06 April 2012 - 02:20 AM.


#128   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 06 April 2012 - 02:27 AM

@altoid

Checkboxes aren't being autofilled when the page is refreshed?  So, if you save it, you lose the previous state and they become unselected, right?  That would be a scripting error.  I will be looking into that tonight.  Thanks for bringing it up.

@GoTTi

Hmmm, cool screenshot.  I hate when that happens.  Will look into that too and see if I can replicate it.

Retail is counter rates - what you pay at the post office.
Online is commercial rates - what you pay online

Use the rates that actually apply to you because the associated services are also based on how you buy your postage.  In other words, don't charge retail rates if you print online unless you plan on going to the post office when someone chooses a service that isn't available online.  If you buy online but want a premium rate, then add it to the handling.

You can exclude the weight.  Someone asked that in the first day this was contributed, so find page 1 of this thread and the answer is either on that page or the next one.

@kepa

Nope, I'm not answering questions about 6.1.  I didn't write it, peeked at the code and it was far too busy for me.  So, instead of messing with that, I wrote a new one from scratch.  I did contribute USPS methods 5.2.2 though and might not be so hesitant to respond to questions about that one.

#129   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 02:44 AM

is there any code or something you want me to paste in here that could possibly tell you what is causing those scroll boxes?

#130   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 06 April 2012 - 02:52 AM

Nope, not unless it's an alteration you might have done to cause it.  Otherwise, I already have the scripts.

#131   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 02:53 AM

ok. and i took off the weight. thanks. please add that to your zip file, maybe like a "extra mods.txt" file or something that gives us a few things we could do until you make that one of your checkbox options (if you do) ;)

#132   GoTTi

GoTTi
  • Members
  • 448 posts
  • Real Name:GoTTi

Posted 06 April 2012 - 02:55 AM

hmm now the scroll box is not there on my admin part of the catalog....its showing regular. no idea. maybe it was a issue with my browser? seems to be "lagging" on loading the admin area side panels when i click them here n there. i dunno, couldve been something on my end. but it only started to do this when i added this mod. didnt notice it the past 5 days ive been biolding this store with items.

#133   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 06 April 2012 - 06:04 AM

Alrighty, so after installing a vanilla 2.2rc2a shop and making it compatible with my server, I went ahead and whipped up a mod just for you 2.2 folks.  No jquery, just a tiny bit of plain old javascript in the admin section.

You should find this extremely easy to install.

BUT, I warn you, it will NOT work unless you're on a server running php 5.2 or higher.  I didn't change the core data manipulation, just the jquery stuff.

http://addons.oscommerce.com/info/8403

#134   a.forever

a.forever
  • Members
  • 199 posts
  • Real Name:Kevin
  • Gender:Male

Posted 06 April 2012 - 06:57 AM

Looks fantastic! Couple concerns though. First, what happened to First-Class Letter? Second, how do extra services work? Asides from those, it looks like a dream come true.

#135   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 06 April 2012 - 07:42 AM

Uploaded a new package with your first class letters.  Just didn't include it.  Don't know why.

Also noticed that the debug line wasn't commented.  So, I fixed that.

Extra services - If you pay for them, then include them.  It'll be calculated and tacked onto the cost of shipping.  They aren't optional to the customer in this version.  Only optional to the shop owner.

#136   a.forever

a.forever
  • Members
  • 199 posts
  • Real Name:Kevin
  • Gender:Male

Posted 06 April 2012 - 08:03 AM

Thanks for the First-Class Letter domestic. Hate to add-on to issues, but First-Class International Letter isn't there either.

I figured the extra services were forced, but I don't see their prices adding to any shipping service.

Edit: Additionally, It doesn't seem the max weight limit is inclusive (not that it really matters since my present workaround is to add 0.001 to the weight.

Edited by a.forever, 06 April 2012 - 08:18 AM.


#137   altoid

altoid
  • Community Sponsor
  • 740 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 06 April 2012 - 09:44 AM

View Postfulluvscents, on 06 April 2012 - 02:27 AM, said:

@altoid

Checkboxes aren't being autofilled when the page is refreshed?  So, if you save it, you lose the previous state and they become unselected, right?  That would be a scripting error.  I will be looking into that tonight.  Thanks for bringing it up.


Jetta, it would be like this.   In page edit I restrict some methods, and save.   Next time I viist that same product in the edit page, the usps methods I previously checked  are unchecked.   Or maybe just one is unchecked, but the other checked.

However the restriction still seems to work and in the DB the restrictions show in the appropriate products field.

Thanks
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC.  It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce.  Look around, you'll figure out who they are.

#138   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 06 April 2012 - 11:12 AM

Quote

but First-Class International Letter isn't there either.

It is now.

@altoid

I think it's unchecking the last checkbox.  I notice it too.  Will work on a fix for that.

#139   jeffreyice1

jeffreyice1
  • Members
  • 5 posts
  • Real Name:Jeffrey Ice

Posted 07 April 2012 - 02:07 AM

Jetta, Can you tell me where to remove the extra ' (THAT DOES SOUND LIKE MY PROBLEM)!!! I need to know where to change in files!!

#140   fulluvscents

fulluvscents
  • Members
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 07 April 2012 - 03:39 AM

@jeffreyice1

I looked into that yesterday when I changed the mod around for the 2.2 sites, and realized that I did not add any apostrophes in the db entries.  So, I think we are still at a loss on the issue you're having.  I was hoping to run into something, but just haven't yet.