Skip to content
Last update: November 24, 2023

Themes

The Virto Commerce Theme is a frontend application for your ecommerce websites. The default Theme is included in the VC Content module and is provided out of the box. The default theme consists of the following folders with files that define the Storefront UI:

Folder Content
assets Scripts, styles and other assets compiled and minified for production.
config The Virto theme settings. It contains:
menu.json with the theme menu settings.
routes.json (autogenerated) with SPA routes for Storefront application.
settings_data.json with theme configurations. You can enable/ disable quotes and product comparison, set limits for the lists, set statuses for quotes and orders, and much more.
layouts Layout templates used to render the theme within the Storefront.
locales Locale files used to provide translated content for the theme.
snippets Liquid snippets, included in Liquid templates.
templates Liquid templates, used in SSR and MPA. Each MPA page must have a liquid template here if you want SSR.

The theme structure should be predefined in advance and is created by a developer.

The Virto Commenrce Content module allows you to:

  • Add as many themes as needed.
  • Set an active theme to be displayed on the Storefront.

Managing theme includes:

Add new theme

To add a new theme:

  1. Click Content in the main menu.
  2. Select the store from the list t=in the next blade.
  3. Click on the Themes widget.
  4. In the Themes list blade, click Add in the toolbar.
  5. Enter the name of the new theme.
  6. Click Create to create your new theme.

add new theme

The new theme appears it in the themes list.

Upload new theme

To upload a theme zip file:

  1. Click Content in the main menu.
  2. Select the store from the list in the next blade.
  3. Click on the Themes widget.
  4. In the Themes list blade, click Upload in the toolbar.
  5. Drag and drop or browse the zip file.

upload new theme

Once the zip file has been uploaded, it will be unzipped and added to the Themes list.

If a new theme has been created by the developer, it can be uploaded to a new environment using a zip file.

Activate theme

To activate the theme:

  1. Click Content in the main menu.
  2. Select the store from the list in the next blade.
  3. Click on the Themes widget.
  4. In the Themes list blade, click the three dots to the left of the desired theme and click Set active.

activate theme

The theme is now active.

Manage theme assets

To manage the theme assets:

  1. In the Themes list, select the desired store.
  2. Click the three dots to the left of the folder to copy its link or delete it.
  3. Click the three dots to the left of the file to copy its link, download, or delete it.

assets