WooCommerce: Checkout page redirects to https on localhost

Solution:

For WooCommerce version 3.6.5 go to WooCommerce > Settings > Advanced and uncheck “Force secure checkout”.