I'm offering Pickup and Shipping on my site.
For products which I can do both it works.
I want some products never to be shipped, because their simply to heavy.
So if I can hide shipping for products that are way to heavy for shipment and only display pickup as an option.
It works if I let OSC 2.2 do it on price, with the following code in the shipping module.
if ( ($this->enabled == true) && ($order->info['total']>= 100) ) {
$this->enabled = false;
}
What would be to code to do it base on weight?
This doesn't seem to work for me:
if ( ($this->enabled == true) && ($shipping_weight >= 100) ) {
$this->enabled = false;
Should be easy feeling kinda stupid that nothing seems to work!