Skip to main content

Updating themes to Ceres 3.0

1. Updating themes to Ceres 3.0

The major release of Ceres 3.0 in mid-January includes a number of changes to the code that are of particular importance for theme developers, since they necessitate adjustments to the themes. This manual page explains which components and directives have been removed from Ceres and which adjustments are necessary for your theme to work properly after the update.
This page serves to highlight the biggest sources of potential errors. Please take a look at the current version comparison on GitHub  for a complete overview of the changes.

2. Removed directives

The following directives have been globally removed in Ceres 3.0:

  • v-render-category

  • v-is-loading-watcher

  • v-update-sidenav-selection

Furthermore, the directive v-hover-mega-menu has been renamed and is now called v-navigation-touch-handler.

3. Added components

The component Ceres::ItemList.Components.CategoryItem refers to the item tile and is no longer used by Ceres 3.0. The item tile had formerly been included by the now obsolete component Ceres::ItemList.Components.ItemList.

4. Removed and changed components

The following components have been removed or are now included via Twig:

- Ceres::ItemList.Components.ItemList - Ceres::ItemList.Components.CategoryImageCarousel - Ceres::Category.Item.Partials.CategoryListItem

- Ceres::ItemList.Components.ItemListSorting » Ceres::Category.Item.Partials.ItemSorting - Ceres::ItemList.Components.ItemsPerPage » Ceres::Category.Item.Partials.ItemsPerPage - Ceres::ItemList.Components.Pagination » Ceres::Category.Item.Partials.Pagination

The following code examples demonstrate which lines in your code might have to be removed, so that removed components are not accidentally called upon, and which command now serves to implement the function in Ceres 3.0. The adjustments refer to the two files /resources/views/ItemList/ItemListView.twig and /resources/views/Category/Item/CategoryItem.twig. The three periods […​] are to be understood as omissions, since the relevant lines of code do not necessarily have to directly follow in sequence. The parameters used in the code snippets can, of course, deviate from the ones used in your theme.

The following lines have to be removed:

<item-list-sorting template="#vue-item-list-sorting" :sorting-list="null" :default-sorting="null"></item-list-sorting>


{% include "Ceres::Category.Item.Partials.ItemSorting" with { 'sortingData': searchOptions.sorting, 'selectedSorting': itemSorting } %}

The following lines have to be removed:

<items-per-page template="#vue-items-per-page" :pagination-values="null"></items-per-page>


{% include "Ceres::Category.Item.Partials.ItemsPerPage" with { 'itemsPerPage': searchOptions.itemsPerPage, 'selectedValue': itemsPerPage } %}

The following lines have to be removed:

<pagination template="#vue-pagination"></pagination>


{% include "Ceres::Category.Item.Partials.Pagination" %}

5. Further adjustments

  • In the file resources/views/MyAccount/Components/OrderHistory.twig, the pagination call now includes the parameters via with:

{% include "Ceres::Category.Item.Partials.Pagination" with { 'currentPage': page } %}
  • In the file resources/views/PageDesign/Partials/Header/Header.twig, the script must now be included, since elements might disappear behind the header:

{% set scriptId = uid() %}
<script id="">
    document.getElementById("vue-app").style.marginTop = document.getElementById("page-header").getBoundingClientRect().height + 'px';

6. Bootstrap 4.2.1 adjustments

With the release of Ceres 3.0 in mid-January, the Bootstrap framework is updated from version 4.0.0-alpha.3 to version 4.2.1. Due to the update, theme developers will have to make the following adjustments regarding the names of CSS classes and variables.

Tabelle 1. Adjustments to class names
Previously Now

































Theme developers need to check these classes in connection with different breakpoints (xs, sm, md, lg, xl), direction (left, right, etc.) and spacer. Spacer values have changed, as well, and need to be adapted as follows:

Tabelle 2. Adjustments to spacers
Previously Now











The following CSS variables have been renamed and have to ba adjusted:

Tabelle 3. Adjustments to variables
Previously Now















If you considered all of the changes specified on this manual page and checked the version comparison on GitHub, your theme will be ready for Ceres 3.0.

To top