Hi,

I am wanting to override uc_usps_quote in a custom module, in order to fix the USPS first class shipping API issue (mentioned here https://www.drupal.org/project/ubercart/issues/2879270) without using a patch. I am fairly new to working with Drupal modules, so am looking for some guidance. My understanding is that I need to use a hook_alter, but there are only certain hook_alters. So, I need to find a hook_alte that calls uc_usps_quote, or that calls a function that calls uc_usps_quote.

If anyone could give any further guidance on this, I would appreciate it.
Thanks!

Comments

k.davis created an issue. See original summary.

tr’s picture

Assigned: k.floyd » Unassigned
Priority: Major » Normal
Status: Active » Fixed
Issue tags: -uc_usps, -shipping quote

The correct way to do this in Drupal is to contribute to the issue at #2879270: USPS Quotes Doesn't support "First-Class Package Service". By contribute, I mean test the patch and post your experience with it - does it work, not work, cause other problems, etc.? Help to finish any unfinished parts of that issue and post your work so others can use it. That way this fix can get into Ubercart and benefit EVERYONE, not just yourself.

k.floyd’s picture

My understanding, from that thread or another, is that for it to get into Ubercart requires someone going through the USPS API and looking for other changes. That is why we are looking for another option - that isn't something we can realistically do.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.