1. First check products exist or not into WordPress dashboard Go to left sidebar > under Products
  2. If product exist then Go to settings > permalinks > click on bottom side 'save changes' button. Then clear caches.