remove extra woocommerce_loop global calls; fix some whitespace issues