I did add the $shipping_weight in the table shipping option.
The tableshipping option can calculate the shippingcosts based on price or weight.
Some smart guys figured out posted it on the web, that the shipping is based on weight if the product has a weight configured and that works nicely. (except I have non shippable cheap items that's a problem)
so I figured out if I can hide the shipping option by maximum weight and fill in the weight of a product that i do not want ship, and make all those products very heavy it won't show up if in the cart is one of them.
I'm not a php guru but somehow after some tinkering it now works!! I'm clueless why.
I seen a lot of people asking for it but no real answer.
used this code on :
var $code, $title, $description, $icon, $total_weight, $enabled;
if ( ($this->enabled == true) && ($shipping_weight >= 100) ) {
$this->enabled = false;
The shipping_weight option was allready in the code default, because of the table shipping calculation option needs the weight to figure out shipping.