2017 © Pedro Peláez
 

sylius-plugin reward-plugin

Add reward program to sylius application

image

snake-tn/reward-plugin

Add reward program to sylius application

  • Sunday, November 5, 2017
  • by Snake-Tn
  • Repository
  • 2 Watchers
  • 4 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 75 % Grown

The README.md

Build status on Linux, (*1)

Reward plugin for sylius

About

Reward plugin for sylius is used to give reward points to loyal customers under certain conditions. Customers can spend their earned points to have discount on future orders., (*2)

Use case

Reward plugin is customizable to satisfy the majority of e-commerce requirments. However, it's developed in a manner to make it easy for customization., (*3)

The reward program target which customers?

Per default, any customer is part of reward program. However, it's possible to restrict target customers to a specific list of groups., (*4)

When a customer earn reward points?

A customer will earn reward points if he satisfy certain rules, bellow a list of v1 rules., (*5)

  • Give customers [X] reward points on every [Y] euro spent.
  • Give customers [X] reward points on every order having a total higher than [Y] euro.
  • Give customers [X] reward points on every product bought from [L] products list.

Also, an administrator can manually give any customer a number of reward points., (*6)

How a customer can spend his earned reward points?

Per default, reward points can be used to apply discounts on any product. However, it's possible to black-list certain products., (*7)

Setting up the plugin

1) Download the plugin

$ composer require snake-tn/reward-plugin

2) Enable the plugin

Enable the plugin by adding the following line in the app/AppKernel.php file of your sylius project:, (*8)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \SnakeTn\Reward\RewardPlugin(),
        ];

        // ...
    }
}

3) Update routing configuration

// TODO, (*9)

4) Update DB schema

$ bin/console doctrine:schema:update --force

5) Cleare cache

$ bin/console cache:clear

User guide

//TODO, (*10)

The Versions

05/11 2017

dev-master

9999999-dev

Add reward program to sylius application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmed Kooli

26/09 2017

dev-poc_phpspec

dev-poc_phpspec

Add reward program to sylius application

  Sources   Download

MIT

The Requires

 

by Ahmed Kooli