Setting up ShopUiCompatibility Module in the Legacy Demoshop

The ShopUiCompatibility module is the main module necessary for the Atomic Frontend. This module is provided in SCOS by default.

The following guide describes how to set up the ShopUICompatibility in the Legacy Demoshop.


To install ShopUiCompatibility module in the Legacy Demoshop, follow the instructions below.

  1. ShopUiCompatibility requires ShopUi module of a version no older than 1.7.0. If you don't have it, run
    composer require composer require spryker-shop/shop-ui "^1.7.0"
  2. Add the following line to ./src/Pyz/Yves/Application/YvesBootstrap.php:
    use SprykerEco\Yves\ShopUiCompatibility\Plugin\Provider\ShopUiCompatibilityTwigServiceProvider;
  3. Add the following line to ./src/Pyz/Yves/Application/YvesBootstrap.php, at the very end of the protected function registerServiceProviders() {:
    $this->application->register(new ShopUiCompatibilityTwigServiceProvider());
  4. Add the following section to ./package.json:
    "config": {
    "shopUiCompatibilityPath": "./vendor/spryker-eco/shop-ui-compatibility/assets/Yves",
    "yvesPath": "./assets/Yves/default",
    "zedPath": "./node_modules/@spryker/oryx-for-zed"
  5. Replace the script section in ./package.json with this:
    "engines": {
    "node": ">=6.0.0"
  6. Change ./src/Pyz/Yves/Application/Theme/default/layout/layout.twig as follows:
    	<meta charset="utf-8" />
    	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    	<meta name="description" content="{{ page_description | default('') | trans }}" />
    	<meta name="keywords" content="{{ page_keywords | default('') | trans }}" />
    	<meta name="generator" content="spryker" />
    	{% block page_meta %}{% endblock %}
    	<link rel="stylesheet" href="/assets/default/shopui/css/" /> <!-- add this line here, before any other style -->
    	<link rel="stylesheet" href="/assets/default/css/vendor.css" />
    	<link rel="stylesheet" href="/assets/default/css/app.css" />
    	{% block stylesheets %}{% endblock %}
    	<script src="/assets/default/shopui/js/yves_default.runtime.js"></script>  <!-- add this line here, before any other script -->
    	<title>{% block page_title %}{{ page_title | default('') | trans }}{% endblock %}</title>
  7. Add the following lines to ./src/Pyz/Yves/Application/Theme/default/layout/layout.twig, at the very end of the body, after any other script:
    <script src="/assets/default/js/vendor.js"></script>
    	<script src="/assets/default/js/app.js"></script>
    	<script src="/assets/default/shopui/js/yves_default.es6-polyfill.js"></script> <!-- add this line here, after any other script -->
    	<script src="/assets/default/shopui/js/yves_default.vendor.js"></script> <!-- add this line here, after any other script -->
    	<script src="/assets/default/shopui/js/"></script> <!-- add this line here, after any other script -->
    	{% block javascript %}{% endblock %}
  8. Add all the files from this ZIP-archive to the root of your project.

    Files in folders must be copied to the same folders.


See also:


Last review date: October 30th, 2018