2017 © Pedro Peláez
 

symfony-bundle sylius-order-association-bundle

Order association bundle for the Sylius e-commerce platform.

image

webburza/sylius-order-association-bundle

Order association bundle for the Sylius e-commerce platform.

  • Thursday, July 7, 2016
  • by ychanan
  • Repository
  • 5 Watchers
  • 4 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Sylius Customers Also Bought Bundle

Version Build Status, (*1)

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., (*2)


Installation

  1. require the bundle with Composer:, (*3)

    $ composer require webburza/sylius-customers-also-bought-bundle
    
  2. enable the bundle in app/AppKernel.php:, (*4)

    public function registerBundles()
    {
    $bundles = array(
      // ...
      new \Webburza\Sylius\CustomersAlsoBoughtBundle\WebburzaSyliusCustomersAlsoBoughtBundle(),
      // ...
    );
    }
    
  3. 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:, (*5)

    webburza_sylius_customers_also_bought:
      association_limit: 5
    
  4. 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., (*6)

    $ app/console webburza:sylius-customers-also-bought:generate
    

    If the command is behaving unusually or if you want more information on what it's doing, add a verbosity flag (-v), (*7)

    You can also specify the association limit via an option when you run the command., (*8)

    $ app/console webburza:sylius-customers-also-bought:generate --limit=5
    

Tests

For tests we use Behat scenarios. After you run composer install (on the bundle itself, not your application), run the tests via:, (*9)

bash $ vendor/bin/behat, (*10)

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., (*11)

License

This bundle is available under the MIT license., (*12)

The Versions

07/07 2016

dev-master

9999999-dev

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products

07/07 2016

dev-feature/behat

dev-feature/behat

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products

05/07 2016

v0.2.2

0.2.2.0

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products

18/06 2016

v0.2.1

0.2.1.0

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products

09/06 2016

v0.2.0

0.2.0.0

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products

03/06 2016

v0.1.0

0.1.0.0

Order association bundle for the Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius association web.burza webburza related products