Installation
Last updated
Was this helpful?
Last updated
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.
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
To allow Symfony to install community recipes (such as for the Wishlist plugin):
If prompted during plugin installation, accept the community recipe when asked.
This will install the plugin and apply the Flex recipe, registering the necessary services and configuration automatically.
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.):
For production:
The plugin comes with database changes. Run:
For production:
Finally, clear the Symfony cache to ensure changes are applied:
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).
All commands from the plugin implement the WishlistSyncCommandInterface
interface, so there is no need for other configuration.
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.