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.
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.
Per default, any customer is part of reward program. However, it's possible to restrict target customers to a specific list of groups.
A customer will earn reward points if he satisfy certain rules, bellow a list of v1 rules.
Also, an administrator can manually give any customer a number of reward points.
Per default, reward points can be used to apply discounts on any product. However, it's possible to black-list certain products.
$ composer require snake-tn/reward-plugin
Enable the plugin by adding the following line in the app/AppKernel.php file of your sylius project:
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new \SnakeTn\Reward\RewardPlugin(),
];
// ...
}
}
// TODO
$ bin/console doctrine:schema:update --force
$ bin/console cache:clear
//TODO