Use checked() instead of old legacy code.
Default to add_to_cart as the proper action_button value, otherwise, grab the first value.
Eliminate notices on sales log page when shipping is disabled and/or shipping fields are hidden or removed.