Skip to content

Setono/SyliusTrustpilotPlugin

Repository files navigation

Trustpilot plugin for your Sylius store

Latest Version Software License Build Status

Send review invitations to your customers to entice them to leave feedback for you. The plugin uses Trustpilots AFS service.

Installation

$ composer require setono/sylius-trustpilot-plugin

Add bundle to config/bundles.php:

<?php
// config/bundles.php

return [
    // ...
    Setono\SyliusTrustpilotPlugin\SetonoSyliusTrustpilotPlugin::class => ['all' => true],
];

Configure plugin

# config/packages/setono_sylius_trustpilot.yaml
imports:
    - { resource: "@SetonoSyliusTrustpilotPlugin/Resources/config/app/config.yaml" }

Configure routes

# config/routes/setono_sylius_trustpilot.yaml
setono_sylius_trustpilot:
    resource: "@SetonoSyliusTrustpilotPlugin/Resources/config/routes.yaml"

Install assets

bin/console assets:install

Update your schema

# Generate and edit migration
bin/console doctrine:migrations:diff

# Then apply migration
bin/console doctrine:migrations:migrate

Add cronjob

The following command should be run on a regular basis:

bin/console setono:sylius-trustpilot:process