I didn't say it wasn't working as it's supposed to, I said that it shouldn't. Not because I can't ship on that table more that certain weight, should mean that over that limit will be free shipping, because that should be controlled by the free shipping options module. That's why you see other people coming to this code to edit the functionality.
Yes, and I tried it again with your code after the mentioned line and nothing. (check screenshots)If you want it to not be valid after that, you have to add logic, like what Ajeh suggested.
// final check for display of Table Options
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() > 3.7) {
$this->enabled = false;
} else {
$this->enabled = true;
}
Bookmarks