Recent_Products_Review - Version 1.0.5

Version Notes

  • Bug Fixes and imrovement
  • Download this release

    Release Info

    Developer SetuBridge Technolabs
    Extension Recent_Products_Review
    Version 1.0.5
    Comparing to
    See all releases


    Code changes from version 1.0.4 to 1.0.5

    app/code/local/Sbridge/Recentreview/Model/Recentreview.php CHANGED
    @@ -16,7 +16,7 @@ class Sbridge_Recentreview_Model_Recentreview extends Mage_Core_Model_Abstract
    16
      $this->_init('recentreview/recentreview');
    17
      }
    18
      public function getRecentreviews()
    19
    - {
    20
      $eavAttribute = new Mage_Eav_Model_Mysql4_Entity_Attribute();
    21
      $pStatus = $eavAttribute->getIdByCode('catalog_product', 'status');
    22
      $pName = $eavAttribute->getIdByCode('catalog_product', 'name');
    @@ -27,7 +27,7 @@ class Sbridge_Recentreview_Model_Recentreview extends Mage_Core_Model_Abstract
    27
      $recentReviewGroup = Mage::getStoreConfig('review_section/recentreview_group');
    28
      $limitReview = round($recentReviewGroup['homepage_reviewcount']);
    29
     
    30
    - $reviews_all = Mage::getModel('review/review')->getResourceCollection()->addStatusFilter(1)->setPagesize($limitReview)->addRateVotes();
    31
      $reviews_all->getSelect()
    32
      ->join(array('cpei'=>Mage::getConfig()->getTablePrefix().'catalog_product_entity_int'),'cpei.entity_id=main_table.entity_pk_value and cpei.store_id='.$storeId.' and cpei.attribute_id='.$pStatus.' and cpei.value=1')
    33
      ->join(array('cpev'=>Mage::getConfig()->getTablePrefix().'catalog_product_entity_varchar'),'cpev.entity_id=main_table.entity_pk_value and cpev.attribute_id='.$pUrlPath.' and cpev.store_id='.$storeId.'')
    16
      $this->_init('recentreview/recentreview');
    17
      }
    18
      public function getRecentreviews()
    19
    + {
    20
      $eavAttribute = new Mage_Eav_Model_Mysql4_Entity_Attribute();
    21
      $pStatus = $eavAttribute->getIdByCode('catalog_product', 'status');
    22
      $pName = $eavAttribute->getIdByCode('catalog_product', 'name');
    27
      $recentReviewGroup = Mage::getStoreConfig('review_section/recentreview_group');
    28
      $limitReview = round($recentReviewGroup['homepage_reviewcount']);
    29
     
    30
    + $reviews_all = Mage::getModel('review/review')->getResourceCollection()->setDateOrder()->addStatusFilter(1)->setPagesize($limitReview)->addRateVotes();
    31
      $reviews_all->getSelect()
    32
      ->join(array('cpei'=>Mage::getConfig()->getTablePrefix().'catalog_product_entity_int'),'cpei.entity_id=main_table.entity_pk_value and cpei.store_id='.$storeId.' and cpei.attribute_id='.$pStatus.' and cpei.value=1')
    33
      ->join(array('cpev'=>Mage::getConfig()->getTablePrefix().'catalog_product_entity_varchar'),'cpev.entity_id=main_table.entity_pk_value and cpev.attribute_id='.$pUrlPath.' and cpev.store_id='.$storeId.'')
    app/design/frontend/default/default/template/recentreview/recent_review.phtml CHANGED
    @@ -1,4 +1,4 @@
    1
    - <?php
    2
      /**
    3
      * Setubridge Technolabs
    4
      * http://www.setubridge.com/
    @@ -23,6 +23,7 @@
    23
      <div class="content">
    24
      <?php
    25
      foreach($reviews_all as $review):
     
    26
      if($review['imageValue'] === "no_selection" || $review['imageValue'] == NULL):
    27
      $newPath = Mage::getModel('catalog/product')->getSmallImageUrl(75);
    28
      else:
    @@ -55,6 +56,7 @@
    55
      <div class="RecentReview-ReviewDate">
    56
      <small class="date"><?php $this->__('(Posted on %s)', $this->formatDate($review['created_at']), 'long');
    57
      echo date('M d,Y', strtotime($review['created_at']));
     
    58
      ?></small>
    59
      </div>
    60
      <?php $summaryData = Mage::getModel('review/review_summary')->load($review['entity_pk_value']);?>
    1
    + <?php
    2
      /**
    3
      * Setubridge Technolabs
    4
      * http://www.setubridge.com/
    23
      <div class="content">
    24
      <?php
    25
      foreach($reviews_all as $review):
    26
    + //DebugBreak();
    27
      if($review['imageValue'] === "no_selection" || $review['imageValue'] == NULL):
    28
      $newPath = Mage::getModel('catalog/product')->getSmallImageUrl(75);
    29
      else:
    56
      <div class="RecentReview-ReviewDate">
    57
      <small class="date"><?php $this->__('(Posted on %s)', $this->formatDate($review['created_at']), 'long');
    58
      echo date('M d,Y', strtotime($review['created_at']));
    59
    +
    60
      ?></small>
    61
      </div>
    62
      <?php $summaryData = Mage::getModel('review/review_summary')->load($review['entity_pk_value']);?>
    app/design/frontend/rwd/default/template/recentreview/recent_review.phtml CHANGED
    @@ -1,4 +1,4 @@
    1
    - <?php
    2
      /**
    3
      * Setubridge Technolabs
    4
      * http://www.setubridge.com/
    1
    + <?php
    2
      /**
    3
      * Setubridge Technolabs
    4
      * http://www.setubridge.com/
    package.xml CHANGED
    @@ -1,7 +1,7 @@
    1
      <?xml version="1.0"?>
    2
      <package>
    3
      <name>Recent_Products_Review</name>
    4
    - <version>1.0.4</version>
    5
      <stability>stable</stability>
    6
      <license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
    7
      <channel>community</channel>
    @@ -32,12 +32,11 @@ By displaying like this you get the attention of your customers to recently revi
    32
      &lt;li&gt;Compatible with Latest Magento community additions&lt;/li&gt;&#xD;
    33
      &lt;li&gt;Follows Magento Coding standards&lt;/li&gt;&#xD;
    34
      </description>
    35
    - <notes>&lt;li&gt; ACL admin role support &lt;/li&gt;&#xD;
    36
    - &lt;li&gt; Bug Fix &lt;/li&gt;</notes>
    37
      <authors><author><name>SetuBridge Technolabs</name><user>SetuBridge</user><email>support@setubridge.com</email></author></authors>
    38
    - <date>2015-04-28</date>
    39
    - <time>07:31:32</time>
    40
    - <contents><target name="magelocal"><dir name="Sbridge"><dir name="Recentreview"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Mycustomoptions.php" hash="5b250f7827ca420cedfa3aaab674a65c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d499ede872fa94ace0a7e849b9a5d7ea"/></dir><dir name="Model"><file name="Recentreview.php" hash="23392cab843dc2350b10b3bcd17eb41a"/></dir><dir name="etc"><file name="config.xml" hash="a36be85c874f4998786c157356920c1c"/><file name="system.xml" hash="3bdb597962cc571417b516c87e580f9c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sbridge_Recentreview.xml" hash="181c4633ecd0a23ce343054d8f2482de"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="0831a539694abb176f5df26a08b65263"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="0831a539694abb176f5df26a08b65263"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="0831a539694abb176f5df26a08b65263"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="Thumbs.db" hash="528bd5eda16287728a97730440bb324f"/><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="Thumbs.db" hash="528bd5eda16287728a97730440bb324f"/><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="setubridge-licence.txt" hash="63758ad6b5b75790d07f7e5741eb2aff"/><file name="recent_review_1.0.4.pdf" hash="0300a24902b7d0917f58b1c4895fd827"/></dir></target></contents>
    41
      <compatible/>
    42
      <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
    43
      </package>
    1
      <?xml version="1.0"?>
    2
      <package>
    3
      <name>Recent_Products_Review</name>
    4
    + <version>1.0.5</version>
    5
      <stability>stable</stability>
    6
      <license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
    7
      <channel>community</channel>
    32
      &lt;li&gt;Compatible with Latest Magento community additions&lt;/li&gt;&#xD;
    33
      &lt;li&gt;Follows Magento Coding standards&lt;/li&gt;&#xD;
    34
      </description>
    35
    + <notes>&lt;li&gt; Bug Fixes and imrovement&lt;/li&gt;</notes>
     
    36
      <authors><author><name>SetuBridge Technolabs</name><user>SetuBridge</user><email>support@setubridge.com</email></author></authors>
    37
    + <date>2015-05-21</date>
    38
    + <time>04:24:15</time>
    39
    + <contents><target name="magelocal"><dir name="Sbridge"><dir name="Recentreview"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Mycustomoptions.php" hash="5b250f7827ca420cedfa3aaab674a65c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d499ede872fa94ace0a7e849b9a5d7ea"/></dir><dir name="Model"><file name="Recentreview.php" hash="8a823cb0d1143428e03ac2aae98df6fe"/></dir><dir name="etc"><file name="config.xml" hash="a36be85c874f4998786c157356920c1c"/><file name="system.xml" hash="3bdb597962cc571417b516c87e580f9c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sbridge_Recentreview.xml" hash="181c4633ecd0a23ce343054d8f2482de"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="0831a539694abb176f5df26a08b65263"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="d41c60fbae6d16302ed9d0b67bf3e8c8"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="recentreview.xml" hash="8c0ae810eecf1ff14a6072b0f25b4c49"/></dir><dir name="template"><dir name="recentreview"><file name="recent_review.phtml" hash="660b503594575c0e450c45f43ab2e8b9"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="Thumbs.db" hash="528bd5eda16287728a97730440bb324f"/><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="css"><file name="recentreview.css" hash="146a2d20831d85d491ce70d89520654a"/></dir><dir name="images"><dir name="recentreview"><file name="Thumbs.db" hash="528bd5eda16287728a97730440bb324f"/><file name="review-icon.png" hash="dc43e0a19863ab7309de3dc82b3dbf16"/></dir></dir><dir name="js"><dir name="recentreview"><file name="recentreview.js" hash="471eafcb0a396c93a468a731eee64fc5"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="setubridge-licence.txt" hash="63758ad6b5b75790d07f7e5741eb2aff"/><file name="recent_review_1.0.4.pdf" hash="0300a24902b7d0917f58b1c4895fd827"/></dir></target></contents>
    40
      <compatible/>
    41
      <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
    42
      </package>