The product pages for WooCommerce already has support for a sidebar you simply need to go to Appearance > Customize > WooCommerce > Single and change the “Layout” option to either “Left Sidebar” or “Right Sidebar”.