This is how a form widget looks like for a vocabulary with nested terms, when configured to be rendered as a checkbox list:

For D7, you can use the Taxonomy Term Reference Tree Widget module to improve how this widget works, but I believe that all the bell and whistles it offers would be too much for core. We should just get rid of the dashes from the checkbox labels and add indentation to the checkboxes. It would be so much better and more readable like so:

Related: https://drupal.stackexchange.com/questions/85011/how-to-get-rid-of-the-s... https://drupal.stackexchange.com/questions/121053/add-class-to-sub-taxon... https://www.drupal.org/project/drupal/issues/648264 (Core taxonomy.module issue, pending since 2009 - although for dropdowns)
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE