Hi all,

I'm trying to build an Ubercart module / patch. It's not working out very well though. I'm more a graphic designer than a module developer, but I tried to fix it anyway. I tried something and it did not work. I have no clue where the error(s) may be.

What I want is a condition for shipping quotes to compare a product's dimensions with the given custom dimensions.
I tried two sollutions: (both failed)

First was to actually compare the size of the products with the given custom dimensions. This was based on the Weight-condition.
The code of what I've got is here: http://www.ubercart.org/forum/support/12504/flatrate_based_dimensions

Second attempt was based on the 'product is shippable' option. This would just be a checkbox that the user has to check per product to confirm that that product is smaller than an certain size. Trough conditions I would look if all products in the Cart would be checked or unchecked. Problem here is that my checkbox won't even save. Code for this you can find here: http://www.ubercart.org/forum/development/12847/checkbox_product_shippable

I'm aware that I just hacked the code, placing all my own code right in between other functions. This is because I first thought to make a patch of this, but in the end it's probably easier to build my own module. But I haven't exactly figured out yet how to use the hook_nodeapi().

I'm not asking for code here, but if you would take a look at the code and if you would see a mayor flaw (besides the hacking in the files), can you please communicate this with me because I have absolutely no clue of what I can do next.
Any help is much appreciated.
Thanks in advance!
Cheers,
Danny