SyliusCon 2025 in Lyon
Join Us!
LogoLogo
🛣️ Roadmap💻 Sylius Demo💬 Community Slack
  • Sylius Documentation
  • Sylius Plugins
  • Sylius Stack
  • Sylius CMS Plugin
    • Installation
    • Features Overview
      • Collections
      • Content Templates
      • Pages
      • Blocks
      • Media
    • Developer Reference
      • Collections
      • Pages
      • Blocks
      • Media
      • Content Elements
      • Templates
  • Sylius Wishlist Plugin
    • Installation
  • Sylius Refund Plugin
  • Sylius Invoicing Plugin
  • Sylius Product Bundle Plugin
  • Payments
    • Sylius Mollie Plugin
    • Sylius PayPal Plugin
  • Experimental
    • Store Creator
Powered by GitBook
LogoLogo

Developer

  • Community
  • Online Course

About

  • Team

© 2025 Sylius. All Rights Reserved

On this page
  • 1. Prepare Your Environment
  • 2. Allow Symfony Contrib Recipes
  • 3. Install the Plugin via Composer
  • 4. Install Required JavaScript Packages (Optional)
  • 5. Run Doctrine Migrations
  • 6. Clear the Cache
  • Asynchronous Messenger case
  • ✅ Installation Complete!

Was this helpful?

  1. Sylius Wishlist Plugin

Installation

PreviousSylius Wishlist PluginNextSylius Refund Plugin

Last updated 8 days ago

Was this helpful?

The Sylius Wishlist Plugin introduces wishlist capabilities to your Sylius-based eCommerce platform. It allows customers to save products for later, improving user engagement and purchase intent.

Supported Version: This guide assumes you're using Sylius 2.x with Symfony Flex. If you're using a legacy setup without Symfony Flex, refer to the instead.

1. Prepare Your Environment

Before installing the plugin, ensure that your project:

  • Uses Symfony Flex

  • Runs a supported Sylius 2.x version

  • Has yarn and Symfony Encore correctly configured

2. Allow Symfony Contrib Recipes

To allow Symfony to install community recipes (such as for the Wishlist plugin):

composer config extra.symfony.allow-contrib true

If prompted during plugin installation, accept the community recipe when asked.


3. Install the Plugin via Composer

composer require sylius/wishlist-plugin

This will install the plugin and apply the Flex recipe, registering the necessary services and configuration automatically.


4. Install Required JavaScript Packages (Optional)

If you want to customize or extend the Wishlist plugin's frontend components, you may need to install JavaScript packages used in your theme.

Example (if you are extending features with modals, dropdowns, etc.):

yarn install
yarn encore dev

For production:

yarn encore production

The Wishlist Plugin does not enforce specific frontend dependencies like trix or swiper, but requires Yarn/Webpack Encore if you plan to override or extend its templates.


5. Run Doctrine Migrations

The plugin comes with database changes. Run:

bin/console doctrine:migrations:migrate

For production:

bin/console doctrine:migrations:migrate -e prod

6. Clear the Cache

Finally, clear the Symfony cache to ensure changes are applied:

bin/console cache:clear

Asynchronous Messenger case

In case you use asynchronous Messenger transport by default, there is a need to configure all Wishlist commands to sync transport. You can do this by configuring the WishlistSyncCommandInterface interface to sync transport (as presented in the code listing below).

# config/packages/messenger.yaml

framework:
    messenger:
        transports:
            sync: 'sync://'
    routing:
        'Sylius\WishlistPlugin\Command\Wishlist\WishlistSyncCommandInterface': sync

All commands from the plugin implement the WishlistSyncCommandInterface interface, so there is no need for other configuration.

✅ Installation Complete!

You should now see wishlist options in your Sylius storefront. Customers can:

  • Add products to their wishlist

  • Manage multiple wishlists (if enabled)

  • Share and move items to the cart

For further customization, refer to the or ask for help in the Sylius Community Slack.

legacy installation instructions
official plugin repository