Skip to content
On this page

Footer navigation


Implementing Footer navigation can be described in few steps:

  1. Use useNavigation composable to loadNavigationElements to display a navigation configured in admin panel.
  2. Iterate over navigationElements array of categories and display them.
  3. Add some static links next-to dynamic ones if needed.
  4. Resolve URLs and implement dedicated pages for it.

Code Example

<script setup lang="ts">
import { useNavigation } from "@shopware-pwa/composables-next";
import { getCategoryRoute } from "@shopware-pwa/helpers-next";
const { navigationElements, loadNavigationElements } = useNavigation({
  type: "footer-navigation", // footer-navigation selected
  // invoke an API call to fetch navigation categories
  depth: 1,
    <footer v-if="navigationElements.length" class="bg-white dark:bg-gray-900">
      <div class="mx-auto w-full max-w-screen-xl">
        <div class="grid grid-cols-2 gap-8 px-4 py-6 lg:py-8 md:grid-cols-4">
          <div v-for="category in navigationElements" :key="">
              class="mb-6 text-sm font-semibold text-gray-900 uppercase dark:text-white"
              {{ category.translated?.name }}
              class="text-gray-500 dark:text-gray-400 font-medium"
                v-for="childCategory in category.children"
                  >{{ childCategory.translated?.name }}</a
<style scoped>
.v-leave-active {
  transition: opacity 0.5s ease;

.v-leave-to {
  opacity: 0;

getCategoryUrl method imported from helpers-next package can extract a SEO Url or technical URL for given category.


getCategoryUrl returns absolute path for corresponding category, which means you will get for example /some-category/some-subcategory and not the entire URL including domain.

By design, the URL can point also to the Product or Landing Page. In order to resolve an entity assigned to each category path, utilize a composable dedicated for expected entity:

  1. search from useNavigationSearch to find entity type.
  2. use dedicated composable to process page resolving.
Footer navigation has loaded