Firstly, you need to activate the WooCoomerce Plugin to display the WooCommerce cart icon in menu bar. Then,
- Go to Appearance > Customize > WooCommerce > Design
- Go to Cart Icon.
- Put a checkmark on Check to show WooCommerce cart icon on menu bar.
- Click on Publish.