Download the PHP package webburza/sylius-customers-also-bought-bundle without Composer
On this page you can find all versions of the php package webburza/sylius-customers-also-bought-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webburza/sylius-customers-also-bought-bundle
More information about webburza/sylius-customers-also-bought-bundle
Files in webburza/sylius-customers-also-bought-bundle
Package sylius-customers-also-bought-bundle
Short Description Customers also bought bundle for the Sylius e-commerce platform.
License MIT
Informations about the package sylius-customers-also-bought-bundle
Sylius Customers Also Bought Bundle
This bundle adds a command to generate product associations from existing orders to Sylius e-commerce platform. Those associations can be used to show a "Customers Who Bought This Item Also Bought" section.
Installation
-
require the bundle with Composer:
-
enable the bundle in
app/AppKernel.php: -
Configure a limit for associations per product. This way you can associate only the most often bought together products to each product. To configure the limit add this to your
app/config/config.yml: -
This bundle adds a console command that either generates or updates associations for all products. You should run it initially to generate associations and after that periodically to update them. It will create a new association type and use it for all generated associations.
If the command is behaving unusually or if you want more information on what it's doing, add a verbosity flag (-v)
You can also specify the association limit via an option when you run the command.
Tests
For tests we use Behat scenarios.
After you run composer install (on the bundle itself, not your application), run the tests via:
The tests will run on a cleanly installed application, using in-memory SQLite database, to minimize configuration required on the system. This does however mean that you need to install/enable SQLite if you don't already use it.
License
This bundle is available under the MIT license.