Download the PHP package societe-des-avis-garantis/sylius-sag-plugin without Composer
On this page you can find all versions of the php package societe-des-avis-garantis/sylius-sag-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download societe-des-avis-garantis/sylius-sag-plugin
More information about societe-des-avis-garantis/sylius-sag-plugin
Files in societe-des-avis-garantis/sylius-sag-plugin
Package sylius-sag-plugin
Short Description Product review integration for Société des Avis Garantis.
License MIT
Informations about the package sylius-sag-plugin
Plugin SAG
Sylius SAG plugin by Dedi. Product review integration for Société des Avis Garantis
About Dedi
At Dedi, we do not just create websites. We are building together a real digital strategy to combine your business requirements with our technical skills. We've been working with open source for a long time and decided to start giving back to the community by contributing and sharing some plugin of our own. We’ll be happy to meet you, feel free to contact us. Learn more about us on our website.
Table of Content
- Installation
- Configure Product
- Configure Product Review
- Configure Order
- Configure Channel
- Migrations
- Templates
- Overview
Installation
Require plugin with composer:
Symfony Flex will automatically register and configure the config/bundles.php
file to add the line for the plugin :
-
Create a
dedi_sag_plugin.yaml
file intoconfig/packages
folder to import required config - Add the plugin routes to your config.
Configure Product
Your Product
entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Product\ProductInterface
interface and use the Dedi\SyliusSAGPlugin\Entity\Product\ProductTrait
trait.
Configure ProductReview
Your ProductReview
entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Review\ProductReviewInterface
interface and use the Dedi\SyliusSAGPlugin\Entity\Review\ProductReviewTrait
trait.
Your ProductReviewRepository
repository needs to implement the Dedi\SyliusSAGPlugin\Repository\Review\ProductReviewRepositoryInterface
interface and use the Dedi\SyliusSAGPlugin\Repository\Review\ProductReviewRepositoryTrait
trait.
Don't forget to update the Sylius resource config accordingly.
Your ProductReviewFactory
should implement Dedi\SyliusSAGPlugin\Factory\Review\ReviewFactoryInterface
and use the Dedi\SyliusSAGPlugin\Factory\Review\ReviewFactoryTrait
trait.
Don't forget to add the corresponding service.
Configure Order
Your OrderRepository
repository needs to implement the Dedi\SyliusSAGPlugin\Repository\Order\OrderRepositoryInterface
interface and use the Dedi\SyliusSAGPlugin\Repository\Order\OrderRepositoryTrait
trait.
Don't forget to update the Sylius resource config accordingly.
Configure Channel
Your Channel
entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Channel\ChannelInterface
interface and use the Dedi\SyliusSAGPlugin\Entity\Channel\ChannelTrait
trait.
Create migration
Migrations are already provided by the plugin itself.
Templates
Override sylius default templates.
Overview
Product Index
This plugin adds the following features to your shop:
- Javascript widget
- Iframe widget
- footer certificate link
Product Show
On your product page, you will retrieve reviews from Societé des Avis Garantis with some statistics.
Admin Key Index
In the back office, a new entry "SAG Api keys" allows you to configure your shop with Société des Avis Garantis api.
Admin Channel configuration
The channel configuration form gets a new section where you can enable or disable the following parts on your shop:
- Javascript widget
- Iframe widget
- footer certificate link
Admin Reviews
Reviews are now not editable in the back office to comply with Société des Avis Garantis requirements.