Description The Loyalty Program Plugin introduces a loyalty program that rewards customers with points based on their purchasing and engagement behavior on the platform. The main features of the plugin are as follows:
-
Earning Points:
- Customers can earn points from two actions:
- Making purchases: The administrator can configure a variable 'X' such that for every euro spent, the customer receives 'X' points. This can be easily set up in the Shopware admin area.
- Commenting on products: The administrator can set a fixed number of points in the plugin configuration that customers earn for each product comment they make in the admin area.
- Customers can earn points from two actions:
-
Points Display:
- Customers can easily view their total accumulated points in their account dashboard. This allows them to keep track of their loyalty points and incentivizes further engagement with the platform.
-
Administrator Access:
- Administrators have the ability to view the bonus points of all customers in the Shopware admin area. The exact location within the admin area is designed to be user-friendly and intuitive.
-
Extended Shopware API:
- The plugin extends the Shopware API to include the bonus points of a customer. This ensures seamless integration with other plugins or custom solutions that may require access to this data.
To install the Shopware 6 Loyalty Program Plugin, follow these steps:
- Clone this Git repository to your local machine or download the plugin ZIP file.
- Copy the plugin folder or clone it into the static Shopware plugins directory (
custom/static-plugins/
). - Run (
composer-require "maxt/loyalty-program"
). - Access the Shopware admin area and navigate to "Extensions" > "My extensions."
- Locate the "Loyalty Program" plugin in the plugin list and click "Install."
- Once the installation is complete, click "Activate" to enable the plugin.
After the plugin is activated, administrators can easily configure the loyalty program settings from the Shopware admin area in the plugin settings:
- Set the points conversion rate: Define the variable 'X' to determine how many points customers receive for every euro spent.
- Set comment points: Specify the fixed number of points customers earn for each product comment they make.
The Shopware 6 Loyalty Program Plugin is fully compatible with Shopware 6 version 6.4. It has been designed to work seamlessly with a standard Shopware 6 instance without requiring any additional customizations or configurations. I recommend to run it with php 8.1.
To run the tests and seeders navigate into the plugin directory and run bin/phpunit.sh
. Alternatively you can run the tests separately with your IDE if you are using PhpStorm. Be aware to set the right path for the bootstrap & phpunit.xml files (from the plugin).