AvisVerifies - Version 2.6.5.5

Version Notes

La version 2.6.5.5 est stable.

Download this release

Release Info

Developer Magento Core Team
Extension AvisVerifies
Version 2.6.5.5
Comparing to
See all releases


Code changes from version 2.6.5.4 to 2.6.5.5

Files changed (47) hide show
  1. app/code/local/Netreviews/Avisverifies/Block/Rating/Entity/Detailed.php +14 -0
  2. app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php +12 -18
  3. app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php +0 -15
  4. app/code/local/Netreviews/Avisverifies/Block/Review/Product/View/List.php +0 -4
  5. app/code/local/Netreviews/Avisverifies/Helper/Data.php +0 -26
  6. app/code/local/Netreviews/Avisverifies/Helper/Export.php +74 -25
  7. app/code/local/Netreviews/Avisverifies/Helper/Install.php +38 -7
  8. app/code/local/Netreviews/Avisverifies/Model/Observers/System.php +9 -12
  9. app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php +5 -3
  10. app/code/local/Netreviews/Avisverifies/controllers/DialogController.php +2 -1
  11. app/code/local/Netreviews/Avisverifies/etc/config.xml +6 -2
  12. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.0.0-2.6.0.php +0 -9
  13. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.3-2.6.0.php +0 -9
  14. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.4-2.6.0.php +0 -9
  15. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.5-2.6.0.php +0 -9
  16. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.6-2.6.0.php +0 -9
  17. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.7.1-2.6.0.php +0 -9
  18. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.1-2.6.0.php +0 -9
  19. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.2-2.6.0.php +0 -9
  20. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.4-2.6.0.php +0 -9
  21. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.1-2.6.0.php +0 -9
  22. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.2-2.6.0.php +0 -9
  23. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.5-2.6.0.php +0 -9
  24. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.6-2.6.0.php +0 -9
  25. app/design/frontend/base/default/layout/avisverifies.xml +3 -0
  26. app/design/frontend/base/default/template/avisverifies/admin/checkinstallation.phtml +11 -2
  27. app/design/frontend/base/default/template/avisverifies/review/helper/list_summary.phtml +25 -0
  28. app/design/frontend/base/default/template/avisverifies/review/helper/product_summary.phtml +45 -0
  29. app/design/frontend/base/default/template/avisverifies/review/helper/review_summary.phtml +44 -0
  30. app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml +2 -7
  31. app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml +2 -6
  32. app/design/frontend/base/default/template/avisverifies/review/product/view/count.phtml +8 -0
  33. app/design/frontend/default/default/layout/avisverifies.xml +3 -0
  34. app/design/frontend/default/default/template/avisverifies/admin/checkinstallation.phtml +11 -2
  35. app/design/frontend/default/default/template/avisverifies/review/helper/list_summary.phtml +25 -0
  36. app/design/frontend/default/default/template/avisverifies/review/helper/product_summary.phtml +45 -0
  37. app/design/frontend/default/default/template/avisverifies/review/helper/review_summary.phtml +44 -0
  38. app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml +2 -7
  39. app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml +2 -6
  40. app/design/frontend/default/default/template/avisverifies/review/product/view/count.phtml +8 -0
  41. package.xml +5 -5
  42. skin/frontend/base/default/images/avisverifies/Sceau_100.png +0 -0
  43. skin/frontend/base/default/images/avisverifies/Sceau_45.png +0 -0
  44. skin/frontend/base/default/images/avisverifies/Sceau_45_ES.png +0 -0
  45. skin/frontend/base/default/images/avisverifies/Sceau_45_fr.png +0 -0
  46. skin/frontend/base/default/images/avisverifies/avisverifies.png +0 -0
  47. skin/frontend/default/default/images/avisverifies/avisverifies.png +0 -0
app/code/local/Netreviews/Avisverifies/Block/Rating/Entity/Detailed.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Netreviews_Avisverifies_Block_Rating_Entity_Detailed extends Mage_Rating_Block_Entity_Detailed {
4
+
5
+ public function setTemplate($template)
6
+ {
7
+ if (Mage::helper('avisverifies/Data')->isActive()) {
8
+ parent::setTemplate('avisverifies\review\helper\review_summary.phtml');
9
+ }
10
+ else {
11
+ parent::setTemplate($template);
12
+ }
13
+ }
14
+ }
app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php CHANGED
@@ -4,28 +4,22 @@ class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Help
4
  // override default template
5
  public function getSummaryHtml($product, $templateType, $displayIfNoReviews) {
6
  if (Mage::helper('avisverifies/Data')->isActive()) {
7
- $this->_availableTemplates = array(
8
- 'default' => 'avisverifies/review/helper/summary.phtml',
9
- 'short' => 'avisverifies/review/helper/summary_short.phtml'
10
- );
11
- // pick template among available
12
- if (empty($this->_availableTemplates[$templateType])) {
13
- $templateType = 'default';
14
  }
15
- // if product list
16
- $isProductList = Mage::registry('netreview_isProductlist');
17
- if (!empty($isProductList)) {
18
- $templateType = 'short';
19
  }
20
- // admin config
21
- $isLightWidget = Mage::getStoreConfig('avisverifies/extra/productLightWidget');
22
- if ($isLightWidget) {
23
- $templateType = 'short';
24
  }
25
  // set the product var
26
  $this->setProduct($product);
27
  // set the template
28
- $this->setTemplate($this->_availableTemplates[$templateType]);
29
  return $this->toHtml();
30
  }
31
  else {
@@ -33,8 +27,8 @@ class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Help
33
  }
34
  }
35
 
36
- public function getReviewsUrl() {
37
- if (Mage::getStoreConfig('avisverifies/extra/useProductUrl') && Mage::helper('avisverifies/Data')->isActive()) {
38
  return $this->getProduct()->getProductUrl();
39
  }
40
  else {
4
  // override default template
5
  public function getSummaryHtml($product, $templateType, $displayIfNoReviews) {
6
  if (Mage::helper('avisverifies/Data')->isActive()) {
7
+ $debug = debug_backtrace();
8
+ $fileArray = explode("/", $debug[1]['file']);
9
+ if (count($fileArray) == 1) {
10
+ $fileArray = explode("\\", $debug[1]['file']);
 
 
 
11
  }
12
+ // Test if it's in product page call
13
+ if (in_array('view.phtml',$fileArray) && in_array('product',$fileArray) && in_array('catalog',$fileArray)) {
14
+ $template = 'avisverifies/review/helper/product_summary.phtml';
 
15
  }
16
+ else { // not product widget
17
+ $template = 'avisverifies/review/helper/list_summary.phtml';
 
 
18
  }
19
  // set the product var
20
  $this->setProduct($product);
21
  // set the template
22
+ $this->setTemplate($template);
23
  return $this->toHtml();
24
  }
25
  else {
27
  }
28
  }
29
 
30
+ public function getReviewsUrl($forceReviewsUrl = FALSE) {
31
+ if (Mage::getStoreConfig('avisverifies/extra/useProductUrl') && Mage::helper('avisverifies/Data')->isActive() && $forceReviewsUrl == FALSE) {
32
  return $this->getProduct()->getProductUrl();
33
  }
34
  else {
app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
- class Netreviews_Avisverifies_Block_Review_Product_View extends Mage_Review_Block_Product_View
3
- {
4
- // function override for review page widget
5
- public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = false,$displayIfNoReviews = false)
6
- {
7
- if (Mage::helper('avisverifies/Data')->isActive()) {
8
- return $this->getLayout()->createBlock('review/helper')->getSummaryHtml($product, $templateType, $displayIfNoReviews);
9
- }
10
- else {
11
- return parent::getReviewsSummaryHtml($product, $templateType,$displayIfNoReviews);
12
- }
13
-
14
- }
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/Block/Review/Product/View/List.php CHANGED
@@ -6,10 +6,6 @@ class Netreviews_Avisverifies_Block_Review_Product_View_List extends Mage_Review
6
  $array_template_list = array('avisverifies/catalogProductList.phtml','avisverifies/list.phtml');
7
  // force template to ours if is active
8
  if (Mage::helper('avisverifies/Data')->isActive()) {
9
- $globalVar = Mage::registry('netreview_customReview');
10
- if (empty($globalVar)) {
11
- Mage::register('netreview_customReview',true);
12
- }
13
  $template = (in_array($template, $array_template_list))? $template : 'avisverifies/reviewProductList.phtml';
14
  parent::setTemplate($template);
15
  }
6
  $array_template_list = array('avisverifies/catalogProductList.phtml','avisverifies/list.phtml');
7
  // force template to ours if is active
8
  if (Mage::helper('avisverifies/Data')->isActive()) {
 
 
 
 
9
  $template = (in_array($template, $array_template_list))? $template : 'avisverifies/reviewProductList.phtml';
10
  parent::setTemplate($template);
11
  }
app/code/local/Netreviews/Avisverifies/Helper/Data.php CHANGED
@@ -112,30 +112,4 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
112
  return (boolean)Mage::getStoreConfig('avisverifies/extra/hasjQuery');
113
  }
114
 
115
- public function removeLinkWidget() {
116
- $addReviewToProductPage = Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
117
- $pageType = Mage::app()->getRequest()->getControllerName();
118
- $moduleName = Mage::app()->getRequest()->getModuleName();
119
- $action = Mage::app()->getRequest()->getActionName();
120
- // bcz the "netreview_customReview" is set to true even if the reivew not diplayed
121
- // we are using this JUDO if to change that.
122
- if($pageType == 'product' && $moduleName = 'catalog' && $action == 'view' && $addReviewToProductPage == 0) {
123
- return false;
124
- }
125
- if (Mage::registry('netreview_customReview')) {
126
- return true;
127
- }
128
- // review product page
129
- if ($pageType == 'product' && $moduleName = 'review' && $action == 'list') {
130
- return true;
131
- }// product page with configuration active
132
- elseif ($pageType == 'product' && $moduleName = 'catalog' && $action == 'view' && $addReviewToProductPage == 1) {
133
- return true;
134
- }
135
- else {
136
- return false;
137
- }
138
-
139
- }
140
-
141
  }
112
  return (boolean)Mage::getStoreConfig('avisverifies/extra/hasjQuery');
113
  }
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  }
app/code/local/Netreviews/Avisverifies/Helper/Export.php CHANGED
@@ -32,6 +32,7 @@ class Netreviews_Avisverifies_Helper_Export{
32
  'url'=>'',
33
  'url_image' => '',
34
  'id_shop'=>'',
 
35
  'status_order'=>'');
36
 
37
  public $csvHeader = array(
@@ -47,6 +48,7 @@ class Netreviews_Avisverifies_Helper_Export{
47
  'product_url',
48
  'url_image',
49
  'id_shop',
 
50
  'id_order_state');
51
 
52
 
@@ -77,9 +79,7 @@ class Netreviews_Avisverifies_Helper_Export{
77
  else
78
  $this->isVersion13 = false;
79
  $this->mainTable = ($this->isVersion13)? "e" : "main_table";
80
-
81
  $this->media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."catalog/product";
82
- $this->base_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
83
 
84
  }
85
 
@@ -175,8 +175,8 @@ class Netreviews_Avisverifies_Helper_Export{
175
  'product.product_id = media.entity_id ',
176
  array('media.*'));
177
  $collection->getSelect()->joinLeft(
178
- array('url'=>"(SELECT * FROM {$resource->getTableName('core/url_rewrite')} GROUP BY product_id)"),
179
- 'product.product_id = url.product_id',
180
  array('product.*'));
181
  $collection->getSelect()->joinLeft(
182
  array('viewstore'=>$resource->getTableName('core/store')),
@@ -205,9 +205,9 @@ class Netreviews_Avisverifies_Helper_Export{
205
  protected function querySelect(){
206
  $collection = &$this->collection;
207
  $collection->getSelect()->reset(Zend_Db_Select::COLUMNS)->columns($this->mainTable.'.entity_id')
208
- ->columns($this->mainTable.'.increment_id')
209
  ->columns("DATE_FORMAT({$this->mainTable}.created_at,'%d/%m/%Y %H:%i') as created_at")
210
- ->columns('product.name')->columns('viewstore.code AS id_shop')
211
  ->columns('url.request_path as url')->columns('media.value as url_image');
212
  if ($this->useSKU) {
213
  $collection->getSelect()->columns('product.sku as product_id');
@@ -336,17 +336,33 @@ class Netreviews_Avisverifies_Helper_Export{
336
  }
337
 
338
  protected function createExport() {
339
-
 
340
  foreach ($this->items as $item) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  $item['url_image'] = empty($item['url_image'])? 'NULL' : $this->media_url.$item['url_image'];
342
- $item['url'] = empty($item['url'])? 'NULL' : $this->base_url.$item['url'];
343
  $this->customer['order_id'] = $item['increment_id'];
344
  $this->customer['email'] = $item['email'];
 
345
  $this->customer['nom'] = utf8_decode($item['lastname']);
346
  $this->customer['prenom'] = utf8_decode($item['firstname']);
347
  $this->customer['date'] = $item['created_at'];
348
  $this->customer['delay'] = $this->delay;
349
- $this->customer['id_shop'] = $item['id_shop'];
350
  $this->customer['product_id'] = ($this->isProductExport)? $item['product_id'] : "";
351
  $this->customer['product_name'] = ($this->isProductExport)? utf8_decode($item['name']) : "";
352
  $this->customer['product_name'] = str_replace(",", " - ", $this->customer['product_name']);
@@ -377,35 +393,68 @@ class Netreviews_Avisverifies_Helper_Export{
377
  // Get product parent id
378
  $resource = $this->resource;
379
  $readConnection = $resource->getConnection('core_read');
380
- // super link
381
- $table = $resource->getTableName('catalog/product_super_link');
382
- $query = "SELECT * FROM $table";
383
- $collection = $readConnection->fetchAll($query);
384
- // enfant parent
385
- foreach ($collection as $val) {
386
- if (isset($this->mapProductId[$val['product_id']])) {
387
- $this->mapProductId[$val['product_id']] = (int) $val['parent_id'];
 
 
 
 
 
 
 
 
 
 
 
 
388
  }
 
 
 
389
  }
390
- // product link
391
- $table = $resource->getTableName('catalog/product_link');
392
- $query = "SELECT * FROM $table";
393
- $collection = $readConnection->fetchAll($query);
394
- foreach ($collection as $val) {
395
- if (isset($this->mapProductId[$val['linked_product_id']])) {
396
- $this->mapProductId[$val['linked_product_id']] = (int) $val['product_id'];
 
 
 
 
 
 
 
 
 
397
  }
 
 
 
398
  }
399
 
400
  try{
401
  // product link
402
  $table = $resource->getTableName('catalog/product_relation');
403
- $query = "SELECT * FROM $table";
 
 
404
  $collection = $readConnection->fetchAll($query);
 
405
  foreach ($collection as $val) {
406
  if (isset($this->mapProductId[$val['child_id']])) {
407
  $this->mapProductId[$val['child_id']] = (int) $val['parent_id'];
408
  }
 
 
 
409
  }
410
  }
411
  catch (Exception $ex) {
32
  'url'=>'',
33
  'url_image' => '',
34
  'id_shop'=>'',
35
+ 'amount_order'=>'',
36
  'status_order'=>'');
37
 
38
  public $csvHeader = array(
48
  'product_url',
49
  'url_image',
50
  'id_shop',
51
+ 'amount_order',
52
  'id_order_state');
53
 
54
 
79
  else
80
  $this->isVersion13 = false;
81
  $this->mainTable = ($this->isVersion13)? "e" : "main_table";
 
82
  $this->media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."catalog/product";
 
83
 
84
  }
85
 
175
  'product.product_id = media.entity_id ',
176
  array('media.*'));
177
  $collection->getSelect()->joinLeft(
178
+ array('url'=>$resource->getTableName('core/url_rewrite')),
179
+ 'product.product_id = url.product_id AND '.$this->mainTable.'.store_id = url.store_id',
180
  array('product.*'));
181
  $collection->getSelect()->joinLeft(
182
  array('viewstore'=>$resource->getTableName('core/store')),
205
  protected function querySelect(){
206
  $collection = &$this->collection;
207
  $collection->getSelect()->reset(Zend_Db_Select::COLUMNS)->columns($this->mainTable.'.entity_id')
208
+ ->columns($this->mainTable.'.increment_id')->columns($this->mainTable.'.grand_total')
209
  ->columns("DATE_FORMAT({$this->mainTable}.created_at,'%d/%m/%Y %H:%i') as created_at")
210
+ ->columns('product.name')->columns('viewstore.code AS name_shop')->columns('viewstore.store_id AS id_shop')
211
  ->columns('url.request_path as url')->columns('media.value as url_image');
212
  if ($this->useSKU) {
213
  $collection->getSelect()->columns('product.sku as product_id');
336
  }
337
 
338
  protected function createExport() {
339
+ $doubleProductResult = array();
340
+ $storeUrlResult = array();
341
  foreach ($this->items as $item) {
342
+ if ($this->isProductExport && isset($doubleProductResult[$item['increment_id']][$item['product_id']])) {
343
+ continue;
344
+ }
345
+ else {
346
+ $doubleProductResult[$item['increment_id']][$item['product_id']] = 1;
347
+ }
348
+ if (isset($storeUrlResult[$item['id_shop']])) {
349
+ $url = $storeUrlResult[$item['id_shop']];
350
+ }
351
+ else {
352
+ $url = Mage::app()->getStore($item['id_shop'])->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);;
353
+ $storeUrlResult[$item['id_shop']] = $url;
354
+ }
355
+
356
  $item['url_image'] = empty($item['url_image'])? 'NULL' : $this->media_url.$item['url_image'];
357
+ $item['url'] = empty($item['url'])? 'NULL' : $url.$item['url'];
358
  $this->customer['order_id'] = $item['increment_id'];
359
  $this->customer['email'] = $item['email'];
360
+ $this->customer['amount_order'] = $item['grand_total'];
361
  $this->customer['nom'] = utf8_decode($item['lastname']);
362
  $this->customer['prenom'] = utf8_decode($item['firstname']);
363
  $this->customer['date'] = $item['created_at'];
364
  $this->customer['delay'] = $this->delay;
365
+ $this->customer['id_shop'] = $item['name_shop'];
366
  $this->customer['product_id'] = ($this->isProductExport)? $item['product_id'] : "";
367
  $this->customer['product_name'] = ($this->isProductExport)? utf8_decode($item['name']) : "";
368
  $this->customer['product_name'] = str_replace(",", " - ", $this->customer['product_name']);
393
  // Get product parent id
394
  $resource = $this->resource;
395
  $readConnection = $resource->getConnection('core_read');
396
+ $sku_table = $resource->getTableName('catalog/product');
397
+
398
+ try{
399
+ // super link
400
+ $table = $resource->getTableName('catalog/product_super_link');
401
+ $query = " SELECT main.parent_id,main.product_id,sku_parent.sku as sku_parent,sku_enfant.sku as sku_enfant "
402
+ . " FROM $table main LEFT JOIN $sku_table sku_parent ON main.parent_id = sku_parent.entity_id"
403
+ . " LEFT JOIN $sku_table sku_enfant ON main.product_id = sku_enfant.entity_id";
404
+
405
+ $collection = $readConnection->fetchAll($query);
406
+
407
+ // enfant parent
408
+ foreach ($collection as $val) {
409
+ if (isset($this->mapProductId[$val['product_id']])) {
410
+ $this->mapProductId[$val['product_id']] = (int) $val['parent_id'];
411
+ }
412
+ elseif (isset($this->mapProductId[$val['sku_enfant']])) {
413
+ $this->mapProductId[$val['sku_enfant']] = $val['sku_parent'];
414
+ }
415
+
416
  }
417
+ }
418
+ catch (Exception $ex) {
419
+ // do nothing
420
  }
421
+
422
+ try{
423
+ // product link
424
+ $table = $resource->getTableName('catalog/product_link');
425
+ $query = " SELECT main.linked_product_id,main.product_id,sku_parent.sku as sku_parent,sku_enfant.sku as sku_enfant "
426
+ . " FROM $table main LEFT JOIN $sku_table sku_parent ON main.product_id = sku_parent.entity_id"
427
+ . " LEFT JOIN $sku_table sku_enfant ON main.product_id = sku_enfant.entity_id";
428
+ $collection = $readConnection->fetchAll($query);
429
+
430
+ foreach ($collection as $val) {
431
+ if (isset($this->mapProductId[$val['linked_product_id']])) {
432
+ $this->mapProductId[$val['linked_product_id']] = (int) $val['product_id'];
433
+ }
434
+ elseif (isset($this->mapProductId[$val['sku_enfant']])) {
435
+ $this->mapProductId[$val['sku_enfant']] = $val['sku_parent'];
436
+ }
437
  }
438
+ }
439
+ catch (Exception $ex) {
440
+ // do nothing
441
  }
442
 
443
  try{
444
  // product link
445
  $table = $resource->getTableName('catalog/product_relation');
446
+ $query = " SELECT main.parent_id,main.child_id,sku_parent.sku as sku_parent,sku_enfant.sku as sku_enfant "
447
+ . " FROM $table main LEFT JOIN $sku_table sku_parent ON main.parent_id = sku_parent.entity_id"
448
+ . " LEFT JOIN $sku_table sku_enfant ON main.child_id = sku_enfant.entity_id";
449
  $collection = $readConnection->fetchAll($query);
450
+
451
  foreach ($collection as $val) {
452
  if (isset($this->mapProductId[$val['child_id']])) {
453
  $this->mapProductId[$val['child_id']] = (int) $val['parent_id'];
454
  }
455
+ elseif (isset($this->mapProductId[$val['sku_enfant']])) {
456
+ $this->mapProductId[$val['sku_enfant']] = $val['sku_parent'];
457
+ }
458
  }
459
  }
460
  catch (Exception $ex) {
app/code/local/Netreviews/Avisverifies/Helper/Install.php CHANGED
@@ -18,12 +18,23 @@ class Netreviews_Avisverifies_Helper_Install {
18
  $checkOrders = array();
19
  if ($orderId) {
20
  $table4 = $resource->getTableName('sales/order_item');
21
- $query = " SELECT "
22
- . "`t3`.`increment_id`,`t4`.`item_id`, `t4`.`order_id`, `t4`.`parent_item_id`,"
23
- . " `t4`.`quote_item_id`, `t4`.`store_id`, `t4`.`created_at`, `t4`.`updated_at`, `t4`.`product_id`,"
24
- . " `t4`.`product_type`, `t4`.`is_virtual`, `t4`.`sku`, `t4`.`name` "
 
 
 
 
 
 
 
 
 
 
25
  . " FROM $table4 t4 LEFT JOIN $table3 t3 ON t3.entity_id = t4.order_id "
26
  . " WHERE t3.increment_id = :orderId ";
 
27
  $bind = array('orderId' => $orderId);
28
  return $read->query($query, $bind)->fetchAll();
29
  }
@@ -44,6 +55,26 @@ class Netreviews_Avisverifies_Helper_Install {
44
  $write->query("UPDATE `{$order}` SET `av_flag` = 1;");
45
  }
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  public function addFields(){
48
  try {
49
  $this->_addFields();
@@ -100,7 +131,7 @@ class Netreviews_Avisverifies_Helper_Install {
100
  $write->query("
101
  CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_reviews')}` (
102
  `id_product_av` varchar(36) NOT NULL,
103
- `ref_product` varchar(20) NOT NULL,
104
  `rate` varchar(5) NOT NULL,
105
  `review` text NOT NULL,
106
  `customer_name` varchar(30) NOT NULL,
@@ -114,13 +145,13 @@ class Netreviews_Avisverifies_Helper_Install {
114
  $write->query("
115
  CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_average')}` (
116
  `id_product_av` varchar(36) NOT NULL,
117
- `ref_product` varchar(20) NOT NULL,
118
  `rate` varchar(5) NOT NULL,
119
  `nb_reviews` int(10) NOT NULL,
120
  `horodate_update` varchar(32) NOT NULL,
121
  `id_lang` varchar(5) DEFAULT NULL,
122
  `website_id` smallint(5) not null default 0,
123
- PRIMARY KEY (`ref_product`)
124
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
125
  ");
126
 
18
  $checkOrders = array();
19
  if ($orderId) {
20
  $table4 = $resource->getTableName('sales/order_item');
21
+ $query = " SELECT
22
+ `t3`.`increment_id`,
23
+ `t4`.`item_id`,
24
+ `t4`.`order_id`,
25
+ `t4`.`parent_item_id`,
26
+ `t4`.`quote_item_id`,
27
+ `t3`.`store_id`,
28
+ `t4`.`created_at`,
29
+ `t4`.`updated_at`,
30
+ `t4`.`product_id`,
31
+ `t4`.`product_type`,
32
+ `t4`.`is_virtual`,
33
+ `t4`.`sku`,
34
+ `t4`.`name` "
35
  . " FROM $table4 t4 LEFT JOIN $table3 t3 ON t3.entity_id = t4.order_id "
36
  . " WHERE t3.increment_id = :orderId ";
37
+
38
  $bind = array('orderId' => $orderId);
39
  return $read->query($query, $bind)->fetchAll();
40
  }
55
  $write->query("UPDATE `{$order}` SET `av_flag` = 1;");
56
  }
57
 
58
+ public function addUpdateFields(){
59
+ try {
60
+ $this->_addUpdateFields();
61
+ } catch (Exception $exc) {
62
+ // do nothing
63
+ }
64
+ }
65
+
66
+ protected function _addUpdateFields(){
67
+ $resource = Mage::getSingleton('core/resource');
68
+ $write = $resource->getConnection('core_write');
69
+ $average = $resource->getTableName('avisverifies_products_average');
70
+ $reviews = $resource->getTableName('avisverifies_products_reviews');
71
+
72
+ $write->query("DROP TABLE `{$average}`");
73
+ $write->query("DROP TABLE `{$reviews}`");
74
+ sleep(1);
75
+ $this->_createTables();
76
+ }
77
+
78
  public function addFields(){
79
  try {
80
  $this->_addFields();
131
  $write->query("
132
  CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_reviews')}` (
133
  `id_product_av` varchar(36) NOT NULL,
134
+ `ref_product` varchar(255) NOT NULL,
135
  `rate` varchar(5) NOT NULL,
136
  `review` text NOT NULL,
137
  `customer_name` varchar(30) NOT NULL,
145
  $write->query("
146
  CREATE TABLE IF NOT EXISTS `{$resource->getTableName('avisverifies_products_average')}` (
147
  `id_product_av` varchar(36) NOT NULL,
148
+ `ref_product` varchar(255) NOT NULL,
149
  `rate` varchar(5) NOT NULL,
150
  `nb_reviews` int(10) NOT NULL,
151
  `horodate_update` varchar(32) NOT NULL,
152
  `id_lang` varchar(5) DEFAULT NULL,
153
  `website_id` smallint(5) not null default 0,
154
+ PRIMARY KEY (`ref_product`, `website_id`)
155
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
156
  ");
157
 
app/code/local/Netreviews/Avisverifies/Model/Observers/System.php CHANGED
@@ -10,23 +10,21 @@ class Netreviews_Avisverifies_Model_Observers_System {
10
  $storeModel = Mage::getSingleton('adminhtml/system_store');
11
  $mageselc = new Mage_Core_Model_Config();
12
  $POST = Mage::app()->getRequest()->getPost();
13
- $secretkey = $POST['groups']['system']['fields']['secretkey']['value'];
14
- $idwebsite = $POST['groups']['system']['fields']['idwebsite']['value'];
15
- $enabledwebsite = $POST['groups']['system']['fields']['enabledwebsite']['value'];
16
- $defaultReviews = $POST['groups']['extra']['fields']['defaultReviews']['value'];
17
- $forceParentIds = $POST['groups']['extra']['fields']['force_product_parent_id']['value'];
18
- $addReviewToProductPage = $POST['groups']['extra']['fields']['addReviewToProductPage']['value'];
19
- $useProductSKU = $POST['groups']['extra']['fields']['useProductSKU']['value'];
20
- $productLightWidget = $POST['groups']['extra']['fields']['productLightWidget']['value'];
21
- $hasjQuery = $POST['groups']['extra']['fields']['hasjQuery']['value'];
22
- $useProductUrl = $POST['groups']['extra']['fields']['useProductUrl']['value'];
23
 
24
  foreach ($storeModel->getWebsiteCollection() as $website) {
25
  if (is_null($curWebsite) || ($curWebsite == $website->getCode() && is_null($curStore))) {
26
  $mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'websites',$website->getId());
27
  $mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'websites',$website->getId());
28
  $mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'websites',$website->getId());
29
- $mageselc->saveConfig('avisverifies/extra/defaultReviews',$defaultReviews,'websites',$website->getId());
30
  $mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'websites',$website->getId());
31
  $mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'websites',$website->getId());
32
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
@@ -41,7 +39,6 @@ class Netreviews_Avisverifies_Model_Observers_System {
41
  $mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'stores',$store->getId());
42
  $mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'stores',$store->getId());
43
  $mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'stores',$store->getId());
44
- $mageselc->saveConfig('avisverifies/extra/defaultReviews',$defaultReviews,'stores',$store->getId());
45
  $mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'stores',$store->getId());
46
  $mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'stores',$store->getId());
47
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'stores',$store->getId());
10
  $storeModel = Mage::getSingleton('adminhtml/system_store');
11
  $mageselc = new Mage_Core_Model_Config();
12
  $POST = Mage::app()->getRequest()->getPost();
13
+ $secretkey = isset($POST['groups']['system']['fields']['secretkey']['value'])? $POST['groups']['system']['fields']['secretkey']['value'] : NUll;
14
+ $idwebsite = (isset($POST['groups']['system']['fields']['idwebsite']['value']))? $POST['groups']['system']['fields']['idwebsite']['value'] : NULL ;
15
+ $enabledwebsite = (isset($POST['groups']['system']['fields']['enabledwebsite']['value']))? $POST['groups']['system']['fields']['enabledwebsite']['value'] : NULL ;
16
+ $forceParentIds = (isset($POST['groups']['extra']['fields']['force_product_parent_id']['value']))? $POST['groups']['extra']['fields']['force_product_parent_id']['value'] : NULL ;
17
+ $addReviewToProductPage = (isset($POST['groups']['extra']['fields']['addReviewToProductPage']['value']))? $POST['groups']['extra']['fields']['addReviewToProductPage']['value'] : NULL ;
18
+ $useProductSKU = (isset($POST['groups']['extra']['fields']['useProductSKU']['value']))? $POST['groups']['extra']['fields']['useProductSKU']['value'] : NULL ;
19
+ $productLightWidget = (isset($POST['groups']['extra']['fields']['productLightWidget']['value']))? $POST['groups']['extra']['fields']['productLightWidget']['value'] : NULL ;
20
+ $hasjQuery = (isset($POST['groups']['extra']['fields']['hasjQuery']['value']))? $POST['groups']['extra']['fields']['hasjQuery']['value'] : NULL ;
21
+ $useProductUrl = (isset($POST['groups']['extra']['fields']['useProductUrl']['value']))? $POST['groups']['extra']['fields']['useProductUrl']['value'] : NULL ;
 
22
 
23
  foreach ($storeModel->getWebsiteCollection() as $website) {
24
  if (is_null($curWebsite) || ($curWebsite == $website->getCode() && is_null($curStore))) {
25
  $mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'websites',$website->getId());
26
  $mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'websites',$website->getId());
27
  $mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'websites',$website->getId());
 
28
  $mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'websites',$website->getId());
29
  $mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'websites',$website->getId());
30
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
39
  $mageselc->saveConfig('avisverifies/system/secretkey',$secretkey,'stores',$store->getId());
40
  $mageselc->saveConfig('avisverifies/system/idwebsite',$idwebsite,'stores',$store->getId());
41
  $mageselc->saveConfig('avisverifies/system/enabledwebsite',$enabledwebsite,'stores',$store->getId());
 
42
  $mageselc->saveConfig('avisverifies/extra/force_product_parent_id',$forceParentIds,'stores',$store->getId());
43
  $mageselc->saveConfig('avisverifies/extra/addReviewToProductPage',$addReviewToProductPage,'stores',$store->getId());
44
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'stores',$store->getId());
app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Adminhtml_Controller_Action
3
- {
4
- protected $fileName = "lastOrders_AC_";
5
 
6
  public function indexAction() {
7
  $this->loadLayout();
@@ -69,7 +68,7 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
69
  //construction du CSV
70
  $helperData->createExportCSV($from,$to);
71
  $content = $helperData->getCSVFile();
72
- $this->_prepareDownloadResponse($this->fileName.date("Y-m-d").'.csv', $content, 'text/csv');
73
 
74
  }
75
  else {
@@ -204,6 +203,9 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
204
  if (isset($post['debug']['fields']) && $post['debug']['fields'] == 'yes') {
205
  Mage::helper('avisverifies/Install')->addFields();
206
  }
 
 
 
207
  if (!empty($post['debug']['order'])) {
208
  Mage::getSingleton('admin/session')->setNetReviewsDebugOrder($post['debug']['order']);
209
  }
1
  <?php
2
  class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Adminhtml_Controller_Action
3
+ {
 
4
 
5
  public function indexAction() {
6
  $this->loadLayout();
68
  //construction du CSV
69
  $helperData->createExportCSV($from,$to);
70
  $content = $helperData->getCSVFile();
71
+ $this->_prepareDownloadResponse("lastOrders_AV_".date("dmYHis").'.csv', $content, 'text/csv');
72
 
73
  }
74
  else {
203
  if (isset($post['debug']['fields']) && $post['debug']['fields'] == 'yes') {
204
  Mage::helper('avisverifies/Install')->addFields();
205
  }
206
+ if (!empty($post['debug']['UpdateFields'])) {
207
+ Mage::helper('avisverifies/Install')->addUpdateFields();
208
+ }
209
  if (!empty($post['debug']['order'])) {
210
  Mage::getSingleton('admin/session')->setNetReviewsDebugOrder($post['debug']['order']);
211
  }
app/code/local/Netreviews/Avisverifies/controllers/DialogController.php CHANGED
@@ -293,7 +293,8 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
293
  if (empty($tmp[$id])) {
294
  $tmp[$id] = array(
295
  'id_order' => $order['order_id'],
296
- 'date_order' => $order['timestamp'], //date timestamp de la table orders
 
297
  'date_order_formatted' => $order['date'], //date de la table orders formatté
298
  'date_av_getted_order' => $order['date_av_getted_order'], //date de la table order_history de récup par AV
299
  'is_flag' => $order['is_flag'], //si la commande est déjà flaggué
293
  if (empty($tmp[$id])) {
294
  $tmp[$id] = array(
295
  'id_order' => $order['order_id'],
296
+ 'date_order' => $order['timestamp'], //date timestamp de la table orders
297
+ 'amount_order' => $order['amount_order'], //date timestamp de la table orders
298
  'date_order_formatted' => $order['date'], //date de la table orders formatté
299
  'date_av_getted_order' => $order['date_av_getted_order'], //date de la table order_history de récup par AV
300
  'is_flag' => $order['is_flag'], //si la commande est déjà flaggué
app/code/local/Netreviews/Avisverifies/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <!-- General Config -->
4
  <modules>
5
  <Netreviews_Avisverifies>
6
- <version>2.6.5.4</version>
7
  </Netreviews_Avisverifies>
8
  </modules>
9
  <!-- General Config -->
@@ -16,10 +16,14 @@
16
  <review>
17
  <rewrite>
18
  <helper>Netreviews_Avisverifies_Block_Review_Helper</helper>
19
- <product_view>Netreviews_Avisverifies_Block_Review_Product_View</product_view>
20
  <product_view_list>Netreviews_Avisverifies_Block_Review_Product_View_List</product_view_list>
21
  </rewrite>
22
  </review>
 
 
 
 
 
23
  </blocks>
24
  <models>
25
  <avisverifies>
3
  <!-- General Config -->
4
  <modules>
5
  <Netreviews_Avisverifies>
6
+ <version>2.6.5.5</version>
7
  </Netreviews_Avisverifies>
8
  </modules>
9
  <!-- General Config -->
16
  <review>
17
  <rewrite>
18
  <helper>Netreviews_Avisverifies_Block_Review_Helper</helper>
 
19
  <product_view_list>Netreviews_Avisverifies_Block_Review_Product_View_List</product_view_list>
20
  </rewrite>
21
  </review>
22
+ <rating>
23
+ <rewrite>
24
+ <entity_detailed>Netreviews_Avisverifies_Block_Rating_Entity_Detailed</entity_detailed>
25
+ </rewrite>
26
+ </rating>
27
  </blocks>
28
  <models>
29
  <avisverifies>
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.0.0-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.3-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.4-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.5-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.6-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.7.1-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.1-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.2-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.8.4-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.1-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.2-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.5-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-upgrade-2.5.9.6-2.6.0.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
- $installer->run("ALTER TABLE `{$this->getTable('avisverifies_products_average')}` DROP PRIMARY KEY,ADD PRIMARY KEY (`ref_product`, `website_id`);");
6
- $installer->run("UPDATE `{$this->getTable('sales/order')}` SET `av_flag` = 1;");
7
- $installer->endSetup();
8
-
9
-
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/layout/avisverifies.xml CHANGED
@@ -21,6 +21,9 @@
21
  <block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
22
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
23
  </reference>
 
 
 
24
  </review_product_list>
25
  <!-- !!!! -->
26
  <catalog_product_view>
21
  <block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
22
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
23
  </reference>
24
+ <action method="setTemplate" block="product_review_list.count">
25
+ <tpl>avisverifies/review/product/view/count.phtml</tpl>
26
+ </action>
27
  </review_product_list>
28
  <!-- !!!! -->
29
  <catalog_product_view>
app/design/frontend/base/default/template/avisverifies/admin/checkinstallation.phtml CHANGED
@@ -133,7 +133,17 @@
133
  </tr>
134
  </table>
135
  </fieldset>
136
- <?php if(!$this->getData('isOldVersion')): ?>
 
 
 
 
 
 
 
 
 
 
137
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
138
  <fieldset id="my-fieldset">
139
  <table cellspacing="1" class="form-list">
@@ -143,7 +153,6 @@
143
  </tr>
144
  </table>
145
  </fieldset>
146
- <?php endif;?>
147
  </form>
148
  </div>
149
  <script type="text/javascript">
133
  </tr>
134
  </table>
135
  </fieldset>
136
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Fix fields type')?></h4>
137
+ <fieldset id="my-fieldset">
138
+ <table cellspacing="1" class="form-list">
139
+ <tr>
140
+ <td class="label"><?php echo $this->__('Fix fields type')?></td>
141
+ <td class="input-ele"><input type="radio" class="input-radio" name="debug[UpdateFields]" value="yes" /><?php echo $this->__('Yes')?></td>
142
+ <td>&nbsp;&nbsp;&nbsp;</td>
143
+ <td class="input-ele"><input type="radio" class="input-radio" name="debug[UpdateFields]" value="no" /><?php echo $this->__('No')?></td>
144
+ </tr>
145
+ </table>
146
+ </fieldset>
147
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
148
  <fieldset id="my-fieldset">
149
  <table cellspacing="1" class="form-list">
153
  </tr>
154
  </table>
155
  </fieldset>
 
156
  </form>
157
  </div>
158
  <script type="text/javascript">
app/design/frontend/base/default/template/avisverifies/review/helper/list_summary.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
5
+ <?php $o_av->skuProduct = $this->getProduct()->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php if($countReviews>0): ?>
10
+ <div class="ratings">
11
+ <div class="rating-box">
12
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
+ </div>
14
+ <p class="rating-link">
15
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
16
+ <?php if($countReviews == 1): ?>
17
+ <?php echo $this->__('%d Review', $countReviews) ?>
18
+ <?php else: ?>
19
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
20
+ <?php endif; ?>
21
+ </a>
22
+ </p>
23
+ </div>
24
+ <?php endif; ?>
25
+ <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/review/helper/product_summary.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $product = Mage::registry('product'); ?>
2
+ <?php if(is_object($product)): ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $product->getId(); ?>
5
+ <?php $o_av->skuProduct = $product->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php $href = (Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage'))? "javascript:window.avisVerifies.scrollTo()" : $this->getReviewsUrl(TRUE) ?>
10
+ <?php if($countReviews): ?>
11
+ <?php if(!Mage::getStoreConfig('avisverifies/extra/productLightWidget')): ?>
12
+ <div id="av_product_award">
13
+ <div id="top">
14
+ <div class="ratingWrapper">
15
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%" ?>;"></div>
16
+ </div>
17
+ <?php if($countReviews == 1): ?>
18
+ <b><?php echo $this->__('%d Review', $countReviews) ?></b>
19
+ <?php else: ?>
20
+ <b><?php echo $this->__('%d Reviews', $countReviews) ?></b>
21
+ <?php endif; ?>
22
+ </div>
23
+ <div id="bottom">
24
+ <a href="<?php echo $href ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
25
+ </div>
26
+ <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
27
+ </div>
28
+ <?php else : ?>
29
+ <div class="ratings">
30
+ <div class="rating-box">
31
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
32
+ </div>
33
+ <p class="rating-link">
34
+ <a href="<?php echo $href ?>" id="AV_button">
35
+ <?php if($countReviews == 1): ?>
36
+ <?php echo $this->__('%d Review', $countReviews) ?>
37
+ <?php else: ?>
38
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
39
+ <?php endif; ?>
40
+ </a>
41
+ </p>
42
+ </div>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
45
+ <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/review/helper/review_summary.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $product = Mage::registry('product'); ?>
2
+ <?php if(is_object($product)): ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $product->getId(); ?>
5
+ <?php $o_av->skuProduct = $product->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php if($countReviews): ?>
10
+ <?php if(!Mage::getStoreConfig('avisverifies/extra/productLightWidget')): ?>
11
+ <div id="av_product_award">
12
+ <div id="top">
13
+ <div class="ratingWrapper">
14
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%" ?>;"></div>
15
+ </div>
16
+ <?php if($countReviews == 1): ?>
17
+ <b><?php echo $this->__('%d Review', $countReviews) ?></b>
18
+ <?php else: ?>
19
+ <b><?php echo $this->__('%d Reviews', $countReviews) ?></b>
20
+ <?php endif; ?>
21
+ </div>
22
+ <div id="bottom">
23
+ <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
24
+ </div>
25
+ <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
26
+ </div>
27
+ <?php else : ?>
28
+ <div class="ratings">
29
+ <div class="rating-box">
30
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
31
+ </div>
32
+ <p class="rating-link">
33
+ <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
34
+ <?php if($countReviews == 1): ?>
35
+ <?php echo $this->__('%d Review', $countReviews) ?>
36
+ <?php else: ?>
37
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
38
+ <?php endif; ?>
39
+ </a>
40
+ </p>
41
+ </div>
42
+ <?php endif; ?>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml CHANGED
@@ -1,4 +1,4 @@
1
-
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display.?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
@@ -19,12 +19,7 @@
19
  <?php endif; ?>
20
  </div>
21
  <div id="bottom">
22
- <?php if(Mage::helper('avisverifies/Data')->removeLinkWidget()): ?>
23
- <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
24
- <?php else: ?>
25
- <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
26
- <?php endif;?>
27
-
28
  </div>
29
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
30
  </div>
1
+ <?php // FOR OLD Backward Compatibility ?>
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display.?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
19
  <?php endif; ?>
20
  </div>
21
  <div id="bottom">
22
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
 
 
 
 
 
23
  </div>
24
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
25
  </div>
app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml CHANGED
@@ -1,4 +1,4 @@
1
-
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
@@ -12,11 +12,7 @@
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
- <?php if(Mage::helper('avisverifies/Data')->removeLinkWidget()): ?>
16
- <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
17
- <?php else: ?>
18
- <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
19
- <?php endif;?>
20
  <?php if($countReviews == 1): ?>
21
  <?php echo $this->__('%d Review', $countReviews) ?>
22
  <?php else: ?>
1
+ <?php // FOR OLD Backward Compatibility ?>
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
 
 
 
 
16
  <?php if($countReviews == 1): ?>
17
  <?php echo $this->__('%d Review', $countReviews) ?>
18
  <?php else: ?>
app/design/frontend/base/default/template/avisverifies/review/product/view/count.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php // THIS File is important, we override Magento file here to have empty return ?>
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
+ <?php return ''; ?>
4
+ <?php endif;?>
5
+ <?php // Copy of Magento code ?>
6
+ <?php if (!empty($count)):?>
7
+ <a href="#customer-reviews" class="nobr"><?php echo $this->__('%s Review(s)', $count) ?></a>
8
+ <?php endif;?>
app/design/frontend/default/default/layout/avisverifies.xml CHANGED
@@ -21,6 +21,9 @@
21
  <block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
22
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
23
  </reference>
 
 
 
24
  </review_product_list>
25
  <!-- !!!! -->
26
  <catalog_product_view>
21
  <block name="avisverifies_css" type="core/template" template="avisverifies/css.phtml"/>
22
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
23
  </reference>
24
+ <action method="setTemplate" block="product_review_list.count">
25
+ <tpl>avisverifies/review/product/view/count.phtml</tpl>
26
+ </action>
27
  </review_product_list>
28
  <!-- !!!! -->
29
  <catalog_product_view>
app/design/frontend/default/default/template/avisverifies/admin/checkinstallation.phtml CHANGED
@@ -133,7 +133,17 @@
133
  </tr>
134
  </table>
135
  </fieldset>
136
- <?php if(!$this->getData('isOldVersion')): ?>
 
 
 
 
 
 
 
 
 
 
137
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
138
  <fieldset id="my-fieldset">
139
  <table cellspacing="1" class="form-list">
@@ -143,7 +153,6 @@
143
  </tr>
144
  </table>
145
  </fieldset>
146
- <?php endif;?>
147
  </form>
148
  </div>
149
  <script type="text/javascript">
133
  </tr>
134
  </table>
135
  </fieldset>
136
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Fix fields type')?></h4>
137
+ <fieldset id="my-fieldset">
138
+ <table cellspacing="1" class="form-list">
139
+ <tr>
140
+ <td class="label"><?php echo $this->__('Fix fields type')?></td>
141
+ <td class="input-ele"><input type="radio" class="input-radio" name="debug[UpdateFields]" value="yes" /><?php echo $this->__('Yes')?></td>
142
+ <td>&nbsp;&nbsp;&nbsp;</td>
143
+ <td class="input-ele"><input type="radio" class="input-radio" name="debug[UpdateFields]" value="no" /><?php echo $this->__('No')?></td>
144
+ </tr>
145
+ </table>
146
+ </fieldset>
147
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Check order configuration')?></h4>
148
  <fieldset id="my-fieldset">
149
  <table cellspacing="1" class="form-list">
153
  </tr>
154
  </table>
155
  </fieldset>
 
156
  </form>
157
  </div>
158
  <script type="text/javascript">
app/design/frontend/default/default/template/avisverifies/review/helper/list_summary.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
5
+ <?php $o_av->skuProduct = $this->getProduct()->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php if($countReviews>0): ?>
10
+ <div class="ratings">
11
+ <div class="rating-box">
12
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
+ </div>
14
+ <p class="rating-link">
15
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
16
+ <?php if($countReviews == 1): ?>
17
+ <?php echo $this->__('%d Review', $countReviews) ?>
18
+ <?php else: ?>
19
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
20
+ <?php endif; ?>
21
+ </a>
22
+ </p>
23
+ </div>
24
+ <?php endif; ?>
25
+ <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/review/helper/product_summary.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $product = Mage::registry('product'); ?>
2
+ <?php if(is_object($product)): ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $product->getId(); ?>
5
+ <?php $o_av->skuProduct = $product->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php $href = (Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage'))? "javascript:window.avisVerifies.scrollTo()" : $this->getReviewsUrl(TRUE) ?>
10
+ <?php if($countReviews): ?>
11
+ <?php if(!Mage::getStoreConfig('avisverifies/extra/productLightWidget')): ?>
12
+ <div id="av_product_award">
13
+ <div id="top">
14
+ <div class="ratingWrapper">
15
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%" ?>;"></div>
16
+ </div>
17
+ <?php if($countReviews == 1): ?>
18
+ <b><?php echo $this->__('%d Review', $countReviews) ?></b>
19
+ <?php else: ?>
20
+ <b><?php echo $this->__('%d Reviews', $countReviews) ?></b>
21
+ <?php endif; ?>
22
+ </div>
23
+ <div id="bottom">
24
+ <a href="<?php echo $href ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
25
+ </div>
26
+ <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
27
+ </div>
28
+ <?php else : ?>
29
+ <div class="ratings">
30
+ <div class="rating-box">
31
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
32
+ </div>
33
+ <p class="rating-link">
34
+ <a href="<?php echo $href ?>" id="AV_button">
35
+ <?php if($countReviews == 1): ?>
36
+ <?php echo $this->__('%d Review', $countReviews) ?>
37
+ <?php else: ?>
38
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
39
+ <?php endif; ?>
40
+ </a>
41
+ </p>
42
+ </div>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
45
+ <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/review/helper/review_summary.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $product = Mage::registry('product'); ?>
2
+ <?php if(is_object($product)): ?>
3
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
+ <?php $o_av->idProduct = $product->getId(); ?>
5
+ <?php $o_av->skuProduct = $product->getSku(); ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php if($countReviews): ?>
10
+ <?php if(!Mage::getStoreConfig('avisverifies/extra/productLightWidget')): ?>
11
+ <div id="av_product_award">
12
+ <div id="top">
13
+ <div class="ratingWrapper">
14
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%" ?>;"></div>
15
+ </div>
16
+ <?php if($countReviews == 1): ?>
17
+ <b><?php echo $this->__('%d Review', $countReviews) ?></b>
18
+ <?php else: ?>
19
+ <b><?php echo $this->__('%d Reviews', $countReviews) ?></b>
20
+ <?php endif; ?>
21
+ </div>
22
+ <div id="bottom">
23
+ <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
24
+ </div>
25
+ <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
26
+ </div>
27
+ <?php else : ?>
28
+ <div class="ratings">
29
+ <div class="rating-box">
30
+ <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
31
+ </div>
32
+ <p class="rating-link">
33
+ <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
34
+ <?php if($countReviews == 1): ?>
35
+ <?php echo $this->__('%d Review', $countReviews) ?>
36
+ <?php else: ?>
37
+ <?php echo $this->__('%d Reviews', $countReviews) ?>
38
+ <?php endif; ?>
39
+ </a>
40
+ </p>
41
+ </div>
42
+ <?php endif; ?>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml CHANGED
@@ -1,4 +1,4 @@
1
-
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display.?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
@@ -19,12 +19,7 @@
19
  <?php endif; ?>
20
  </div>
21
  <div id="bottom">
22
- <?php if(Mage::helper('avisverifies/Data')->removeLinkWidget()): ?>
23
- <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
24
- <?php else: ?>
25
- <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
26
- <?php endif;?>
27
-
28
  </div>
29
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
30
  </div>
1
+ <?php // FOR OLD Backward Compatibility ?>
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display.?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
19
  <?php endif; ?>
20
  </div>
21
  <div id="bottom">
22
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
 
 
 
 
 
23
  </div>
24
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
25
  </div>
app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml CHANGED
@@ -1,4 +1,4 @@
1
-
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
@@ -12,11 +12,7 @@
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
- <?php if(Mage::helper('avisverifies/Data')->removeLinkWidget()): ?>
16
- <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button">
17
- <?php else: ?>
18
- <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
19
- <?php endif;?>
20
  <?php if($countReviews == 1): ?>
21
  <?php echo $this->__('%d Review', $countReviews) ?>
22
  <?php else: ?>
1
+ <?php // FOR OLD Backward Compatibility ?>
2
  <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
4
  <?php $o_av->idProduct = $this->getProduct()->getId(); ?>
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
+ <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button">
 
 
 
 
16
  <?php if($countReviews == 1): ?>
17
  <?php echo $this->__('%d Review', $countReviews) ?>
18
  <?php else: ?>
app/design/frontend/default/default/template/avisverifies/review/product/view/count.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php // THIS File is important, we override Magento file here to have empty return ?>
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
3
+ <?php return ''; ?>
4
+ <?php endif;?>
5
+ <?php // Copy of Magento code ?>
6
+ <?php if (!empty($count)):?>
7
+ <a href="#customer-reviews" class="nobr"><?php echo $this->__('%s Review(s)', $count) ?></a>
8
+ <?php endif;?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AvisVerifies</name>
4
- <version>2.6.5.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Avis Verifies vous permet de recolter l'avis des clients sur votre site ecommerce.</summary>
10
  <description>Avis Verifies vous permet de recolter l'avis de vos clients suite &#xE0; leur achat sur votre boutique ecommerce. Essayez gratuitement notre solution sur www.avis-verifies.com et commencez maintenant &#xE0; r&#xE9;colter les avis de vos clients.</description>
11
- <notes>La version 2.6.5.4 est stable.</notes>
12
  <authors><author><name>Johnny</name><user>auto-converted</user><email>johnny@verified-reviews.com</email></author><author><name>R&#xE9;mi</name><user>auto-converted</user><email>remi@avis-verifies.com</email></author></authors>
13
- <date>2015-01-14</date>
14
- <time>10:56:11</time>
15
- <contents><target name="magelocal"><dir name="Netreviews"><dir name="Avisverifies"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Export"><file name="Export.php" hash="edc3da1044e62fbd31b8b226620ccb5e"/></dir></dir></dir><dir name="Observers"><file name="Checkout.php" hash="4418155485abf1f945180c15e5777af9"/></dir><dir name="Review"><dir name="Product"><dir name="View"><file name="List.php" hash="074357e2224049de888c6bf726f8235c"/></dir><file name="View.php" hash="50fa168ad34bf863b94562f66a30b441"/></dir><file name="Helper.php" hash="a08c4f83ffb89a4d1959079edfc85253"/></dir></dir><dir name="Helper"><file name="API.php" hash="e3d5ba79ef7a4f613d51c486e5fcf70d"/><file name="Data.php" hash="dcb02de90263ebcacba9be5c062a327c"/><file name="Export.php" hash="ed1b7664e7dca456fc514572ceb2499b"/><file name="Install.php" hash="42072fd87785a393c6459b04e9f4c69b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Average"><file name="Collection.php" hash="4255bd6ef8fdd2b7c6ee0632962286ed"/></dir><dir name="Reviews"><file name="Collection.php" hash="4187377e5fca20a959bfeceec88713ff"/></dir><file name="Average.php" hash="008a4558e9991d5ea04601c98a836480"/><file name="Reviews.php" hash="e6fccb35502c0acf635aab593d2a0beb"/></dir><dir name="Observers"><dir name="Checkout"><file name="Track.php" hash="26a1ee180faf1f7ba3a87f0dcc8cd5af"/></dir><dir name="Product"><file name="List.php" hash="2cc654ca31d9f5a0c707cf888727b5da"/></dir><file name="System.php" hash="3e74326f5b9cfeb700a2d44d9d760b15"/></dir><file name="Average.php" hash="9ae1d65bb0fb3515da0d903bec66abb2"/><file name="Reviews.php" hash="3456e14be1bdb7cc9d0fd14f167a2aba"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AvisverifiesController.php" hash="8013a3164166740074e9100406b1ccb0"/></dir><file name="DialogController.php" hash="19c5769ff0b413ad984d49b158e9307a"/><file name="IndexController.php" hash="d20950a3296c6b726c959ad08f2780ed"/></dir><dir name="etc"><file name="config.xml" hash="c3219d83a2fe44bc7d5a4d34530e76fd"/><file name="system.xml" hash="6baa5dfdf88ce9f65159cdde44c87d6c"/></dir><dir name="sql"><dir name="avisverifies_setup"><file name="mysql4-install-2.0.0.php" hash="391054915593dfed2a34e64e0729ad1c"/><file name="mysql4-upgrade-2.0.0-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.3-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.7.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.8.4-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.1-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.2-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.5-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/><file name="mysql4-upgrade-2.5.9.6-2.6.0.php" hash="c21d67c5b3cb60e9ca0a3ce5ab9fd6bf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netreviews_Avisverifies.xml" hash="2369bd341056eb0304a546e27ad07306"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="af62d00968b9e0296c20a0a1e2a31017"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/><file name="export.phtml" hash="0a1d10eee60a7e486dcb502eb1729076"/><file name="export_tab.phtml" hash="436cb31fca0b23adc72312e1a784f322"/></dir><dir name="observers"><file name="checkout.phtml" hash="648c4aa6c761f9d6bca147ca08022e22"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="c7749a7bcc6a16559f4943f9e51ccb51"/><file name="summary_short.phtml" hash="baea5d480db2ff6d4e035c74e9906c46"/></dir></dir><file name="catalogProductList.phtml" hash="588a38ea765e9ecffbb4cfe763d6d7fb"/><file name="css.phtml" hash="e46acc6f39fbda5362385edde7d87354"/><file name="float.phtml" hash="81c25fec914bb2474fa0f9025b59ea47"/><file name="js.phtml" hash="b269b518dbcce060ce3610fe24031ca6"/><file name="left.phtml" hash="53a626edfb15f993a8b033cb8eed5023"/><file name="list.phtml" hash="407e1c4cbf34ee3484c9d4e704e2bf48"/><file name="pagination.phtml" hash="5af9118e98f41e959b8bc14e6a1b7b3f"/><file name="reviewProductList.phtml" hash="3d52c1498382f8613c56f8262dbdbfb6"/><file name="right.phtml" hash="07bb407dc096679d0be03e40ebcb71b1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="37f714fe9fae792f1b6efb82e6e607d0"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="af62d00968b9e0296c20a0a1e2a31017"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/><file name="export.phtml" hash="0a1d10eee60a7e486dcb502eb1729076"/><file name="export_tab.phtml" hash="436cb31fca0b23adc72312e1a784f322"/></dir><dir name="observers"><file name="checkout.phtml" hash="648c4aa6c761f9d6bca147ca08022e22"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="c7749a7bcc6a16559f4943f9e51ccb51"/><file name="summary_short.phtml" hash="baea5d480db2ff6d4e035c74e9906c46"/></dir></dir><file name="catalogProductList.phtml" hash="588a38ea765e9ecffbb4cfe763d6d7fb"/><file name="css.phtml" hash="e46acc6f39fbda5362385edde7d87354"/><file name="float.phtml" hash="81c25fec914bb2474fa0f9025b59ea47"/><file name="js.phtml" hash="b269b518dbcce060ce3610fe24031ca6"/><file name="left.phtml" hash="53a626edfb15f993a8b033cb8eed5023"/><file name="list.phtml" hash="407e1c4cbf34ee3484c9d4e704e2bf48"/><file name="pagination.phtml" hash="5af9118e98f41e959b8bc14e6a1b7b3f"/><file name="reviewProductList.phtml" hash="3d52c1498382f8613c56f8262dbdbfb6"/><file name="right.phtml" hash="07bb407dc096679d0be03e40ebcb71b1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="37f714fe9fae792f1b6efb82e6e607d0"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45_fr.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="avisverifies.png" hash="1216d2675304fc40693d9645fcdf4d12"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="avisverifies.png" hash="1216d2675304fc40693d9645fcdf4d12"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="avisverifies.csv" hash="37402797f28e69c5f25000ce09074f55"/></dir><dir name="en_US"><file name="avisverifies.csv" hash="4f941b21dec2282c6caed9c59e8c8a12"/></dir><dir name="es_ES"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir><dir name="fr_FR"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="nl_NL"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="pt_PT"><file name="avisverifies.csv" hash="9163ca25902ec36ffa458cd7fd616063"/></dir><dir name="en_GB"><file name="avisverifies.csv" hash="c624e356f31a47e6fae3551d3741ad09"/></dir><dir name="it_IT"><file name="avisverifies.csv" hash="895920aabb6a63638bc8fb4d2bf1c506"/></dir><dir name="es_CO"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AvisVerifies</name>
4
+ <version>2.6.5.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Avis Verifies vous permet de recolter l'avis des clients sur votre site ecommerce.</summary>
10
  <description>Avis Verifies vous permet de recolter l'avis de vos clients suite &#xE0; leur achat sur votre boutique ecommerce. Essayez gratuitement notre solution sur www.avis-verifies.com et commencez maintenant &#xE0; r&#xE9;colter les avis de vos clients.</description>
11
+ <notes>La version 2.6.5.5 est stable.</notes>
12
  <authors><author><name>Johnny</name><user>auto-converted</user><email>johnny@verified-reviews.com</email></author><author><name>R&#xE9;mi</name><user>auto-converted</user><email>remi@avis-verifies.com</email></author></authors>
13
+ <date>2015-01-22</date>
14
+ <time>16:02:31</time>
15
+ <contents><target name="magelocal"><dir name="Netreviews"><dir name="Avisverifies"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Export"><file name="Export.php" hash="edc3da1044e62fbd31b8b226620ccb5e"/></dir></dir></dir><dir name="Observers"><file name="Checkout.php" hash="4418155485abf1f945180c15e5777af9"/></dir><dir name="Rating"><dir name="Entity"><file name="Detailed.php" hash="9b5ff09d8117b255024cfe71e2467129"/></dir></dir><dir name="Review"><dir name="Product"><dir name="View"><file name="List.php" hash="b0f2b551d04ed178262362ed7c15bb96"/></dir></dir><file name="Helper.php" hash="7ba17d6a69fa915b0e845713487d918c"/></dir></dir><dir name="Helper"><file name="API.php" hash="e3d5ba79ef7a4f613d51c486e5fcf70d"/><file name="Data.php" hash="b03c7baafab21260e8ac55b42a98a32c"/><file name="Export.php" hash="3f7c84159825ec961e58e85fbc19e6b0"/><file name="Install.php" hash="c10b694a5af4b6c9fb95352f95bb1f71"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Average"><file name="Collection.php" hash="4255bd6ef8fdd2b7c6ee0632962286ed"/></dir><dir name="Reviews"><file name="Collection.php" hash="4187377e5fca20a959bfeceec88713ff"/></dir><file name="Average.php" hash="008a4558e9991d5ea04601c98a836480"/><file name="Reviews.php" hash="e6fccb35502c0acf635aab593d2a0beb"/></dir><dir name="Observers"><dir name="Checkout"><file name="Track.php" hash="26a1ee180faf1f7ba3a87f0dcc8cd5af"/></dir><dir name="Product"><file name="List.php" hash="2cc654ca31d9f5a0c707cf888727b5da"/></dir><file name="System.php" hash="8d939ee12131f4c595859a490d6b9432"/></dir><file name="Average.php" hash="9ae1d65bb0fb3515da0d903bec66abb2"/><file name="Reviews.php" hash="3456e14be1bdb7cc9d0fd14f167a2aba"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AvisverifiesController.php" hash="dfa38001fa0739c286d3f28f1c1a2b24"/></dir><file name="DialogController.php" hash="56ae8a3b58ff36ab40d49601d40385c3"/><file name="IndexController.php" hash="d20950a3296c6b726c959ad08f2780ed"/></dir><dir name="etc"><file name="config.xml" hash="116304ae131650e83160e98495399929"/><file name="system.xml" hash="6baa5dfdf88ce9f65159cdde44c87d6c"/></dir><dir name="sql"><dir name="avisverifies_setup"><file name="mysql4-install-2.0.0.php" hash="391054915593dfed2a34e64e0729ad1c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netreviews_Avisverifies.xml" hash="2369bd341056eb0304a546e27ad07306"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="9c5f62c9f03a7a4e1d8f281f1cc5278c"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/><file name="export.phtml" hash="0a1d10eee60a7e486dcb502eb1729076"/><file name="export_tab.phtml" hash="436cb31fca0b23adc72312e1a784f322"/></dir><dir name="observers"><file name="checkout.phtml" hash="648c4aa6c761f9d6bca147ca08022e22"/></dir><dir name="review"><dir name="helper"><file name="list_summary.phtml" hash="43f48e300e7620082aa715397ba815f3"/><file name="product_summary.phtml" hash="466c17fd7ba29e25c8f219422b180c0e"/><file name="review_summary.phtml" hash="d02014e52de328999557d92482cf3d9f"/><file name="summary.phtml" hash="8f390e624353fdebb56e1b9b9834dec6"/><file name="summary_short.phtml" hash="a67634f6c9e74292e34b12364a0a6e5a"/></dir><dir name="product"><dir name="view"><file name="count.phtml" hash="7af9b2511df48164ddfefd37f6f15f51"/></dir></dir></dir><file name="catalogProductList.phtml" hash="588a38ea765e9ecffbb4cfe763d6d7fb"/><file name="css.phtml" hash="e46acc6f39fbda5362385edde7d87354"/><file name="float.phtml" hash="81c25fec914bb2474fa0f9025b59ea47"/><file name="js.phtml" hash="b269b518dbcce060ce3610fe24031ca6"/><file name="left.phtml" hash="53a626edfb15f993a8b033cb8eed5023"/><file name="list.phtml" hash="407e1c4cbf34ee3484c9d4e704e2bf48"/><file name="pagination.phtml" hash="5af9118e98f41e959b8bc14e6a1b7b3f"/><file name="reviewProductList.phtml" hash="3d52c1498382f8613c56f8262dbdbfb6"/><file name="right.phtml" hash="07bb407dc096679d0be03e40ebcb71b1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="72e8fd9167b46df87de4c1eedcbec29f"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="avisverifies"><dir name="admin"><file name="checkinstallation.phtml" hash="9c5f62c9f03a7a4e1d8f281f1cc5278c"/><file name="checkinstallation_tab.phtml" hash="c1c345d3b16dda650c8bd4b5102c98ce"/><file name="export.phtml" hash="0a1d10eee60a7e486dcb502eb1729076"/><file name="export_tab.phtml" hash="436cb31fca0b23adc72312e1a784f322"/></dir><dir name="observers"><file name="checkout.phtml" hash="648c4aa6c761f9d6bca147ca08022e22"/></dir><dir name="review"><dir name="helper"><file name="list_summary.phtml" hash="43f48e300e7620082aa715397ba815f3"/><file name="product_summary.phtml" hash="466c17fd7ba29e25c8f219422b180c0e"/><file name="review_summary.phtml" hash="d02014e52de328999557d92482cf3d9f"/><file name="summary.phtml" hash="8f390e624353fdebb56e1b9b9834dec6"/><file name="summary_short.phtml" hash="a67634f6c9e74292e34b12364a0a6e5a"/></dir><dir name="product"><dir name="view"><file name="count.phtml" hash="7af9b2511df48164ddfefd37f6f15f51"/></dir></dir></dir><file name="catalogProductList.phtml" hash="588a38ea765e9ecffbb4cfe763d6d7fb"/><file name="css.phtml" hash="e46acc6f39fbda5362385edde7d87354"/><file name="float.phtml" hash="81c25fec914bb2474fa0f9025b59ea47"/><file name="js.phtml" hash="b269b518dbcce060ce3610fe24031ca6"/><file name="left.phtml" hash="53a626edfb15f993a8b033cb8eed5023"/><file name="list.phtml" hash="407e1c4cbf34ee3484c9d4e704e2bf48"/><file name="pagination.phtml" hash="5af9118e98f41e959b8bc14e6a1b7b3f"/><file name="reviewProductList.phtml" hash="3d52c1498382f8613c56f8262dbdbfb6"/><file name="right.phtml" hash="07bb407dc096679d0be03e40ebcb71b1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="72e8fd9167b46df87de4c1eedcbec29f"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="avisverifies"><file name="Sceau_100de_DE.png" hash="3a5c40b284b71ff2b1cb45ee0f62c63c"/><file name="Sceau_100en_GB.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100en_US.png" hash="e5a18734067e9d34bd976a2644b3984b"/><file name="Sceau_100es_CO.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100es_ES.png" hash="d5a967c4601e5f40ef28749a6f7f9ec3"/><file name="Sceau_100fr_FR.png" hash="f2fc0adb70d9a1b3da6bb65d5b58fa30"/><file name="Sceau_100it_IT.png" hash="dd1e908d4d41e0438710b5138380eb37"/><file name="Sceau_100nl_NL.png" hash="502819066210a104b47aef3043424ce9"/><file name="Sceau_100pt_PT.png" hash="9befd03d5907892f981d256ea80d0b76"/><file name="Sceau_45de_DE.png" hash="5fc9fcfd445c20f50f48d549128c0134"/><file name="Sceau_45en_GB.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45en_US.png" hash="0f794c583717101c8706c6bfaeb00f12"/><file name="Sceau_45es_CO.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45es_ES.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45fr_FR.png" hash="75301d9ecb9551bf805d3dbb8d60fc74"/><file name="Sceau_45it_IT.png" hash="606c02ded69315ce5dd6e5d65daf474f"/><file name="Sceau_45nl_NL.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="Sceau_45pt_PT.png" hash="eaf02ecb106202ec5213c7156e12b319"/><file name="etoile0.png" hash="bce56f50906713d9cc7602dc34cb73a5"/><file name="etoile1.png" hash="7446927468b81a1cae698578fa0dd566"/><file name="etoile2.png" hash="0a2e0bb274430ffd544a1112eb33eb0a"/><file name="etoile3.png" hash="65b18268445a8dfacb9848571916274d"/><file name="etoile4.png" hash="fffcb5ab211e6fc73e3f50731c683977"/><file name="etoile5.png" hash="0d22136a4ee0e714da50e8bc8daf1bed"/><file name="mini_etoile_empty.png" hash="4f3de020c07b2eb613517e26eedc4a32"/><file name="mini_etoile_full.png" hash="a9ed947e0e0b6de1b4522077443356f5"/><file name="pagination-loader.gif" hash="be1cede97289c13920048f238fd37b85"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="avisverifies.csv" hash="37402797f28e69c5f25000ce09074f55"/></dir><dir name="en_US"><file name="avisverifies.csv" hash="4f941b21dec2282c6caed9c59e8c8a12"/></dir><dir name="es_ES"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir><dir name="fr_FR"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="nl_NL"><file name="avisverifies.csv" hash="53b96dda5d24de710e091406be481be4"/></dir><dir name="pt_PT"><file name="avisverifies.csv" hash="9163ca25902ec36ffa458cd7fd616063"/></dir><dir name="en_GB"><file name="avisverifies.csv" hash="c624e356f31a47e6fae3551d3741ad09"/></dir><dir name="it_IT"><file name="avisverifies.csv" hash="895920aabb6a63638bc8fb4d2bf1c506"/></dir><dir name="es_CO"><file name="avisverifies.csv" hash="4efff3ee9d885ed7eb4e9144015e1217"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/frontend/base/default/images/avisverifies/Sceau_100.png DELETED
Binary file
skin/frontend/base/default/images/avisverifies/Sceau_45.png DELETED
Binary file
skin/frontend/base/default/images/avisverifies/Sceau_45_ES.png DELETED
Binary file
skin/frontend/base/default/images/avisverifies/Sceau_45_fr.png DELETED
Binary file
skin/frontend/base/default/images/avisverifies/avisverifies.png DELETED
Binary file
skin/frontend/default/default/images/avisverifies/avisverifies.png DELETED
Binary file