Skip to content

Commit

Permalink
OP-544 - Update to Sylius 2 - update installation readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 22, 2025
1 parent 9554bb6 commit 25bf5b1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions doc/01.1-webpack-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ webpack_encore:
{{ encore_entry_link_tags('bitbag-cs-admin', null, 'cs_admin') }}
```

If the following directories and files do not exist, create them:

1. Directory for admin templates:
- `templates/bundles/SyliusAdminBundle/`
- File: `_scripts.html.twig`
- File: `_styles.html.twig`

2. Directory for shop templates:
- `templates/bundles/SyliusShopBundle/`
- File: `_scripts.html.twig`
- File: `_styles.html.twig`

Please note, the template file paths may differ, depending on Sylius version.

5. Run `yarn encore dev` or `yarn encore production`
14 changes: 13 additions & 1 deletion doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ We work on stable, supported and up-to-date versions of packages. We recommend y

## Composer:
```bash
composer require bitbag/crossselling-plugin --no-scripts
composer require bitbag/crossselling-plugin --no-scripts -W
```

## Basic configuration:
Expand Down Expand Up @@ -145,6 +145,18 @@ SyliusShopBundle:
{{ encore_entry_link_tags('bitbag-cs-shop', null, 'cs_shop') }}
```

If the following directories and files do not exist, create them:

1. Directory for admin templates:
- `templates/bundles/SyliusAdminBundle/`
- File: `_scripts.html.twig`
- File: `_styles.html.twig`

2. Directory for shop templates:
- `templates/bundles/SyliusShopBundle/`
- File: `_scripts.html.twig`
- File: `_styles.html.twig`

### Run commands
```bash
yarn install
Expand Down

0 comments on commit 25bf5b1

Please sign in to comment.