Closed (fixed)
Project:
Ubercart
Version:
7.x-3.11
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2018 at 15:56 UTC
Updated:
26 Apr 2018 at 03:49 UTC
Jump to comment: Most recent
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
Comment #2
tr commentedThe 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.
Comment #3
k.floyd commentedMy 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.