AvisVerifies - Version 2.6.5.3

Version Notes

La version 2.6.5.3 est stable.

Download this release

Release Info

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


Code changes from version 2.6.5.2 to 2.6.5.3

Files changed (49) hide show
  1. app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Export/Export.php +9 -12
  2. app/code/local/Netreviews/Avisverifies/Block/Observers/Checkout.php +0 -1
  3. app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php +20 -12
  4. app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php +1 -1
  5. app/code/local/Netreviews/Avisverifies/Block/Review/Product/View/List.php +20 -0
  6. app/code/local/Netreviews/Avisverifies/Helper/Data.php +23 -15
  7. app/code/local/Netreviews/Avisverifies/Helper/Install.php +12 -13
  8. app/code/local/Netreviews/Avisverifies/Model/Avisverifies.php +0 -8
  9. app/code/local/Netreviews/Avisverifies/Model/Observers/Checkout/Track.php +4 -3
  10. app/code/local/Netreviews/Avisverifies/Model/Observers/Product/List.php +1 -1
  11. app/code/local/Netreviews/Avisverifies/Model/Observers/System.php +4 -1
  12. app/code/local/Netreviews/Avisverifies/Model/Product.php +0 -21
  13. app/code/local/Netreviews/Avisverifies/Model/Reviews.php +43 -15
  14. app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php +4 -4
  15. app/code/local/Netreviews/Avisverifies/controllers/DialogController.php +4 -2
  16. app/code/local/Netreviews/Avisverifies/controllers/IndexController.php +1 -1
  17. app/code/local/Netreviews/Avisverifies/etc/config.xml +2 -1
  18. app/code/local/Netreviews/Avisverifies/etc/system.xml +11 -11
  19. app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-install-2.0.0.php +3 -2
  20. app/design/frontend/base/default/layout/avisverifies.xml +1 -19
  21. app/design/frontend/base/default/template/avisverifies/catalogProductList.phtml +5 -89
  22. app/design/frontend/base/default/template/avisverifies/css.phtml +1 -1
  23. app/design/frontend/base/default/template/avisverifies/float.phtml +0 -2
  24. app/design/frontend/base/default/template/avisverifies/js.phtml +2 -2
  25. app/design/frontend/base/default/template/avisverifies/left.phtml +0 -1
  26. app/design/frontend/base/default/template/avisverifies/list.phtml +85 -0
  27. app/design/frontend/base/default/template/avisverifies/observers/checkout.phtml +8 -10
  28. app/design/frontend/base/default/template/avisverifies/pagination.phtml +1 -1
  29. app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml +3 -25
  30. app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml +3 -28
  31. app/design/frontend/base/default/template/avisverifies/reviewProductList.phtml +4 -133
  32. app/design/frontend/base/default/template/avisverifies/right.phtml +1 -3
  33. app/design/frontend/base/default/template/avisverifies/wrapper.phtml +0 -7
  34. app/design/frontend/default/default/layout/avisverifies.xml +1 -19
  35. app/design/frontend/default/default/template/avisverifies/admin/checkinstallation_tab.phtml +1 -1
  36. app/design/frontend/default/default/template/avisverifies/catalogProductList.phtml +5 -89
  37. app/design/frontend/default/default/template/avisverifies/css.phtml +1 -1
  38. app/design/frontend/default/default/template/avisverifies/float.phtml +0 -2
  39. app/design/frontend/default/default/template/avisverifies/js.phtml +2 -2
  40. app/design/frontend/default/default/template/avisverifies/left.phtml +0 -1
  41. app/design/frontend/default/default/template/avisverifies/list.phtml +85 -0
  42. app/design/frontend/default/default/template/avisverifies/observers/checkout.phtml +8 -10
  43. app/design/frontend/default/default/template/avisverifies/pagination.phtml +1 -1
  44. app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml +3 -25
  45. app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml +3 -28
  46. app/design/frontend/default/default/template/avisverifies/reviewProductList.phtml +4 -133
  47. app/design/frontend/default/default/template/avisverifies/right.phtml +1 -3
  48. app/design/frontend/default/default/template/avisverifies/wrapper.phtml +0 -7
  49. package.xml +5 -5
app/code/local/Netreviews/Avisverifies/Block/Adminhtml/Form/Export/Export.php CHANGED
@@ -1,8 +1,7 @@
1
  <?php
2
  class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
- protected function _prepareForm()
5
- {
6
  $helper = Mage::helper('avisverifies');
7
  $form = new Varien_Data_Form();
8
  $form->setHtmlIdPrefix('export_');
@@ -12,15 +11,15 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Ad
12
  'legend' => $helper->__('Export Settings'),
13
  'class' => 'fieldset-wide',
14
  ));
15
-
16
  // -----------------------------------------------------------------------------------------------------------
17
-
18
- $websites = Mage::app()->getWebsites();
19
  $arra_websites[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All websites'));
 
 
20
  foreach ($websites as $website) {
21
  $arra_websites[$website->getId()] = array('value' => $website->getId(), 'label' => $website->getName());
22
  }
23
-
24
  $websiteCode = Mage::app()->getRequest()->getParam('website');
25
  if ($websiteCode) {
26
  $website = Mage::getModel('core/website')->load($websiteCode);
@@ -30,8 +29,8 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Ad
30
  }
31
  else {
32
  $websiteId = 10000;
33
- $website = Mage::getModel('core/website')->load('default');
34
- $useProductSKU = $website->getConfig('avisverifies/extra/useProductSKU');
35
  }
36
 
37
  $fieldset->addField('websitetoexport', 'text', array(
@@ -46,13 +45,12 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Ad
46
  'value' => $websiteId,
47
  ));
48
  // -----------------------------------------------------------------------------------------------------------
49
-
50
- $stores = Mage::app()->getStores();
51
  $arra_stores[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All Stores'));
 
52
  foreach ($stores as $store) {
53
  $arra_stores[$store->getId()] = array('value' => $store->getId(), 'label' => $store->getName());
54
  }
55
-
56
  $storeCode = Mage::app()->getRequest()->getParam('store');
57
  if ($storeCode) {
58
  $store = Mage::getModel('core/store')->load($storeCode);
@@ -75,7 +73,6 @@ class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Ad
75
  'value' => $storeId,
76
  ));
77
  // -----------------------------------------------------------------------------------------------------------
78
-
79
  $fieldset->addField('sku', 'select', array(
80
  'label' => Mage::helper('avisverifies')->__('Use product sku'),
81
  'name' => 'sku',
1
  <?php
2
  class Netreviews_Avisverifies_Block_Adminhtml_Form_Export_Export extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
+ protected function _prepareForm() {
 
5
  $helper = Mage::helper('avisverifies');
6
  $form = new Varien_Data_Form();
7
  $form->setHtmlIdPrefix('export_');
11
  'legend' => $helper->__('Export Settings'),
12
  'class' => 'fieldset-wide',
13
  ));
 
14
  // -----------------------------------------------------------------------------------------------------------
15
+ // set empty website
 
16
  $arra_websites[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All websites'));
17
+ $websites = Mage::app()->getWebsites();
18
+ // loop on all websites
19
  foreach ($websites as $website) {
20
  $arra_websites[$website->getId()] = array('value' => $website->getId(), 'label' => $website->getName());
21
  }
22
+ // get current website
23
  $websiteCode = Mage::app()->getRequest()->getParam('website');
24
  if ($websiteCode) {
25
  $website = Mage::getModel('core/website')->load($websiteCode);
29
  }
30
  else {
31
  $websiteId = 10000;
32
+ $default = Mage::getModel('core/website')->load('default');
33
+ $useProductSKU = $default->getConfig('avisverifies/extra/useProductSKU');
34
  }
35
 
36
  $fieldset->addField('websitetoexport', 'text', array(
45
  'value' => $websiteId,
46
  ));
47
  // -----------------------------------------------------------------------------------------------------------
48
+ //same thing as with website
 
49
  $arra_stores[10000] = array('value' => 10000, 'label' => Mage::helper('avisverifies')->__('All Stores'));
50
+ $stores = Mage::app()->getStores();
51
  foreach ($stores as $store) {
52
  $arra_stores[$store->getId()] = array('value' => $store->getId(), 'label' => $store->getName());
53
  }
 
54
  $storeCode = Mage::app()->getRequest()->getParam('store');
55
  if ($storeCode) {
56
  $store = Mage::getModel('core/store')->load($storeCode);
73
  'value' => $storeId,
74
  ));
75
  // -----------------------------------------------------------------------------------------------------------
 
76
  $fieldset->addField('sku', 'select', array(
77
  'label' => Mage::helper('avisverifies')->__('Use product sku'),
78
  'name' => 'sku',
app/code/local/Netreviews/Avisverifies/Block/Observers/Checkout.php CHANGED
@@ -3,7 +3,6 @@ class Netreviews_Avisverifies_Block_Observers_Checkout extends Mage_Core_Block_T
3
  {
4
  protected $order;
5
  public function getOrder() {
6
-
7
  $this->order = Mage::getModel('sales/order')->load(Mage::registry('AV_OrderIds'));
8
  return $this->order;
9
  }
3
  {
4
  protected $order;
5
  public function getOrder() {
 
6
  $this->order = Mage::getModel('sales/order')->load(Mage::registry('AV_OrderIds'));
7
  return $this->order;
8
  }
app/code/local/Netreviews/Avisverifies/Block/Review/Helper.php CHANGED
@@ -2,18 +2,17 @@
2
  class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Helper
3
  {
4
  // override default template
5
- protected $_availableTemplates = array(
6
- 'default' => 'avisverifies/review/helper/summary.phtml',
7
- 'short' => 'avisverifies/review/helper/summary_short.phtml'
8
- );
9
-
10
- public function getSummaryHtml($product, $templateType, $displayIfNoReviews)
11
- {
12
- if (Netreviews_Avisverifies_Helper_Data::isActive()) {
13
- // pick template among available
14
  if (empty($this->_availableTemplates[$templateType])) {
15
  $templateType = 'default';
16
  }
 
17
  $isProductList = Mage::registry('netreview_isProductlist');
18
  if (!empty($isProductList)) {
19
  $templateType = 'short';
@@ -23,14 +22,23 @@ class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Help
23
  if ($isLightWidget) {
24
  $templateType = 'short';
25
  }
26
-
27
  $this->setProduct($product);
28
- // we can add our own logic here
29
  $this->setTemplate($this->_availableTemplates[$templateType]);
30
  return $this->toHtml();
31
  }
32
  else {
33
  return parent::getSummaryHtml($product, $templateType, $displayIfNoReviews);
34
  }
35
- }
 
 
 
 
 
 
 
 
 
36
  }
2
  class Netreviews_Avisverifies_Block_Review_Helper extends Mage_Review_Block_Helper
3
  {
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';
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 {
32
  return parent::getSummaryHtml($product, $templateType, $displayIfNoReviews);
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 {
41
+ return parent::getReviewsUrl();
42
+ }
43
+ }
44
  }
app/code/local/Netreviews/Avisverifies/Block/Review/Product/View.php CHANGED
@@ -4,7 +4,7 @@ class Netreviews_Avisverifies_Block_Review_Product_View extends Mage_Review_Bloc
4
  // function override for review page widget
5
  public function getReviewsSummaryHtml(Mage_Catalog_Model_Product $product, $templateType = false,$displayIfNoReviews = false)
6
  {
7
- if (Netreviews_Avisverifies_Helper_Data::isActive()) {
8
  return $this->getLayout()->createBlock('review/helper')->getSummaryHtml($product, $templateType, $displayIfNoReviews);
9
  }
10
  else {
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 {
app/code/local/Netreviews/Avisverifies/Block/Review/Product/View/List.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Netreviews_Avisverifies_Block_Review_Product_View_List extends Mage_Review_Block_Product_View_List
3
+ {
4
+ public function setTemplate($template)
5
+ {
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
+ }
16
+ else {
17
+ parent::setTemplate($template);
18
+ }
19
+ }
20
+ }
app/code/local/Netreviews/Avisverifies/Helper/Data.php CHANGED
@@ -4,7 +4,7 @@
4
  * AND for translation purpose also.
5
  */
6
  class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
7
-
8
  public $idwebsite;
9
  public $secretkey;
10
  public $statusChoosen;
@@ -19,9 +19,9 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
19
  public function setup(array $config){
20
  // Magento Shop Info
21
  $this->idwebsite = $config['idWebsite'];
22
- $this->secretkey = static::getModuleSecretKey($config['idWebsite']);
23
  $this->enabledwebsite = (empty($this->secretkey))? 0 : 1;
24
- $this->allShopIds = static::getModuleActiveStoresIds($config['idWebsite']);
25
  // shop configuration
26
  $magesel = Mage::getModel("core/store")->load(reset($this->allShopIds));
27
 
@@ -32,12 +32,13 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
32
  $this->forbiddenMailExtensions = explode(';', $magesel->getConfig(strtolower('AVISVERIFIES/system/FORBIDDEN_EMAIL'))); //emails interdit
33
  $this->delay = $magesel->getConfig(strtolower('AVISVERIFIES/system/DELAY'));
34
  // SHA1, secret Hashing.
35
- if (isset($config['query']))
36
  $this->SHA1 = SHA1($config['query'].$this->idwebsite.$this->secretkey);
 
37
  }
38
 
39
  // we are going to filter by idWebsite and is active
40
- public static function getModuleActiveStoresIds($idWebsite){
41
  // get config by id
42
  // get config by id
43
  $resource = Mage::getModel("core/config_data")->getCollection()
@@ -62,7 +63,7 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
62
  return $usedSotersIds;
63
  }
64
 
65
- public static function getModuleSecretKey($idWebsite){
66
  // get config by id
67
  $resource = Mage::getModel("core/config_data")->getCollection()
68
  ->addFieldToFilter('scope','stores')
@@ -89,43 +90,50 @@ class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
89
  }
90
 
91
  // Check if the module is active
92
- public static function isActive(){
93
  return (Mage::getStoreConfig('avisverifies/system/enabledwebsite') == 1 &&
94
  Mage::getStoreConfig(strtolower('avisverifies/system/DISPLAYPRODREVIEWS'))=='yes');
95
  }
96
 
97
  // Check if the default Magento review is disactive
98
- public static function isDefaultDisplay() {
99
  // defaultReviews / 1 to hide and 0 to show
100
  // so we need to retun !defaultReviews
101
  return !Mage::getStoreConfig('avisverifies/extra/defaultReviews');
102
  }
103
 
104
- public static function addReviewToProductPage() {
105
  // default false , change to true
106
  return Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
107
  }
108
 
109
- public static function hasjQuery() {
110
  // default to No = 0
111
  return (boolean)Mage::getStoreConfig('avisverifies/extra/hasjQuery');
112
  }
113
 
114
- public static function removeLinkWidget() {
115
  $addReviewToProductPage = Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
116
  $pageType = Mage::app()->getRequest()->getControllerName();
117
  $moduleName = Mage::app()->getRequest()->getModuleName();
118
  $action = Mage::app()->getRequest()->getActionName();
119
-
 
 
 
 
 
 
 
120
  // review product page
121
- if($pageType == 'product' && $moduleName = 'review' && $action == 'list'){
122
  return true;
123
  }// product page with configuration active
124
- elseif($pageType == 'product' && $moduleName = 'catalog' && $action == 'view' && $addReviewToProductPage == 1) {
125
  return true;
126
  }
127
  else {
128
- return 0;
129
  }
130
 
131
  }
4
  * AND for translation purpose also.
5
  */
6
  class Netreviews_Avisverifies_Helper_Data extends Mage_Core_Helper_Abstract{
7
+
8
  public $idwebsite;
9
  public $secretkey;
10
  public $statusChoosen;
19
  public function setup(array $config){
20
  // Magento Shop Info
21
  $this->idwebsite = $config['idWebsite'];
22
+ $this->secretkey = $this->getModuleSecretKey($config['idWebsite']);
23
  $this->enabledwebsite = (empty($this->secretkey))? 0 : 1;
24
+ $this->allShopIds = $this->getModuleActiveStoresIds($config['idWebsite']);
25
  // shop configuration
26
  $magesel = Mage::getModel("core/store")->load(reset($this->allShopIds));
27
 
32
  $this->forbiddenMailExtensions = explode(';', $magesel->getConfig(strtolower('AVISVERIFIES/system/FORBIDDEN_EMAIL'))); //emails interdit
33
  $this->delay = $magesel->getConfig(strtolower('AVISVERIFIES/system/DELAY'));
34
  // SHA1, secret Hashing.
35
+ if (isset($config['query'])) {
36
  $this->SHA1 = SHA1($config['query'].$this->idwebsite.$this->secretkey);
37
+ }
38
  }
39
 
40
  // we are going to filter by idWebsite and is active
41
+ public function getModuleActiveStoresIds($idWebsite){
42
  // get config by id
43
  // get config by id
44
  $resource = Mage::getModel("core/config_data")->getCollection()
63
  return $usedSotersIds;
64
  }
65
 
66
+ public function getModuleSecretKey($idWebsite){
67
  // get config by id
68
  $resource = Mage::getModel("core/config_data")->getCollection()
69
  ->addFieldToFilter('scope','stores')
90
  }
91
 
92
  // Check if the module is active
93
+ public function isActive(){
94
  return (Mage::getStoreConfig('avisverifies/system/enabledwebsite') == 1 &&
95
  Mage::getStoreConfig(strtolower('avisverifies/system/DISPLAYPRODREVIEWS'))=='yes');
96
  }
97
 
98
  // Check if the default Magento review is disactive
99
+ public function isDefaultDisplay() {
100
  // defaultReviews / 1 to hide and 0 to show
101
  // so we need to retun !defaultReviews
102
  return !Mage::getStoreConfig('avisverifies/extra/defaultReviews');
103
  }
104
 
105
+ public function addReviewToProductPage() {
106
  // default false , change to true
107
  return Mage::getStoreConfig('avisverifies/extra/addReviewToProductPage');
108
  }
109
 
110
+ public function hasjQuery() {
111
  // default to No = 0
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
  }
app/code/local/Netreviews/Avisverifies/Helper/Install.php CHANGED
@@ -1,17 +1,16 @@
1
  <?php
2
  class Netreviews_Avisverifies_Helper_Install {
3
 
4
-
5
- public static function checkOrder($orderId){
6
  try {
7
- return static::_checkOrder($orderId);
8
  } catch (Exception $exc) {
9
  // do nothing
10
  return array();
11
  }
12
  }
13
 
14
- protected static function _checkOrder($orderId) {
15
  $resource = Mage::getSingleton('core/resource');
16
  $read = $resource->getConnection('core_read');
17
  $orderId = (is_null($orderId))? NULL : (int) stripcslashes(urlencode($orderId));
@@ -30,30 +29,30 @@ class Netreviews_Avisverifies_Helper_Install {
30
  }
31
  }
32
 
33
- public static function flagAll(){
34
  try {
35
- static::_flagAll();
36
  } catch (Exception $exc) {
37
  // do nothing
38
  }
39
  }
40
 
41
- protected static function _flagAll(){
42
  $resource = Mage::getSingleton('core/resource');
43
  $write = $resource->getConnection('core_write');
44
  $order = $resource->getTableName('sales/order');
45
  $write->query("UPDATE `{$order}` SET `av_flag` = 1;");
46
  }
47
 
48
- public static function addFields(){
49
  try {
50
- static::_addFields();
51
  } catch (Exception $exc) {
52
  // do nothing
53
  }
54
  }
55
 
56
- protected static function _addFields(){
57
  $resource = Mage::getSingleton('core/resource');
58
  $write = $resource->getConnection('core_write');
59
  $read = $resource->getConnection('core_read');
@@ -86,15 +85,15 @@ class Netreviews_Avisverifies_Helper_Install {
86
 
87
  }
88
 
89
- public static function createTables(){
90
  try {
91
- static::_createTables();
92
  } catch (Exception $exc) {
93
  // do nothing
94
  }
95
  }
96
 
97
- public static function _createTables(){
98
  $resource = Mage::getSingleton('core/resource');
99
  $write = $resource->getConnection('core_write');
100
  // Install Tables, RUN Query.
1
  <?php
2
  class Netreviews_Avisverifies_Helper_Install {
3
 
4
+ public function checkOrder($orderId){
 
5
  try {
6
+ return $this->_checkOrder($orderId);
7
  } catch (Exception $exc) {
8
  // do nothing
9
  return array();
10
  }
11
  }
12
 
13
+ protected function _checkOrder($orderId) {
14
  $resource = Mage::getSingleton('core/resource');
15
  $read = $resource->getConnection('core_read');
16
  $orderId = (is_null($orderId))? NULL : (int) stripcslashes(urlencode($orderId));
29
  }
30
  }
31
 
32
+ public function flagAll(){
33
  try {
34
+ $this->_flagAll();
35
  } catch (Exception $exc) {
36
  // do nothing
37
  }
38
  }
39
 
40
+ protected function _flagAll(){
41
  $resource = Mage::getSingleton('core/resource');
42
  $write = $resource->getConnection('core_write');
43
  $order = $resource->getTableName('sales/order');
44
  $write->query("UPDATE `{$order}` SET `av_flag` = 1;");
45
  }
46
 
47
+ public function addFields(){
48
  try {
49
+ $this->_addFields();
50
  } catch (Exception $exc) {
51
  // do nothing
52
  }
53
  }
54
 
55
+ protected function _addFields(){
56
  $resource = Mage::getSingleton('core/resource');
57
  $write = $resource->getConnection('core_write');
58
  $read = $resource->getConnection('core_read');
85
 
86
  }
87
 
88
+ public function createTables(){
89
  try {
90
+ $this->_createTables();
91
  } catch (Exception $exc) {
92
  // do nothing
93
  }
94
  }
95
 
96
+ public function _createTables(){
97
  $resource = Mage::getSingleton('core/resource');
98
  $write = $resource->getConnection('core_write');
99
  // Install Tables, RUN Query.
app/code/local/Netreviews/Avisverifies/Model/Avisverifies.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Netreviews_Avisverifies_Model_Avisverifies extends Mage_Core_Model_Abstract
3
- {
4
- public function _construct()
5
- {
6
- $this->_init('avisverifies/avisverifies');
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/Model/Observers/Checkout/Track.php CHANGED
@@ -5,12 +5,13 @@ class Netreviews_Avisverifies_Model_Observers_Checkout_Track {
5
  public function trackCheckout(Varien_Event_Observer $observer) {
6
 
7
  $ids = $observer->getEvent()->getOrderIds();
8
- Mage::register('AV_OrderIds',$ids);
9
-
 
 
10
  $layout = Mage::app()->getLayout();
11
  $block = $layout->createBlock('avisverifies/observers_checkout')
12
  ->setTemplate('avisverifies/observers/checkout.phtml');
13
  $layout->getBlock('content')->append($block);
14
-
15
  }
16
  }
5
  public function trackCheckout(Varien_Event_Observer $observer) {
6
 
7
  $ids = $observer->getEvent()->getOrderIds();
8
+ $globalVar = Mage::registry('AV_OrderIds');
9
+ if (empty($globalVar)) {
10
+ Mage::register('AV_OrderIds',$ids);
11
+ }
12
  $layout = Mage::app()->getLayout();
13
  $block = $layout->createBlock('avisverifies/observers_checkout')
14
  ->setTemplate('avisverifies/observers/checkout.phtml');
15
  $layout->getBlock('content')->append($block);
 
16
  }
17
  }
app/code/local/Netreviews/Avisverifies/Model/Observers/Product/List.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class Netreviews_Avisverifies_Model_Observers_Product_List {
3
  public function updateProductRatingSummary(Varien_Event_Observer $observer){
4
- if (Netreviews_Avisverifies_Helper_Data::isActive()) {
5
  $globalVar = Mage::registry('netreview_isProductlist');
6
  if (empty($globalVar)) {
7
  Mage::register('netreview_isProductlist',true);
1
  <?php
2
  class Netreviews_Avisverifies_Model_Observers_Product_List {
3
  public function updateProductRatingSummary(Varien_Event_Observer $observer){
4
+ if (Mage::helper('avisverifies/Data')->isActive()) {
5
  $globalVar = Mage::registry('netreview_isProductlist');
6
  if (empty($globalVar)) {
7
  Mage::register('netreview_isProductlist',true);
app/code/local/Netreviews/Avisverifies/Model/Observers/System.php CHANGED
@@ -19,6 +19,7 @@ class Netreviews_Avisverifies_Model_Observers_System {
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
 
23
  foreach ($storeModel->getWebsiteCollection() as $website) {
24
  if (is_null($curWebsite) || ($curWebsite == $website->getCode() && is_null($curStore))) {
@@ -31,6 +32,7 @@ class Netreviews_Avisverifies_Model_Observers_System {
31
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
32
  $mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'websites',$website->getId());
33
  $mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'websites',$website->getId());
 
34
  }
35
  }
36
 
@@ -45,6 +47,7 @@ class Netreviews_Avisverifies_Model_Observers_System {
45
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'stores',$store->getId());
46
  $mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'stores',$store->getId());
47
  $mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'stores',$store->getId());
 
48
  }
49
  }
50
 
@@ -66,7 +69,7 @@ class Netreviews_Avisverifies_Model_Observers_System {
66
  $allIdwebsite = array_keys($allIdwebsite);
67
  foreach ($allIdwebsite as $idwebsite) {
68
  // now we get the related stores list
69
- $relatedstoreslist = Netreviews_Avisverifies_Helper_Data::getModuleActiveStoresIds($idwebsite);
70
  foreach ($relatedstoreslist as $storeId) {
71
  $mageselc->saveConfig('avisverifies/extra/relatedstoreslist',implode(';',$relatedstoreslist),'stores',$storeId);
72
  }
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))) {
32
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'websites',$website->getId());
33
  $mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'websites',$website->getId());
34
  $mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'websites',$website->getId());
35
+ $mageselc->saveConfig('avisverifies/extra/useProductUrl',$useProductUrl,'websites',$website->getId());
36
  }
37
  }
38
 
47
  $mageselc->saveConfig('avisverifies/extra/useProductSKU',$useProductSKU,'stores',$store->getId());
48
  $mageselc->saveConfig('avisverifies/extra/productLightWidget',$productLightWidget,'stores',$store->getId());
49
  $mageselc->saveConfig('avisverifies/extra/hasjQuery',$hasjQuery,'stores',$store->getId());
50
+ $mageselc->saveConfig('avisverifies/extra/useProductUrl',$useProductUrl,'stores',$store->getId());
51
  }
52
  }
53
 
69
  $allIdwebsite = array_keys($allIdwebsite);
70
  foreach ($allIdwebsite as $idwebsite) {
71
  // now we get the related stores list
72
+ $relatedstoreslist = Mage::helper('avisverifies/Data')->getModuleActiveStoresIds($idwebsite);
73
  foreach ($relatedstoreslist as $storeId) {
74
  $mageselc->saveConfig('avisverifies/extra/relatedstoreslist',implode(';',$relatedstoreslist),'stores',$storeId);
75
  }
app/code/local/Netreviews/Avisverifies/Model/Product.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Netreviews_Avisverifies_Model_Product extends Mage_Catalog_Model_Product
3
- {
4
- // Overriding Magento getRatingSummary() : to our custom need.
5
- public function getRatingSummary()
6
- {
7
- $magesel = Mage::app()->getStore()->getWebsite();
8
-
9
- if (Netreviews_Avisverifies_Helper_Data::isActive()) {
10
- $object = Mage::getModel('avisverifies/reviews');
11
- $object->idProduct = $this->getData('entity_id'); // IMPORTANT add idProduct to to reviews object.
12
- return $object;
13
- }
14
- else {
15
- if(is_object($this->_getData('rating_summary')))
16
- return $this->_getData('rating_summary');
17
- }
18
-
19
- }
20
- }
21
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Netreviews/Avisverifies/Model/Reviews.php CHANGED
@@ -18,25 +18,39 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
18
  }
19
 
20
  protected function throwException() {
 
21
  if ($this->idProduct === null) {
22
  echo '<!-- Please specify: "idProduct" -> ($your_object->idProduct = $idProduct). -->';
23
  }
24
- if (empty($this->skuProduct)) {
25
- $this->skuAndId();
26
- }
27
  }
28
 
29
  protected function skuAndId(){
30
- if (is_numeric($this->idProduct)) {
 
 
 
 
 
 
 
 
 
 
 
 
31
  $product = Mage::getModel('catalog/product')->load($this->idProduct);
32
  $this->idProduct = $product->getId();
33
  $this->skuProduct = $product->getSku();
34
  }
35
- else {
36
  $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $this->idProduct);
37
  $this->idProduct = $product->getId();
38
  $this->skuProduct = $product->getSku();
39
  }
 
 
 
 
40
  }
41
 
42
  public function getReviewsCount() {
@@ -127,7 +141,7 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
127
  }
128
 
129
  public function discussion($discussion,$review){
130
- $my_review['discussion'] = array();
131
  $unserialized_discussion = array();
132
  try {
133
  $unserialized_discussion = unserialize($this->AV_decode_base64($discussion));
@@ -135,23 +149,37 @@ class Netreviews_Avisverifies_Model_Reviews extends Mage_Core_Model_Abstract{
135
  // Handle unserialize error normal string .
136
  }
137
  // Handle unserialize false .
138
- if ($unserialized_discussion === false)
139
  return array();
140
-
141
- foreach ($unserialized_discussion as $k_discussion => $each_discussion) {
142
- $my_review['discussion'][$k_discussion]['commentaire'] = $each_discussion['commentaire'];
143
- $my_review['discussion'][$k_discussion]['horodate'] = strtotime($each_discussion['horodate']);
 
 
 
 
 
 
 
 
 
 
 
 
144
  if ($each_discussion['origine'] == 'ecommercant') {
145
- $my_review['discussion'][$k_discussion]['origine'] = 'Webmaster';
146
  }
147
  elseif ($each_discussion['origine'] == 'internaute') {
148
- $my_review['discussion'][$k_discussion]['origine'] = urldecode($review->getData('customer_name'));
149
  }
150
  else {
151
- $my_review['discussion'][$k_discussion]['origine'] = 'Moderator';
152
  }
153
  }
154
- return $my_review['discussion'];
 
 
155
  }
156
 
157
  public function formatNote($note){
18
  }
19
 
20
  protected function throwException() {
21
+ $this->skuAndId();
22
  if ($this->idProduct === null) {
23
  echo '<!-- Please specify: "idProduct" -> ($your_object->idProduct = $idProduct). -->';
24
  }
 
 
 
25
  }
26
 
27
  protected function skuAndId(){
28
+ if (Mage::registry('product') && empty($this->idProduct) && empty($this->skuProduct)) {
29
+ $this->idProduct = Mage::registry('product')->getId();
30
+ $this->skuProduct = Mage::registry('product')->getSku();
31
+ }
32
+ elseif (Mage::registry('product') && $this->idProduct == Mage::registry('product')->getId()) {
33
+ $this->idProduct = Mage::registry('product')->getId();
34
+ $this->skuProduct = Mage::registry('product')->getSku();
35
+ }
36
+ elseif (Mage::registry('product') && $this->skuProduct == Mage::registry('product')->getSku()) {
37
+ $this->idProduct = Mage::registry('product')->getId();
38
+ $this->skuProduct = Mage::registry('product')->getSku();
39
+ }
40
+ elseif (!empty($this->idProduct) && empty($this->skuProduct)) {
41
  $product = Mage::getModel('catalog/product')->load($this->idProduct);
42
  $this->idProduct = $product->getId();
43
  $this->skuProduct = $product->getSku();
44
  }
45
+ elseif(!empty($this->skuProduct) && empty($this->idProduct)) {
46
  $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $this->idProduct);
47
  $this->idProduct = $product->getId();
48
  $this->skuProduct = $product->getSku();
49
  }
50
+ elseif (empty($this->skuProduct) && empty($this->idProduct)) {
51
+ $this->idProduct = NULL;
52
+ $this->skuProduct = NULL;
53
+ }
54
  }
55
 
56
  public function getReviewsCount() {
141
  }
142
 
143
  public function discussion($discussion,$review){
144
+ $my_review = array();
145
  $unserialized_discussion = array();
146
  try {
147
  $unserialized_discussion = unserialize($this->AV_decode_base64($discussion));
149
  // Handle unserialize error normal string .
150
  }
151
  // Handle unserialize false .
152
+ if ($unserialized_discussion === false) {
153
  return array();
154
+ }
155
+ foreach ($unserialized_discussion as $each_discussion) {
156
+ // test if timestamp or not
157
+ if (is_numeric($each_discussion['horodate'])) {
158
+ $k_discussion = $each_discussion['horodate'];
159
+ }
160
+ else {
161
+ $k_discussion = strtotime($each_discussion['horodate']);
162
+ }
163
+ // if same time as older review just add +1,
164
+ if (isset($my_review[$k_discussion])) {
165
+ $k_discussion++;
166
+ }
167
+
168
+ $my_review[$k_discussion]['commentaire'] = $each_discussion['commentaire'];
169
+ $my_review[$k_discussion]['horodate'] = $k_discussion;
170
  if ($each_discussion['origine'] == 'ecommercant') {
171
+ $my_review[$k_discussion]['origine'] = Mage::helper('avisverifies')->__('Webmaster');
172
  }
173
  elseif ($each_discussion['origine'] == 'internaute') {
174
+ $my_review[$k_discussion]['origine'] = urldecode($review->getData('customer_name'));
175
  }
176
  else {
177
+ $my_review[$k_discussion]['origine'] = Mage::helper('avisverifies')->__('Moderator');
178
  }
179
  }
180
+ // sort the array ASC
181
+ ksort($my_review);
182
+ return $my_review;
183
  }
184
 
185
  public function formatNote($note){
app/code/local/Netreviews/Avisverifies/controllers/Adminhtml/AvisverifiesController.php CHANGED
@@ -158,7 +158,7 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
158
  $orderSess = Mage::getSingleton('admin/session')->getNetReviewsDebugOrder();
159
 
160
  if (!empty($orderSess)) {
161
- $checkOrders = Netreviews_Avisverifies_Helper_Install::checkOrder($orderSess);
162
  Mage::getSingleton('admin/session')->setNetReviewsDebugOrder(NULL);
163
  }
164
  else {
@@ -196,13 +196,13 @@ class Netreviews_Avisverifies_Adminhtml_AvisverifiesController extends Mage_Admi
196
  Mage::throwException($this->__('Invalid form data.'));
197
  }
198
  if (isset($post['debug']['reinstall']) && $post['debug']['reinstall'] == 'yes') {
199
- Netreviews_Avisverifies_Helper_Install::createTables();
200
  }
201
  if (isset($post['debug']['flag']) && $post['debug']['flag'] == 'yes') {
202
- Netreviews_Avisverifies_Helper_Install::flagAll();
203
  }
204
  if (isset($post['debug']['fields']) && $post['debug']['fields'] == 'yes') {
205
- Netreviews_Avisverifies_Helper_Install::addFields();
206
  }
207
  if (!empty($post['debug']['order'])) {
208
  Mage::getSingleton('admin/session')->setNetReviewsDebugOrder($post['debug']['order']);
158
  $orderSess = Mage::getSingleton('admin/session')->getNetReviewsDebugOrder();
159
 
160
  if (!empty($orderSess)) {
161
+ $checkOrders = Mage::helper('avisverifies/Install')->checkOrder($orderSess);
162
  Mage::getSingleton('admin/session')->setNetReviewsDebugOrder(NULL);
163
  }
164
  else {
196
  Mage::throwException($this->__('Invalid form data.'));
197
  }
198
  if (isset($post['debug']['reinstall']) && $post['debug']['reinstall'] == 'yes') {
199
+ Mage::helper('avisverifies/Install')->createTables();
200
  }
201
  if (isset($post['debug']['flag']) && $post['debug']['flag'] == 'yes') {
202
+ Mage::helper('avisverifies/Install')->flagAll();
203
  }
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']);
app/code/local/Netreviews/Avisverifies/controllers/DialogController.php CHANGED
@@ -349,8 +349,9 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
349
 
350
  protected function productExistInArray($array,$id) {
351
  // first test if product array exist
352
- if (empty($tmp[$id]['products']))
353
  return false;
 
354
  // else
355
  foreach ($array as $prod) {
356
  if ($prod['id_product'] == $id) {
@@ -371,8 +372,9 @@ class Netreviews_Avisverifies_DialogController extends Mage_Core_Controller_Fron
371
  $coll = Mage::getModel('avisverifies/reviews')->getCollection()
372
  ->addFieldToFilter('id_product_av',$data['id_product_av'])
373
  ->addFieldToFilter('ref_product',$data['ref_product']);
374
- foreach($coll as $val)
375
  $val->delete();
 
376
  }
377
  else {
378
  $resource = Mage::getSingleton('core/resource');
349
 
350
  protected function productExistInArray($array,$id) {
351
  // first test if product array exist
352
+ if (empty($tmp[$id]['products'])) {
353
  return false;
354
+ }
355
  // else
356
  foreach ($array as $prod) {
357
  if ($prod['id_product'] == $id) {
372
  $coll = Mage::getModel('avisverifies/reviews')->getCollection()
373
  ->addFieldToFilter('id_product_av',$data['id_product_av'])
374
  ->addFieldToFilter('ref_product',$data['ref_product']);
375
+ foreach($coll as $val) {
376
  $val->delete();
377
+ }
378
  }
379
  else {
380
  $resource = Mage::getSingleton('core/resource');
app/code/local/Netreviews/Avisverifies/controllers/IndexController.php CHANGED
@@ -9,7 +9,7 @@ class Netreviews_Avisverifies_IndexController extends Mage_Core_Controller_Front
9
  public function ajaxloadAction()
10
  {
11
  $id = Mage::app()->getRequest()->getParam('id_product');
12
- if(empty($id)) {
13
  $this->_redirectUrl(Mage::getBaseUrl(), 301);
14
  }
15
  else {
9
  public function ajaxloadAction()
10
  {
11
  $id = Mage::app()->getRequest()->getParam('id_product');
12
+ if (empty($id)) {
13
  $this->_redirectUrl(Mage::getBaseUrl(), 301);
14
  }
15
  else {
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.2</version>
7
  </Netreviews_Avisverifies>
8
  </modules>
9
  <!-- General Config -->
@@ -17,6 +17,7 @@
17
  <rewrite>
18
  <helper>Netreviews_Avisverifies_Block_Review_Helper</helper>
19
  <product_view>Netreviews_Avisverifies_Block_Review_Product_View</product_view>
 
20
  </rewrite>
21
  </review>
22
  </blocks>
3
  <!-- General Config -->
4
  <modules>
5
  <Netreviews_Avisverifies>
6
+ <version>2.6.5.3</version>
7
  </Netreviews_Avisverifies>
8
  </modules>
9
  <!-- General Config -->
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>
app/code/local/Netreviews/Avisverifies/etc/system.xml CHANGED
@@ -80,6 +80,16 @@
80
  <show_in_store>1</show_in_store>
81
  <comment>Advanced Configuration: This configuration is used to identify product by their sku instead of their sql ids.</comment>
82
  </useProductSKU>
 
 
 
 
 
 
 
 
 
 
83
  <addReviewToProductPage translate="label comment">
84
  <label>Add Review to product Page</label>
85
  <frontend_type>select</frontend_type>
@@ -110,21 +120,11 @@
110
  <show_in_store>1</show_in_store>
111
  <comment>Advanced Configuration: change this to yes, if jQuery is all-ready used on the site.</comment>
112
  </hasjQuery>
113
- <defaultReviews translate="label comment">
114
- <label>Deactivate Magento default reviews </label>
115
- <frontend_type>select</frontend_type>
116
- <source_model>adminhtml/system_config_source_yesno</source_model>
117
- <sort_order>50</sort_order>
118
- <show_in_default>1</show_in_default>
119
- <show_in_website>1</show_in_website>
120
- <show_in_store>1</show_in_store>
121
- <comment>Advanced Configuration: This configuration is used to hide/show Magento default reviews, if our product reviews display is set to hidden.</comment>
122
- </defaultReviews>
123
  <force_product_parent_id translate="label comment">
124
  <label>Force parent product id</label>
125
  <frontend_type>select</frontend_type>
126
  <source_model>adminhtml/system_config_source_yesno</source_model>
127
- <sort_order>60</sort_order>
128
  <show_in_default>1</show_in_default>
129
  <show_in_website>1</show_in_website>
130
  <show_in_store>1</show_in_store>
80
  <show_in_store>1</show_in_store>
81
  <comment>Advanced Configuration: This configuration is used to identify product by their sku instead of their sql ids.</comment>
82
  </useProductSKU>
83
+ <useProductUrl translate="label comment">
84
+ <label>Use product Url Link in stars reviews</label>
85
+ <frontend_type>select</frontend_type>
86
+ <source_model>adminhtml/system_config_source_yesno</source_model>
87
+ <sort_order>20</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ <comment>Advanced Configuration: This configuration is used to change review star url to product url.</comment>
92
+ </useProductUrl>
93
  <addReviewToProductPage translate="label comment">
94
  <label>Add Review to product Page</label>
95
  <frontend_type>select</frontend_type>
120
  <show_in_store>1</show_in_store>
121
  <comment>Advanced Configuration: change this to yes, if jQuery is all-ready used on the site.</comment>
122
  </hasjQuery>
 
 
 
 
 
 
 
 
 
 
123
  <force_product_parent_id translate="label comment">
124
  <label>Force parent product id</label>
125
  <frontend_type>select</frontend_type>
126
  <source_model>adminhtml/system_config_source_yesno</source_model>
127
+ <sort_order>70</sort_order>
128
  <show_in_default>1</show_in_default>
129
  <show_in_website>1</show_in_website>
130
  <show_in_store>1</show_in_store>
app/code/local/Netreviews/Avisverifies/sql/avisverifies_setup/mysql4-install-2.0.0.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php // updagrade script Name : upgrade-2.0.0-2.5.0.php ---> upgrade-{old version}-{newest version}.php
2
  $installer = $this;
3
  $installer->startSetup();
4
- Netreviews_Avisverifies_Helper_Install::addFields();
5
- Netreviews_Avisverifies_Helper_Install::createTables();
 
6
  $installer->endSetup();
1
  <?php // updagrade script Name : upgrade-2.0.0-2.5.0.php ---> upgrade-{old version}-{newest version}.php
2
  $installer = $this;
3
  $installer->startSetup();
4
+ $helper = Mage::helper('avisverifies/Install');
5
+ $helper->addFields();
6
+ $helper->createTables();
7
  $installer->endSetup();
app/design/frontend/base/default/layout/avisverifies.xml CHANGED
@@ -21,18 +21,6 @@
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
- <reference name="content">
25
- <!-- remove magento default reviews -->
26
- <remove name="product.info.product_additional_data"/>
27
- <block name="reviews_wrapper" type="core/template" template="avisverifies/wrapper.phtml">
28
- <block name="product.info.product_additional_data2" template="avisverifies/reviewProductList.phtml" type="review/product_view_list" >
29
- <block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
30
- </block>
31
- </block>
32
- <!-- removed these (2) lines for furthere investigation -->
33
- <!--<remove name="catalog.product.related"/>-->
34
- <!--<remove name="product.info.upsell"/>-->
35
- </reference>
36
  </review_product_list>
37
  <!-- !!!! -->
38
  <catalog_product_view>
@@ -41,14 +29,8 @@
41
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
42
  </reference>
43
  <reference name="content">
44
- <block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml">
45
- <block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
46
- </block>
47
  </reference>
48
- <!-- removed these (3)lines for furthere investigation -->
49
- <!--<reference name="content">
50
- <remove name="product.info.upsell"/>
51
- </reference>-->
52
  </catalog_product_view>
53
 
54
  <!-- !!!! -->
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>
29
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
30
  </reference>
31
  <reference name="content">
32
+ <block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml"/>
 
 
33
  </reference>
 
 
 
 
34
  </catalog_product_view>
35
 
36
  <!-- !!!! -->
app/design/frontend/base/default/template/avisverifies/catalogProductList.phtml CHANGED
@@ -1,90 +1,6 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive() && Netreviews_Avisverifies_Helper_Data::addReviewToProductPage()): // Our Display. ?>
2
- <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
3
- <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
4
- <?php $ProductId = $this->getProductId(); ?>
5
- <?php // to use same code. we are going to call first page from our code. ?>
6
- <?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
7
- <?php // to use same code. we are going to call first page from our code. ?>
8
- <?php try{if(empty($ProductId)){$ProductId = $this->getParentBlock()->getProduct()->getId();}}catch (Exception $ex){};?>
9
- <?php $o_av->idProduct = $ProductId; ?>
10
- <?php $o_av->page = $p; ?>
11
- <?php $statsProduct = $o_av->getStatsProduct(); ?>
12
- <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
13
- <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
14
- <?php $maxPages = $o_av->getProductReviews(); ?>
15
- <?php $maxPages = $maxPages->getLastPageNumber();?>
16
-
17
- <?php $richSnipet = array('','',''); ?>
18
- <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
19
- <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
20
- <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
21
-
22
- <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
23
-
24
- <?php if($countReviews): ?>
25
- <div class="box-collateral box-reviews" id="customer-reviews">
26
- <?php // info pour le js ajax ?>
27
- <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
28
- <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
29
- <?php // info pour le js ajax ?>
30
- <div id="av_more_info_tabs"></div>
31
- <div class="clear"></div>
32
- <div id="idTabavisverifies">
33
- <div id="headerAV">
34
- <a name="hautavreview"></a>
35
- <?php echo $this->__('Product Reviews')?>
36
- </div>
37
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
38
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
39
- <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
40
- <div>
41
- <b><?php echo $this->__('Number of reviews')?></b>
42
- : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
43
- </div>
44
- <div>
45
- <b><?php echo $this->__('Average rating')?></b>
46
- : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
47
- <div class="ratingWrapper" style="display:inline-block;">
48
- <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
49
- </div>
50
- </div>
51
- </div>
52
- <div id="certificatAV">
53
- <div>
54
- <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
55
- <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
56
- <?php echo $this->__('View the trust certificate')?>
57
- </a>
58
- </div>
59
- </div>
60
- <div class="clear"></div>
61
- </div>
62
- <div id="ajax_comment_content">
63
- <?php echo Mage::app()->getLayout()->createBlock('core/template')
64
- ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
65
- ->toHtml(); ?>
66
- </div>
67
- <?php if($maxPages > 1): ?>
68
- <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
69
- <?php echo $this->__('More Reviews...')?>
70
- </button>
71
- <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
72
- <?php endif; ?>
73
- </div>
74
- <div class="clear"></div>
75
- </div>
76
- <?php else: ?>
77
- <div class="box-collateral box-reviews" id="customer-reviews">
78
- <div id="idTabavisverifies">
79
- <div id="headerAV">
80
- <a name="hautavreview"></a>
81
- <?php echo $this->__('Product Reviews')?>
82
- </div>
83
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
84
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
85
- <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
86
- </div>
87
- </div>
88
- </div>
89
- <?php endif; ?>
90
  <?php endif; ?>
1
+ <?php if(Mage::helper('avisverifies/Data')->addReviewToProductPage()): // Our Display. ?>
2
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
3
+ ->setData('productId',$this->getData('productId'))
4
+ ->setTemplate('avisverifies/reviewProductList.phtml')
5
+ ->toHtml(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/css.phtml CHANGED
@@ -1,4 +1,4 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
  <style type="text/css">
3
  #idTabavisverifies{
4
  margin-top: 15px;
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
  <style type="text/css">
3
  #idTabavisverifies{
4
  margin-top: 15px;
app/design/frontend/base/default/template/avisverifies/float.phtml CHANGED
@@ -3,5 +3,3 @@
3
  <?php if($SCRIPTFIXE_ALLOWED): ?>
4
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT')) ?>
5
  <?php endif;?>
6
-
7
- <!-- Widget Flottant 1 en position 1 -->
3
  <?php if($SCRIPTFIXE_ALLOWED): ?>
4
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT')) ?>
5
  <?php endif;?>
 
 
app/design/frontend/base/default/template/avisverifies/js.phtml CHANGED
@@ -1,5 +1,5 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
- <?php $nojQuery = !Netreviews_Avisverifies_Helper_Data::hasjQuery(); ?>
3
  <script type="text/javascript">
4
  <?php if($nojQuery): ?>
5
  /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $nojQuery = !Mage::helper('avisverifies/Data')->hasjQuery(); ?>
3
  <script type="text/javascript">
4
  <?php if($nojQuery): ?>
5
  /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
app/design/frontend/base/default/template/avisverifies/left.phtml CHANGED
@@ -7,4 +7,3 @@
7
  </div>
8
  <?php endif;?>
9
 
10
- <?php //echo "<script> console.log('AV: left -> block: left');</script>"; ?>
7
  </div>
8
  <?php endif;?>
9
 
 
app/design/frontend/base/default/template/avisverifies/list.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
3
+ <?php $ProductId = $this->getData('productId'); ?>
4
+ <?php $o_av->idProduct = $ProductId; ?>
5
+ <?php $o_av->page = 1; ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php $maxPages = $o_av->getProductReviews(); ?>
10
+ <?php $maxPages = $maxPages->getLastPageNumber();?>
11
+
12
+ <?php $richSnipet = array('','',''); ?>
13
+ <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
14
+ <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
15
+ <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
16
+
17
+ <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
18
+
19
+ <?php if($countReviews): ?>
20
+ <div class="box-collateral box-reviews" id="customer-reviews">
21
+ <?php // info pour le js ajax ?>
22
+ <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
23
+ <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
24
+ <?php // info pour le js ajax ?>
25
+ <div id="av_more_info_tabs"></div>
26
+ <div class="clear"></div>
27
+ <div id="idTabavisverifies">
28
+ <div id="headerAV">
29
+ <a name="hautavreview"></a>
30
+ <?php echo $this->__('Product Reviews')?>
31
+ </div>
32
+ <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
33
+ <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
34
+ <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
35
+ <div>
36
+ <b><?php echo $this->__('Number of reviews')?></b>
37
+ : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
38
+ </div>
39
+ <div>
40
+ <b><?php echo $this->__('Average rating')?></b>
41
+ : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
42
+ <div class="ratingWrapper" style="display:inline-block;">
43
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div id="certificatAV">
48
+ <div>
49
+ <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
50
+ <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
51
+ <?php echo $this->__('View the trust certificate')?>
52
+ </a>
53
+ </div>
54
+ </div>
55
+ <div class="clear"></div>
56
+ </div>
57
+ <div id="ajax_comment_content">
58
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
59
+ ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
60
+ ->toHtml(); ?>
61
+ </div>
62
+ <?php if($maxPages > 1): ?>
63
+ <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
64
+ <?php echo $this->__('More Reviews...')?>
65
+ </button>
66
+ <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
67
+ <?php endif; ?>
68
+ </div>
69
+ <div class="clear"></div>
70
+ </div>
71
+ <?php else: ?>
72
+ <div class="box-collateral box-reviews" id="customer-reviews">
73
+ <div id="idTabavisverifies">
74
+ <div id="headerAV">
75
+ <a name="hautavreview"></a>
76
+ <?php echo $this->__('Product Reviews')?>
77
+ </div>
78
+ <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
79
+ <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
80
+ <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ <?php endif; ?>
85
+ <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/observers/checkout.phtml CHANGED
@@ -1,12 +1,10 @@
1
-
2
- <?php $order = $this->getOrder() ?>
3
- <?php $url = '//www.netreviews.eu/index.php?action=act_order&idWebsite=' ?>
4
- <?php $orderId = $order->getData('entity_id') ?>
5
- <?php $orderTotal = $order->getData('base_grand_total') * 100; ?>
6
- <?php $idWebsite = Mage::getStoreConfig('avisverifies/system/idwebsite'); ?>
7
- <?php $langue = 'undef'; ?>
8
- <?php $url .= $idWebsite.'&langue='.$langue.'&refCommande='.$orderId.'&montant='.$orderTotal ?>
9
-
10
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
11
  <img height='1' hspace='0' style="position: absolute; bottom: 0; right: 0;" src='<?php echo $url ?>' />
12
  <?php endif;?>
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $order = $this->getOrder() ?>
3
+ <?php $url = '//www.netreviews.eu/index.php?action=act_order&idWebsite=' ?>
4
+ <?php $orderId = $order->getData('entity_id') ?>
5
+ <?php $orderTotal = $order->getData('base_grand_total') * 100; ?>
6
+ <?php $idWebsite = Mage::getStoreConfig('avisverifies/system/idwebsite'); ?>
7
+ <?php $langue = Mage::app()->getLocale()->getLocaleCode(); ?>
8
+ <?php $url .= $idWebsite.'&langue='.$langue.'&refCommande='.$orderId.'&montant='.$orderTotal ?>
 
 
9
  <img height='1' hspace='0' style="position: absolute; bottom: 0; right: 0;" src='<?php echo $url ?>' />
10
  <?php endif;?>
app/design/frontend/base/default/template/avisverifies/pagination.phtml CHANGED
@@ -1,5 +1,5 @@
1
  <?php // This Block is called to paginate reviews. ?>
2
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): ?>
3
  <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
4
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
5
  <?php $ProductId = (int) $this->getRequest()->getParam('id_product'); ?>
1
  <?php // This Block is called to paginate reviews. ?>
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): ?>
3
  <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
4
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
5
  <?php $ProductId = (int) $this->getRequest()->getParam('id_product'); ?>
app/design/frontend/base/default/template/avisverifies/review/helper/summary.phtml CHANGED
@@ -1,12 +1,11 @@
1
- <?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
2
- <?php if(Netreviews_Avisverifies_Helper_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
-
10
  <?php if($countReviews): ?>
11
  <div id="av_product_award">
12
  <div id="top">
@@ -20,7 +19,7 @@
20
  <?php endif; ?>
21
  </div>
22
  <div id="bottom">
23
- <?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
24
  <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
25
  <?php else: ?>
26
  <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
@@ -30,25 +29,4 @@
30
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
31
  </div>
32
  <?php endif; ?>
33
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
34
- <?php if ($this->getReviewsCount()): ?>
35
- <div class="ratings">
36
- <?php if ($this->getRatingSummary()):?>
37
- <div class="rating-box">
38
- <div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>;"></div>
39
- </div>
40
- <?php endif;?>
41
- <span class="amount">
42
- <a href="#" onclick="var t = opener ? opener.window : window; t.location.href='<?php echo $this->getReviewsUrl() ?>'; return false;">
43
- <?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
44
- </a>
45
- </span>
46
- </div>
47
- <?php elseif ($this->getDisplayIfEmpty()): ?>
48
- <p class="no-rating">
49
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form">
50
- <?php echo $this->__('Be the first to review this product') ?>
51
- </a>
52
- </p>
53
- <?php endif; ?>
54
  <?php endif; ?>
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): ?>
10
  <div id="av_product_award">
11
  <div id="top">
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>
29
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
30
  </div>
31
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/review/helper/summary_short.phtml CHANGED
@@ -1,5 +1,5 @@
1
- <?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
2
- <?php if(Netreviews_Avisverifies_Helper_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(); ?>
@@ -12,7 +12,7 @@
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
- <?php if(Netreviews_Avisverifies_Helper_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">
@@ -26,29 +26,4 @@
26
  </p>
27
  </div>
28
  <?php endif; ?>
29
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
30
- <?php if($this->getReviewsCount()): ?>
31
- <div class="ratings">
32
- <?php if ($this->getRatingSummary()):?>
33
- <div class="rating-box">
34
- <div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>"></div>
35
- </div>
36
- <?php endif;?>
37
- <p class="rating-links">
38
- <a href="<?php echo $this->getReviewsUrl() ?>">
39
- <?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
40
- </a>
41
- <span class="separator">|</span>
42
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form"
43
- ><?php echo $this->__('Add Your Review') ?>
44
- </a>
45
- </p>
46
- </div>
47
- <?php elseif($this->getDisplayIfEmpty()): ?>
48
- <p class="no-rating">
49
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form">
50
- <?php echo $this->__('Be the first to review this product') ?>
51
- </a>
52
- </p>
53
- <?php endif; ?>
54
  <?php endif; ?>
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(); ?>
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">
26
  </p>
27
  </div>
28
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <?php endif; ?>
app/design/frontend/base/default/template/avisverifies/reviewProductList.phtml CHANGED
@@ -1,134 +1,5 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
- <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
3
- <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
4
- <?php $ProductId = $this->getProductId(); ?>
5
- <?php // to use same code. we are going to call first page from our code. ?>
6
- <?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
7
- <?php // to use same code. we are going to call first page from our code. ?>
8
- <?php try{if(empty($ProductId)){$ProductId = $this->getParentBlock()->getProduct()->getId();}}catch (Exception $ex){};?>
9
- <?php $o_av->idProduct = $ProductId; ?>
10
- <?php $o_av->page = $p; ?>
11
- <?php $statsProduct = $o_av->getStatsProduct(); ?>
12
- <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
13
- <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
14
- <?php $maxPages = $o_av->getProductReviews(); ?>
15
- <?php $maxPages = $maxPages->getLastPageNumber();?>
16
-
17
- <?php $richSnipet = array('','',''); ?>
18
- <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
19
- <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
20
- <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
21
-
22
- <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
23
 
24
- <?php if($countReviews): ?>
25
- <div class="box-collateral box-reviews" id="customer-reviews">
26
- <?php // info pour le js ajax ?>
27
- <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
28
- <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
29
- <?php // info pour le js ajax ?>
30
- <div id="av_more_info_tabs"></div>
31
- <div class="clear"></div>
32
- <div id="idTabavisverifies">
33
- <div id="headerAV">
34
- <a name="hautavreview"></a>
35
- <?php echo $this->__('Product Reviews')?>
36
- </div>
37
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
38
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
39
- <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
40
- <div>
41
- <b><?php echo $this->__('Number of reviews')?></b>
42
- : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
43
- </div>
44
- <div>
45
- <b><?php echo $this->__('Average rating')?></b>
46
- : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
47
- <div class="ratingWrapper" style="display:inline-block;">
48
- <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
49
- </div>
50
- </div>
51
- </div>
52
- <div id="certificatAV">
53
- <div>
54
- <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
55
- <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
56
- <?php echo $this->__('View the trust certificate')?>
57
- </a>
58
- </div>
59
- </div>
60
- <div class="clear"></div>
61
- </div>
62
- <div id="ajax_comment_content">
63
- <?php echo Mage::app()->getLayout()->createBlock('core/template')
64
- ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
65
- ->toHtml(); ?>
66
- </div>
67
- <?php if($maxPages > 1): ?>
68
- <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
69
- <?php echo $this->__('More Reviews...')?>
70
- </button>
71
- <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
72
- <?php endif; ?>
73
- </div>
74
- <div class="clear"></div>
75
- </div>
76
- <?php else: ?>
77
- <div class="box-collateral box-reviews" id="customer-reviews">
78
- <div id="idTabavisverifies">
79
- <div id="headerAV">
80
- <a name="hautavreview"></a>
81
- <?php echo $this->__('Product Reviews')?>
82
- </div>
83
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
84
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
85
- <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
86
- </div>
87
- </div>
88
- </div>
89
- <?php endif; ?>
90
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
91
- <?php $_items = array(); ?>
92
- <?php $obj = $this->getReviewsCollection(); ?>
93
- <?php if(is_object($obj) && method_exists($obj,'getItems')):?>
94
- <?php $_items = $this->getReviewsCollection()->getItems();?>
95
- <?php endif;?>
96
- <div class="box-collateral box-reviews" id="customer-reviews">
97
- <?php if (count($_items)):?>
98
- <h2><?php echo $this->__('Customer Reviews') ?></h2>
99
- <?php echo $this->getChildHtml('toolbar') ?>
100
- <dl>
101
- <?php foreach ($_items as $_review):?>
102
- <dt>
103
- <a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"><?php echo $this->htmlEscape($_review->getTitle()) ?></a> <?php echo $this->__('Review by <span>%s</span>', $this->htmlEscape($_review->getNickname())) ?>
104
- </dt>
105
- <dd>
106
- <?php $_votes = $_review->getRatingVotes(); ?>
107
- <?php if (count($_votes)): ?>
108
- <table class="ratings-table">
109
- <col width="1" />
110
- <col />
111
- <tbody>
112
- <?php foreach ($_votes as $_vote): ?>
113
- <tr>
114
- <th><?php echo $this->escapeHtml($_vote->getRatingCode()) ?></th>
115
- <td>
116
- <div class="rating-box">
117
- <div class="rating" style="width:<?php echo $_vote->getPercent()."%" ?>;"></div>
118
- </div>
119
- </td>
120
- </tr>
121
- <?php endforeach; ?>
122
- </tbody>
123
- </table>
124
- <?php endif; ?>
125
- <?php echo nl2br($this->htmlEscape($_review->getDetail())) ?>
126
- <small class="date"><?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?></small>
127
- </dd>
128
- <?php endforeach; ?>
129
- </dl>
130
- <?php echo $this->getChildHtml('toolbar') ?>
131
- <?php endif;?>
132
- <?php echo $this->getChildHtml('review_form') ?>
133
- </div>
134
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
3
+ ->setData('productId',$this->getData('productId'))
4
+ ->setTemplate('avisverifies/list.phtml')
5
+ ->toHtml(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/avisverifies/right.phtml CHANGED
@@ -5,6 +5,4 @@
5
  <div style="margin: auto;">
6
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
7
  </div>
8
- <?php endif;?>
9
-
10
- <?php //echo "<script> console.log('AV: right -> block: right');</script>"; ?>
5
  <div style="margin: auto;">
6
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
7
  </div>
8
+ <?php endif;?>
 
 
app/design/frontend/base/default/template/avisverifies/wrapper.phtml DELETED
@@ -1,7 +0,0 @@
1
- <?php // Important: this block call the rest of blocks. ?>
2
-
3
- <div class="reviews-wrapper">
4
- <div class="reviews-container">
5
- <?php echo $this->getChildHtml(); // get all children ?>
6
- </div>
7
- </div>
 
 
 
 
 
 
 
app/design/frontend/default/default/layout/avisverifies.xml CHANGED
@@ -21,18 +21,6 @@
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
- <reference name="content">
25
- <!-- remove magento default reviews -->
26
- <remove name="product.info.product_additional_data"/>
27
- <block name="reviews_wrapper" type="core/template" template="avisverifies/wrapper.phtml">
28
- <block name="product.info.product_additional_data2" template="avisverifies/reviewProductList.phtml" type="review/product_view_list" >
29
- <block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
30
- </block>
31
- </block>
32
- <!-- removed these (2) lines for furthere investigation -->
33
- <!--<remove name="catalog.product.related"/>-->
34
- <!--<remove name="product.info.upsell"/>-->
35
- </reference>
36
  </review_product_list>
37
  <!-- !!!! -->
38
  <catalog_product_view>
@@ -41,14 +29,8 @@
41
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
42
  </reference>
43
  <reference name="content">
44
- <block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml">
45
- <block name="avisverifies.pagination" template="avisverifies/pagination.phtml" type="core/template"/>
46
- </block>
47
  </reference>
48
- <!-- removed these (3)lines for furthere investigation -->
49
- <!--<reference name="content">
50
- <remove name="product.info.upsell"/>
51
- </reference>-->
52
  </catalog_product_view>
53
 
54
  <!-- !!!! -->
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>
29
  <block name="avisverifies_js" type="core/template" template="avisverifies/js.phtml"/>
30
  </reference>
31
  <reference name="content">
32
+ <block after="product_additional_data" type="review/product_view_list" name="product.info.product_additional_data2" as="reviews" template="avisverifies/catalogProductList.phtml"/>
 
 
33
  </reference>
 
 
 
 
34
  </catalog_product_view>
35
 
36
  <!-- !!!! -->
app/design/frontend/default/default/template/avisverifies/admin/checkinstallation_tab.phtml CHANGED
@@ -10,4 +10,4 @@
10
  </span>
11
  </a>
12
  </li>
13
- </ul>
10
  </span>
11
  </a>
12
  </li>
13
+ </ul>
app/design/frontend/default/default/template/avisverifies/catalogProductList.phtml CHANGED
@@ -1,90 +1,6 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive() && Netreviews_Avisverifies_Helper_Data::addReviewToProductPage()): // Our Display. ?>
2
- <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
3
- <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
4
- <?php $ProductId = $this->getProductId(); ?>
5
- <?php // to use same code. we are going to call first page from our code. ?>
6
- <?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
7
- <?php // to use same code. we are going to call first page from our code. ?>
8
- <?php try{if(empty($ProductId)){$ProductId = $this->getParentBlock()->getProduct()->getId();}}catch (Exception $ex){};?>
9
- <?php $o_av->idProduct = $ProductId; ?>
10
- <?php $o_av->page = $p; ?>
11
- <?php $statsProduct = $o_av->getStatsProduct(); ?>
12
- <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
13
- <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
14
- <?php $maxPages = $o_av->getProductReviews(); ?>
15
- <?php $maxPages = $maxPages->getLastPageNumber();?>
16
-
17
- <?php $richSnipet = array('','',''); ?>
18
- <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
19
- <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
20
- <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
21
-
22
- <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
23
-
24
- <?php if($countReviews): ?>
25
- <div class="box-collateral box-reviews" id="customer-reviews">
26
- <?php // info pour le js ajax ?>
27
- <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
28
- <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
29
- <?php // info pour le js ajax ?>
30
- <div id="av_more_info_tabs"></div>
31
- <div class="clear"></div>
32
- <div id="idTabavisverifies">
33
- <div id="headerAV">
34
- <a name="hautavreview"></a>
35
- <?php echo $this->__('Product Reviews')?>
36
- </div>
37
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
38
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
39
- <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
40
- <div>
41
- <b><?php echo $this->__('Number of reviews')?></b>
42
- : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
43
- </div>
44
- <div>
45
- <b><?php echo $this->__('Average rating')?></b>
46
- : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
47
- <div class="ratingWrapper" style="display:inline-block;">
48
- <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
49
- </div>
50
- </div>
51
- </div>
52
- <div id="certificatAV">
53
- <div>
54
- <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
55
- <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
56
- <?php echo $this->__('View the trust certificate')?>
57
- </a>
58
- </div>
59
- </div>
60
- <div class="clear"></div>
61
- </div>
62
- <div id="ajax_comment_content">
63
- <?php echo Mage::app()->getLayout()->createBlock('core/template')
64
- ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
65
- ->toHtml(); ?>
66
- </div>
67
- <?php if($maxPages > 1): ?>
68
- <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
69
- <?php echo $this->__('More Reviews...')?>
70
- </button>
71
- <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
72
- <?php endif; ?>
73
- </div>
74
- <div class="clear"></div>
75
- </div>
76
- <?php else: ?>
77
- <div class="box-collateral box-reviews" id="customer-reviews">
78
- <div id="idTabavisverifies">
79
- <div id="headerAV">
80
- <a name="hautavreview"></a>
81
- <?php echo $this->__('Product Reviews')?>
82
- </div>
83
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
84
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
85
- <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
86
- </div>
87
- </div>
88
- </div>
89
- <?php endif; ?>
90
  <?php endif; ?>
1
+ <?php if(Mage::helper('avisverifies/Data')->addReviewToProductPage()): // Our Display. ?>
2
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
3
+ ->setData('productId',$this->getData('productId'))
4
+ ->setTemplate('avisverifies/reviewProductList.phtml')
5
+ ->toHtml(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/css.phtml CHANGED
@@ -1,4 +1,4 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
  <style type="text/css">
3
  #idTabavisverifies{
4
  margin-top: 15px;
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
  <style type="text/css">
3
  #idTabavisverifies{
4
  margin-top: 15px;
app/design/frontend/default/default/template/avisverifies/float.phtml CHANGED
@@ -3,5 +3,3 @@
3
  <?php if($SCRIPTFIXE_ALLOWED): ?>
4
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT')) ?>
5
  <?php endif;?>
6
-
7
- <!-- Widget Flottant 1 en position 1 -->
3
  <?php if($SCRIPTFIXE_ALLOWED): ?>
4
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFLOAT')) ?>
5
  <?php endif;?>
 
 
app/design/frontend/default/default/template/avisverifies/js.phtml CHANGED
@@ -1,5 +1,5 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
- <?php $nojQuery = !Netreviews_Avisverifies_Helper_Data::hasjQuery(); ?>
3
  <script type="text/javascript">
4
  <?php if($nojQuery): ?>
5
  /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $nojQuery = !Mage::helper('avisverifies/Data')->hasjQuery(); ?>
3
  <script type="text/javascript">
4
  <?php if($nojQuery): ?>
5
  /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
app/design/frontend/default/default/template/avisverifies/left.phtml CHANGED
@@ -7,4 +7,3 @@
7
  </div>
8
  <?php endif;?>
9
 
10
- <?php //echo "<script> console.log('AV: left -> block: left');</script>"; ?>
7
  </div>
8
  <?php endif;?>
9
 
 
app/design/frontend/default/default/template/avisverifies/list.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
3
+ <?php $ProductId = $this->getData('productId'); ?>
4
+ <?php $o_av->idProduct = $ProductId; ?>
5
+ <?php $o_av->page = 1; ?>
6
+ <?php $statsProduct = $o_av->getStatsProduct(); ?>
7
+ <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
8
+ <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
9
+ <?php $maxPages = $o_av->getProductReviews(); ?>
10
+ <?php $maxPages = $maxPages->getLastPageNumber();?>
11
+
12
+ <?php $richSnipet = array('','',''); ?>
13
+ <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
14
+ <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
15
+ <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
16
+
17
+ <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
18
+
19
+ <?php if($countReviews): ?>
20
+ <div class="box-collateral box-reviews" id="customer-reviews">
21
+ <?php // info pour le js ajax ?>
22
+ <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
23
+ <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
24
+ <?php // info pour le js ajax ?>
25
+ <div id="av_more_info_tabs"></div>
26
+ <div class="clear"></div>
27
+ <div id="idTabavisverifies">
28
+ <div id="headerAV">
29
+ <a name="hautavreview"></a>
30
+ <?php echo $this->__('Product Reviews')?>
31
+ </div>
32
+ <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
33
+ <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
34
+ <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
35
+ <div>
36
+ <b><?php echo $this->__('Number of reviews')?></b>
37
+ : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
38
+ </div>
39
+ <div>
40
+ <b><?php echo $this->__('Average rating')?></b>
41
+ : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
42
+ <div class="ratingWrapper" style="display:inline-block;">
43
+ <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div id="certificatAV">
48
+ <div>
49
+ <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
50
+ <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
51
+ <?php echo $this->__('View the trust certificate')?>
52
+ </a>
53
+ </div>
54
+ </div>
55
+ <div class="clear"></div>
56
+ </div>
57
+ <div id="ajax_comment_content">
58
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
59
+ ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
60
+ ->toHtml(); ?>
61
+ </div>
62
+ <?php if($maxPages > 1): ?>
63
+ <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
64
+ <?php echo $this->__('More Reviews...')?>
65
+ </button>
66
+ <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
67
+ <?php endif; ?>
68
+ </div>
69
+ <div class="clear"></div>
70
+ </div>
71
+ <?php else: ?>
72
+ <div class="box-collateral box-reviews" id="customer-reviews">
73
+ <div id="idTabavisverifies">
74
+ <div id="headerAV">
75
+ <a name="hautavreview"></a>
76
+ <?php echo $this->__('Product Reviews')?>
77
+ </div>
78
+ <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
79
+ <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
80
+ <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ <?php endif; ?>
85
+ <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/observers/checkout.phtml CHANGED
@@ -1,12 +1,10 @@
1
-
2
- <?php $order = $this->getOrder() ?>
3
- <?php $url = '//www.netreviews.eu/index.php?action=act_order&idWebsite=' ?>
4
- <?php $orderId = $order->getData('entity_id') ?>
5
- <?php $orderTotal = $order->getData('base_grand_total') * 100; ?>
6
- <?php $idWebsite = Mage::getStoreConfig('avisverifies/system/idwebsite'); ?>
7
- <?php $langue = 'undef'; ?>
8
- <?php $url .= $idWebsite.'&langue='.$langue.'&refCommande='.$orderId.'&montant='.$orderTotal ?>
9
-
10
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
11
  <img height='1' hspace='0' style="position: absolute; bottom: 0; right: 0;" src='<?php echo $url ?>' />
12
  <?php endif;?>
1
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): // Our Display. ?>
2
+ <?php $order = $this->getOrder() ?>
3
+ <?php $url = '//www.netreviews.eu/index.php?action=act_order&idWebsite=' ?>
4
+ <?php $orderId = $order->getData('entity_id') ?>
5
+ <?php $orderTotal = $order->getData('base_grand_total') * 100; ?>
6
+ <?php $idWebsite = Mage::getStoreConfig('avisverifies/system/idwebsite'); ?>
7
+ <?php $langue = Mage::app()->getLocale()->getLocaleCode(); ?>
8
+ <?php $url .= $idWebsite.'&langue='.$langue.'&refCommande='.$orderId.'&montant='.$orderTotal ?>
 
 
9
  <img height='1' hspace='0' style="position: absolute; bottom: 0; right: 0;" src='<?php echo $url ?>' />
10
  <?php endif;?>
app/design/frontend/default/default/template/avisverifies/pagination.phtml CHANGED
@@ -1,5 +1,5 @@
1
  <?php // This Block is called to paginate reviews. ?>
2
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): ?>
3
  <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
4
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
5
  <?php $ProductId = (int) $this->getRequest()->getParam('id_product'); ?>
1
  <?php // This Block is called to paginate reviews. ?>
2
+ <?php if(Mage::helper('avisverifies/Data')->isActive()): ?>
3
  <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
4
  <?php $o_av = Mage::getModel('avisverifies/reviews'); ?>
5
  <?php $ProductId = (int) $this->getRequest()->getParam('id_product'); ?>
app/design/frontend/default/default/template/avisverifies/review/helper/summary.phtml CHANGED
@@ -1,12 +1,11 @@
1
- <?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
2
- <?php if(Netreviews_Avisverifies_Helper_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
-
10
  <?php if($countReviews): ?>
11
  <div id="av_product_award">
12
  <div id="top">
@@ -20,7 +19,7 @@
20
  <?php endif; ?>
21
  </div>
22
  <div id="bottom">
23
- <?php if(Netreviews_Avisverifies_Helper_Data::removeLinkWidget()): ?>
24
  <a href="javascript:void(0)" onclick="window.avisVerifies.scrollTo()" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
25
  <?php else: ?>
26
  <a href="<?php echo $this->getReviewsUrl() ?>" id="AV_button"><?php echo $this->__('See the review(s)')?></a>
@@ -30,25 +29,4 @@
30
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
31
  </div>
32
  <?php endif; ?>
33
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
34
- <?php if ($this->getReviewsCount()): ?>
35
- <div class="ratings">
36
- <?php if ($this->getRatingSummary()):?>
37
- <div class="rating-box">
38
- <div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>;"></div>
39
- </div>
40
- <?php endif;?>
41
- <span class="amount">
42
- <a href="#" onclick="var t = opener ? opener.window : window; t.location.href='<?php echo $this->getReviewsUrl() ?>'; return false;">
43
- <?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
44
- </a>
45
- </span>
46
- </div>
47
- <?php elseif ($this->getDisplayIfEmpty()): ?>
48
- <p class="no-rating">
49
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form">
50
- <?php echo $this->__('Be the first to review this product') ?>
51
- </a>
52
- </p>
53
- <?php endif; ?>
54
  <?php endif; ?>
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): ?>
10
  <div id="av_product_award">
11
  <div id="top">
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>
29
  <img id="sceau" src="<?php echo $this->getSkinUrl('images/avisverifies/Sceau_100'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>" />
30
  </div>
31
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/review/helper/summary_short.phtml CHANGED
@@ -1,5 +1,5 @@
1
- <?php /* changement de mécanique si extension activée au niveau des produits on masque les avis natif Magento */ ?>
2
- <?php if(Netreviews_Avisverifies_Helper_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(); ?>
@@ -12,7 +12,7 @@
12
  <div class="rating" style="width:<?php echo ($getNote*20)."%" ?>"></div>
13
  </div>
14
  <p class="rating-link">
15
- <?php if(Netreviews_Avisverifies_Helper_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">
@@ -26,29 +26,4 @@
26
  </p>
27
  </div>
28
  <?php endif; ?>
29
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
30
- <?php if($this->getReviewsCount()): ?>
31
- <div class="ratings">
32
- <?php if ($this->getRatingSummary()):?>
33
- <div class="rating-box">
34
- <div class="rating" style="width:<?php echo $this->getRatingSummary()."%" ?>"></div>
35
- </div>
36
- <?php endif;?>
37
- <p class="rating-links">
38
- <a href="<?php echo $this->getReviewsUrl() ?>">
39
- <?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?>
40
- </a>
41
- <span class="separator">|</span>
42
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form"
43
- ><?php echo $this->__('Add Your Review') ?>
44
- </a>
45
- </p>
46
- </div>
47
- <?php elseif($this->getDisplayIfEmpty()): ?>
48
- <p class="no-rating">
49
- <a href="<?php echo $this->getReviewsUrl() ?>#review-form">
50
- <?php echo $this->__('Be the first to review this product') ?>
51
- </a>
52
- </p>
53
- <?php endif; ?>
54
  <?php endif; ?>
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(); ?>
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">
26
  </p>
27
  </div>
28
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <?php endif; ?>
app/design/frontend/default/default/template/avisverifies/reviewProductList.phtml CHANGED
@@ -1,134 +1,5 @@
1
- <?php if(Netreviews_Avisverifies_Helper_Data::isActive()): // Our Display. ?>
2
- <?php $p = ($this->getRequest()->getParam('p'))? (int) $this->getRequest()->getParam('p') : 1; ?>
3
- <?php $o_av = Mage::getModel('avisverifies/reviews'); // our custom reviews model ?>
4
- <?php $ProductId = $this->getProductId(); ?>
5
- <?php // to use same code. we are going to call first page from our code. ?>
6
- <?php $ProductId =($ProductId != 0)? $ProductId : $this->getData('productId'); ?>
7
- <?php // to use same code. we are going to call first page from our code. ?>
8
- <?php try{if(empty($ProductId)){$ProductId = $this->getParentBlock()->getProduct()->getId();}}catch (Exception $ex){};?>
9
- <?php $o_av->idProduct = $ProductId; ?>
10
- <?php $o_av->page = $p; ?>
11
- <?php $statsProduct = $o_av->getStatsProduct(); ?>
12
- <?php $countReviews = $statsProduct->getData('nb_reviews'); ?>
13
- <?php $getNote = $o_av->formatNote($statsProduct->getData('rate')); ?>
14
- <?php $maxPages = $o_av->getProductReviews(); ?>
15
- <?php $maxPages = $maxPages->getLastPageNumber();?>
16
-
17
- <?php $richSnipet = array('','',''); ?>
18
- <?php // $richSnipet[0] = ' itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" '?>
19
- <?php // $richSnipet[1] = ' itemprop="ratingValue" '?>
20
- <?php // $richSnipet[2] = ' itemprop="reviewCount" '?>
21
-
22
- <?php // $_product_AV = Mage::getModel('avisverifies/product')->load($ProductId); ?>
23
 
24
- <?php if($countReviews): ?>
25
- <div class="box-collateral box-reviews" id="customer-reviews">
26
- <?php // info pour le js ajax ?>
27
- <?php $tmp = Mage::getUrl('AvisVerifies/index/ajaxload', array('id_product' => $ProductId)) ?>
28
- <input id="avisVarifiesAjaxUrl" type="hidden" value="<?php echo $tmp ?>" />
29
- <?php // info pour le js ajax ?>
30
- <div id="av_more_info_tabs"></div>
31
- <div class="clear"></div>
32
- <div id="idTabavisverifies">
33
- <div id="headerAV">
34
- <a name="hautavreview"></a>
35
- <?php echo $this->__('Product Reviews')?>
36
- </div>
37
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
38
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
39
- <div id="aggregateRatingAV" <?php echo $richSnipet[0] ?>>
40
- <div>
41
- <b><?php echo $this->__('Number of reviews')?></b>
42
- : <span <?php echo $richSnipet[2] ?>><?php echo $countReviews?></span>
43
- </div>
44
- <div>
45
- <b><?php echo $this->__('Average rating')?></b>
46
- : <span <?php echo $richSnipet[1] ?>><?php echo $getNote?></span> /5
47
- <div class="ratingWrapper" style="display:inline-block;">
48
- <div class="ratingInner" style="width:<?php echo ($getNote*20)."%"?>;"></div>
49
- </div>
50
- </div>
51
- </div>
52
- <div id="certificatAV">
53
- <div>
54
- <?php $href = Mage::getStoreConfig('avisverifies/system/urlcertificat'); ?>
55
- <a href="<?php echo $href ?>" target="_blank" class="display_certificat_review" >
56
- <?php echo $this->__('View the trust certificate')?>
57
- </a>
58
- </div>
59
- </div>
60
- <div class="clear"></div>
61
- </div>
62
- <div id="ajax_comment_content">
63
- <?php echo Mage::app()->getLayout()->createBlock('core/template')
64
- ->setData('productId',$ProductId)->setTemplate('avisverifies/pagination.phtml')
65
- ->toHtml(); ?>
66
- </div>
67
- <?php if($maxPages > 1): ?>
68
- <button onclick="window.avisVerifies.Ajax()" id="av_load_next_page" data-page="1" data-page-last="<?php echo $maxPages ?>">
69
- <?php echo $this->__('More Reviews...')?>
70
- </button>
71
- <img id="avisVarifiesAjaxImage" src="<?php echo $this->getSkinUrl('images/avisverifies/pagination-loader.gif')?>" style="display:none;margin: 10px 0px 0px 10px;" />
72
- <?php endif; ?>
73
- </div>
74
- <div class="clear"></div>
75
- </div>
76
- <?php else: ?>
77
- <div class="box-collateral box-reviews" id="customer-reviews">
78
- <div id="idTabavisverifies">
79
- <div id="headerAV">
80
- <a name="hautavreview"></a>
81
- <?php echo $this->__('Product Reviews')?>
82
- </div>
83
- <?php $skinUrl = $this->getSkinUrl('images/avisverifies/Sceau_45'.Mage::app()->getLocale()->getLocaleCode().'.png') ?>
84
- <div id="under-headerAV" style="background: url('<?php echo $skinUrl ?>') no-repeat #f1f1f1;">
85
- <p style="padding: 17px 40px 40px 56px;"><?php echo $this->__("No reviews for this product.")?></p>
86
- </div>
87
- </div>
88
- </div>
89
- <?php endif; ?>
90
- <?php elseif(Netreviews_Avisverifies_Helper_Data::isDefaultDisplay()): // Magento Display ?>
91
- <?php $_items = array(); ?>
92
- <?php $obj = $this->getReviewsCollection(); ?>
93
- <?php if(is_object($obj) && method_exists($obj,'getItems')):?>
94
- <?php $_items = $this->getReviewsCollection()->getItems();?>
95
- <?php endif;?>
96
- <div class="box-collateral box-reviews" id="customer-reviews">
97
- <?php if (count($_items)):?>
98
- <h2><?php echo $this->__('Customer Reviews') ?></h2>
99
- <?php echo $this->getChildHtml('toolbar') ?>
100
- <dl>
101
- <?php foreach ($_items as $_review):?>
102
- <dt>
103
- <a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"><?php echo $this->htmlEscape($_review->getTitle()) ?></a> <?php echo $this->__('Review by <span>%s</span>', $this->htmlEscape($_review->getNickname())) ?>
104
- </dt>
105
- <dd>
106
- <?php $_votes = $_review->getRatingVotes(); ?>
107
- <?php if (count($_votes)): ?>
108
- <table class="ratings-table">
109
- <col width="1" />
110
- <col />
111
- <tbody>
112
- <?php foreach ($_votes as $_vote): ?>
113
- <tr>
114
- <th><?php echo $this->escapeHtml($_vote->getRatingCode()) ?></th>
115
- <td>
116
- <div class="rating-box">
117
- <div class="rating" style="width:<?php echo $_vote->getPercent()."%" ?>;"></div>
118
- </div>
119
- </td>
120
- </tr>
121
- <?php endforeach; ?>
122
- </tbody>
123
- </table>
124
- <?php endif; ?>
125
- <?php echo nl2br($this->htmlEscape($_review->getDetail())) ?>
126
- <small class="date"><?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?></small>
127
- </dd>
128
- <?php endforeach; ?>
129
- </dl>
130
- <?php echo $this->getChildHtml('toolbar') ?>
131
- <?php endif;?>
132
- <?php echo $this->getChildHtml('review_form') ?>
133
- </div>
134
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ <?php echo Mage::app()->getLayout()->createBlock('core/template')
3
+ ->setData('productId',$this->getData('productId'))
4
+ ->setTemplate('avisverifies/list.phtml')
5
+ ->toHtml(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/avisverifies/right.phtml CHANGED
@@ -5,6 +5,4 @@
5
  <div style="margin: auto;">
6
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
7
  </div>
8
- <?php endif;?>
9
-
10
- <?php //echo "<script> console.log('AV: right -> block: right');</script>"; ?>
5
  <div style="margin: auto;">
6
  <?php echo Mage::getStoreConfig(strtolower('avisverifies/system/SCRIPTFIXE')) ?>
7
  </div>
8
+ <?php endif;?>
 
 
app/design/frontend/default/default/template/avisverifies/wrapper.phtml DELETED
@@ -1,7 +0,0 @@
1
- <?php // Important: this block call the rest of blocks. ?>
2
-
3
- <div class="reviews-wrapper">
4
- <div class="reviews-container">
5
- <?php echo $this->getChildHtml(); // get all children ?>
6
- </div>
7
- </div>
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AvisVerifies</name>
4
- <version>2.6.5.2</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.2 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>2014-12-02</date>
14
- <time>17:14:44</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="b60d5008b4a983e94c9d47666174cb04"/></dir></dir></dir><dir name="Observers"><file name="Checkout.php" hash="b870528cc6680350c8b972fd52ec02c9"/></dir><dir name="Review"><dir name="Product"><file name="View.php" hash="cc191a129b59541d32207d5057a7ca45"/></dir><file name="Helper.php" hash="35788c6b5ce60f9b12f9b30271e56834"/></dir></dir><dir name="Helper"><file name="API.php" hash="e3d5ba79ef7a4f613d51c486e5fcf70d"/><file name="Data.php" hash="bf06304ae7545e69236ea38db0df44be"/><file name="Export.php" hash="ed1b7664e7dca456fc514572ceb2499b"/><file name="Install.php" hash="caba9ff15a8222db5504ab709cfb3592"/></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="9ef1537ad83507e55c8e47611d22c1d2"/></dir><dir name="Product"><file name="List.php" hash="6a22af8d45e65e728379be9b54d3bd51"/></dir><file name="System.php" hash="7aa21adecba29bef48ad60bd991c46c1"/></dir><file name="Average.php" hash="9ae1d65bb0fb3515da0d903bec66abb2"/><file name="Avisverifies.php" hash="8c9fc21252411493eb6afdfb41aec0fc"/><file name="Product.php" hash="39e7d522d7aa08be30a668d9e94f3313"/><file name="Reviews.php" hash="61a37da30b2957dd5f6fe67ef147219b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AvisverifiesController.php" hash="efc93ee553425187e540b0b688bd3ae5"/></dir><file name="DialogController.php" hash="ed242f3afbe6df4bed47b03d0f1f56cc"/><file name="IndexController.php" hash="75cfdbd6b4389cace1a1462b88f44887"/></dir><dir name="etc"><file name="config.xml" hash="9cafd6ffb296534ffef9505163357e28"/><file name="system.xml" hash="66eef8cbd5bf4f822d4a9415b997a598"/></dir><dir name="sql"><dir name="avisverifies_setup"><file name="mysql4-install-2.0.0.php" hash="82b330380c2c9f35ae61843a19b892bf"/><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="8828981443a80c6103589d3a5e70e3fa"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="55e8e5afb184285e71518259508a9981"/><file name="summary_short.phtml" hash="3ebfdd77e49f57e197337e159434aa66"/></dir></dir><file name="catalogProductList.phtml" hash="09cb74f6523613c36001a6f3b5459f4c"/><file name="css.phtml" hash="d884ce5a880505cd8fee6e2466a0d13f"/><file name="float.phtml" hash="cb89835ae11a33e133cfbbed9f457f84"/><file name="js.phtml" hash="66fff1cc64954f7221e6e738c56fb003"/><file name="left.phtml" hash="7fc73d43af41d23da96ee95c41276c08"/><file name="pagination.phtml" hash="286065724e2ef719f6affe1bdce09a7c"/><file name="reviewProductList.phtml" hash="deae854ec63cdc4d643da1e089d9686d"/><file name="right.phtml" hash="04a02dc8d1a7d396893569079807811e"/><file name="wrapper.phtml" hash="b16a826c6049efdd5987d38919befba1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="1d3c6529fabb975d73a6a6b25d2191c9"/></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="35cadb081328826be1bc96877c4f2c8d"/><file name="export.phtml" hash="0a1d10eee60a7e486dcb502eb1729076"/><file name="export_tab.phtml" hash="436cb31fca0b23adc72312e1a784f322"/></dir><dir name="observers"><file name="checkout.phtml" hash="8828981443a80c6103589d3a5e70e3fa"/></dir><dir name="review"><dir name="helper"><file name="summary.phtml" hash="55e8e5afb184285e71518259508a9981"/><file name="summary_short.phtml" hash="3ebfdd77e49f57e197337e159434aa66"/></dir></dir><file name="catalogProductList.phtml" hash="09cb74f6523613c36001a6f3b5459f4c"/><file name="css.phtml" hash="d884ce5a880505cd8fee6e2466a0d13f"/><file name="float.phtml" hash="cb89835ae11a33e133cfbbed9f457f84"/><file name="js.phtml" hash="66fff1cc64954f7221e6e738c56fb003"/><file name="left.phtml" hash="7fc73d43af41d23da96ee95c41276c08"/><file name="pagination.phtml" hash="286065724e2ef719f6affe1bdce09a7c"/><file name="reviewProductList.phtml" hash="deae854ec63cdc4d643da1e089d9686d"/><file name="right.phtml" hash="04a02dc8d1a7d396893569079807811e"/><file name="wrapper.phtml" hash="b16a826c6049efdd5987d38919befba1"/></dir></dir><dir name="layout"><file name="avisverifies.xml" hash="1d3c6529fabb975d73a6a6b25d2191c9"/></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.3</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.3 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>2014-12-09</date>
14
+ <time>10:42:20</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="11a2497104aee7e782477bc9fbcc7a1f"/><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="9275b9b7dac7f5ff0e446c200ba87ed4"/><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="9275b9b7dac7f5ff0e446c200ba87ed4"/><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>