diff --git a/Config/module.xml b/Config/module.xml
index 07409ee..0f2b741 100644
--- a/Config/module.xml
+++ b/Config/module.xml
@@ -13,7 +13,7 @@
en_US
fr_FR
- 1.0.4
+ 1.0.5
Chabreuil Antoine
diff --git a/Controller/FrontController.php b/Controller/FrontController.php
index fd38dbd..d48e225 100644
--- a/Controller/FrontController.php
+++ b/Controller/FrontController.php
@@ -24,7 +24,7 @@ public function siteReviews(int $offset, int $limit): JsonResponse
$siteReviews = GuaranteedOpinionSiteReviewQuery::create()
->setLimit($limit)
- ->setOffset($limit * ($offset -1))
+ ->setOffset($offset)
->find()
;
@@ -58,7 +58,7 @@ public function productReviews(int $id, int $offset, int $limit): JsonResponse
$productReviews = GuaranteedOpinionProductReviewQuery::create()
->filterByProductId($id)
->setLimit($limit)
- ->setOffset($limit * ($offset -1))
+ ->setOffset($offset)
->find();
foreach ($productReviews as $review) {
diff --git a/Readme.md b/Readme.md
index 3f4a5cf..d3a41de 100644
--- a/Readme.md
+++ b/Readme.md
@@ -23,12 +23,21 @@ 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
```
-No need to import your site opinion, you only need to use the widget and widget iframe
+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