Closed (outdated)
Project:
Ubercart Product Quote
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2011 at 19:21 UTC
Updated:
10 Sep 2021 at 22:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
end user commentedIs it possible to get a patch for Canada post?
Comment #2
stesind commentedThank you for the patch! Unfortunately if I use patch < ... with the actual dev module I only get errors that the patch cannot be applied. Is there a trick? Can you upload your version of the module?
Comment #3
cyborg_572 commented#1 - I'll look into this next chance I get, if it's structured like the other shipping modules then it shouldn't be too much trouble.
#2 - I've only been using git since about a week before I made these patches, so I have to ask: do git patches usually work with a standard patch command like that? I probably should have mentioned these are all git patches. Also, since I was just getting the hang of git when I made these, they may very well be broken. I don't have the files on this computer, so I will look into this when I get a chance. Keep me posted if you figure out anything about what the problem is before then.
Comment #4
stesind commentedThank you for the answer! I found out in the meantime that you are using a git repository. I created one and applied the patches there. But since I had enabled the module before the changes in the tables were not applied. Uninstalling the module unfortunately does not uninstall the tables. I already deleted the tables and the entry in system but it did not help. Have to investigate more.
Comment #5
cyborg_572 commentedThe extra tables shouldn't be too much of an issue. They'll sit there taking up a bit of space, but they shouldn't get in the way or anything.
Comment #6
cyborg_572 commentedI finally got a chance to try and put together a patch for Canad Post too. I don't have a very good test environment for these kinds of modules right now though, so in theory this patch should work.
Comment #7
djg_tram commented@cyborg_572, could you just zip the whole package as it is working for you now and attach to a message here? I'd also need a D7 port and I'm willing to do it in the coming weeks, when I'll have some time to spare. We should also contact the original maintainer to see if she or he is still willing to maintain the product or whether it is abandoned.
Comment #8
djg_tram commentedI went deeply into it and that's not so simple. There are numerous issues in the original module, including some misunderstanding of how FAPI actually works, that you couldn't really sort out with those patches. The way you hooked the quote filter to Fedex is an issue for me, for instance, because I don't have Fedex over here in Europe... :-)
Also, this is not a safe way to handle database queries, besides, this duplication of tables is really unnecessary, simply a single table with a flag in each record whether it is a product or a class would be just fine. So, it would really need a major rewrite but that should preferably happen for D7 now but if you need it for D6, we could do it in parallel. But I'll contact AntoineSolutions first to see how we can proceed.
Comment #9
cyborg_572 commentedThe original version is tied to fedex, my patch removes that dependency, unless I missed something somewhere. I'm going to try and get this up in a sandbox project at some point today. I've got some updated patches for the new versions of UPS and USPS shipping that will go up with it. I'll post here when that happens.
Comment #10
djg_tram commentedThen I got lost among versions and patches. I'd need to rectify it, even if still somewhat ugly inside, for a site, the problem is that I have at least twenty other things to do at the same moment... :-)
I wrote to the project maintainer, we'll see what reply we get. It might be abandoned or we might get access to co-maintain it, after all, and then we can commit right here, that would be the best solution. I rewrote the admin form to handle FAPI properly, also needed to add some extra handling for UC Flatrate that seems to be a minor nuisance. I'll contact you by PM, then I can send you my current version (it can save but doesn't work right now because of the Fedex dependency). If you can see how this compares to your non-Fedex version, we can have something already working by the time Antoine Solutions replies back.
Comment #11
cyborg_572 commentedI've misplaced the original repo I made this patch from, but I've cloned the orignal and patched it and confirmed that it is character-for-character identical to the version of this module being used in production on one of our client sites, and it seems to be working perfectly there. I then added all the shipping module patches into a subfolder.
Find it here: http://drupal.org/sandbox/cyborg_572/1363828
Master branch is identical to the master branch here, "sandbox" branch has all the fixes for now.
Comment #12
djg_tram commentedYes, I've just seen it. And I've just received an e-mail from Jon Antoine saying that he no longer can maintain it and would be happy to pass it along, provided the persons have Git access. We do have that, so I endeavored to accept the responsibility :-) and mentioned that you might also be interested in doing it together, although I haven't promised anything in your name, of course.
But if you agree, we could do it for sure, actually, first we could finish up the D6 branch and then it could be ported to D7 easily. In this case, you could simply commit whatever changes you have here, without the need for the sandbox.
Comment #13
cyborg_572 commentedOkay, so then what I will do is
createmerge intocreate the 6.x-1.x branch, tag it 6.x-1.0 (or 6.x-1.x-beta1? Is that how that works? In the state I have the module, it is working) and then when you give me access I will push that, and then see how it goes from there.Does that sound good to you, does it make sense? I don't do a whole lot of module maintenance, so I'm always a bit unsure of the right way to structure these things.
EDIT: the branch was there already.
EDIT 2: I'm getting confused by the tags/branches whatever, and typing before I finish figuring things out.
Comment #14
avpadernoI am closing this issue, as it has been created for a release that is now not supported.