thelia/guaranteed-opinion-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/guaranteed-opinion-module

最新稳定版本:1.0.19

Composer 安装命令:

composer require thelia/guaranteed-opinion-module

包简介

GuaranteedOpinion module for Thelia

README 文档

README

This module allows you to import your opinion on your Thelia website and export your order using Avis-Garantis API

Installation

Composer

Add it in your main thelia composer.json file

composer require thelia/guaranteed-opinion-module:~1.0

Usage

Configure the module backoffice with your api keys

Then, add a cron :

To import your product opinion :

php Thelia module:GuaranteedOpinion:GetProductReview

To import your site opinion :

php Thelia module:GuaranteedOpinion:GetProductReview

(Note: If you are using Avis Garantis widget and widget iframe, you don't need to import your site opinion)

To export your order :

php Thelia module:GuaranteedOpinion:SendOrder

Now you can add these routes to your opinion page or use the loop

  • /site_reviews/offset/{offset}/limit/{limit}
  • /product_reviews/{id}/offset/{offset}/limit/{limit}

Loop

[guaranteed_site_loop]

Input arguments

Argument Description
min_rate minimum score allowed. (min 0)
limit limit for pagination. (default 5)
page page for pagination. (default 0)

Output arguments

Variable Description
$ID id of your review
$SITE_REVIEW_ID guaranteed opinion site review id
$NAME name of the reviewer
$RATE score
$REVIEW review message
$REVIEW_DATE date of review
$ORDER_ID order related to the review
$ORDER_DATE date of the order
$REPLY reply of the review
$REPLY_DATE reply date

[guaranteed_product_loop]

Input arguments

Argument Description
min_rate minimum score allowed. (min 0)
product id of your product
limit limit for pagination. (default 5)
page offset/page for pagination. (default 0)

Output arguments

Variable Description
$ID id of your review
$PRODUCT_REVIEW_ID guaranteed opinion product review id
$NAME name of the reviewer
$RATE score
$REVIEW review message
$REVIEW_DATE date of review
$PRODUCT_ID id of the product
$ORDER_ID order related to the review
$ORDER_DATE date of the order
$REPLY reply of the review
$REPLY_DATE reply date

Documentations

Societe-des-avis-garantis API documentation is available at https://www.societe-des-avis-garantis.fr/configuration

API PUBLIC OPINIONS : https://www.societe-des-avis-garantis.fr/configuration/api-publique API PRIVATE ORDERS : https://www.societe-des-avis-garantis.fr/configuration/api-orders

统计信息

  • 总下载量: 499
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2024-02-19