Version Notes
Stability improvement
Remove dots from block names to avoid problems with JQuery selectors.
Download this release
Release Info
Developer | Henning Frettem |
Extension | lipscore |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
- app/code/community/Lipscore/.DS_Store +0 -0
- app/code/community/Lipscore/RatingsReviews/.DS_Store +0 -0
- app/code/community/Lipscore/RatingsReviews/Block/System/Config/Form/Field/Abstract.php +4 -4
- app/code/community/Lipscore/RatingsReviews/Logger.php +2 -2
- app/code/community/Lipscore/RatingsReviews/Model/Observer/Output.php +1 -1
- app/code/community/Lipscore/RatingsReviews/Model/System/Config/Source/Productattr/Brand.php +7 -7
- app/code/community/Lipscore/RatingsReviews/etc/system.xml +0 -1
- app/design/frontend/base/default/layout/lipscore_ratingsreviews.xml +2 -2
- package.xml +6 -6
app/code/community/Lipscore/.DS_Store
ADDED
Binary file
|
app/code/community/Lipscore/RatingsReviews/.DS_Store
ADDED
Binary file
|
app/code/community/Lipscore/RatingsReviews/Block/System/Config/Form/Field/Abstract.php
CHANGED
@@ -13,19 +13,19 @@ class Lipscore_RatingsReviews_Block_System_Config_Form_Field_Abstract
|
|
13 |
}
|
14 |
return $this->lipscoreConfig;
|
15 |
}
|
16 |
-
|
17 |
protected function getSection()
|
18 |
{
|
19 |
return $this->getRequest()->getParam('section', '');
|
20 |
}
|
21 |
-
|
22 |
protected function getWebsite()
|
23 |
{
|
24 |
return $this->getRequest()->getParam('website', '');
|
25 |
}
|
26 |
-
|
27 |
protected function getStore()
|
28 |
{
|
29 |
return $this->getRequest()->getParam('store', '');
|
30 |
-
}
|
31 |
}
|
13 |
}
|
14 |
return $this->lipscoreConfig;
|
15 |
}
|
16 |
+
|
17 |
protected function getSection()
|
18 |
{
|
19 |
return $this->getRequest()->getParam('section', '');
|
20 |
}
|
21 |
+
|
22 |
protected function getWebsite()
|
23 |
{
|
24 |
return $this->getRequest()->getParam('website', '');
|
25 |
}
|
26 |
+
|
27 |
protected function getStore()
|
28 |
{
|
29 |
return $this->getRequest()->getParam('store', '');
|
30 |
+
}
|
31 |
}
|
app/code/community/Lipscore/RatingsReviews/Logger.php
CHANGED
@@ -6,12 +6,12 @@ class Lipscore_RatingsReviews_Logger
|
|
6 |
|
7 |
public static function logException(Exception $e)
|
8 |
{
|
|
|
|
|
9 |
if (static::isIgnoredException($e)) {
|
10 |
return;
|
11 |
}
|
12 |
|
13 |
-
Mage::logException($e);
|
14 |
-
|
15 |
$store = null;
|
16 |
$storeInfo = $url = $to = '';
|
17 |
|
6 |
|
7 |
public static function logException(Exception $e)
|
8 |
{
|
9 |
+
Mage::logException($e);
|
10 |
+
|
11 |
if (static::isIgnoredException($e)) {
|
12 |
return;
|
13 |
}
|
14 |
|
|
|
|
|
15 |
$store = null;
|
16 |
$storeInfo = $url = $to = '';
|
17 |
|
app/code/community/Lipscore/RatingsReviews/Model/Observer/Output.php
CHANGED
@@ -49,7 +49,7 @@ class Lipscore_RatingsReviews_Model_Observer_Output extends Lipscore_RatingsRevi
|
|
49 |
$tabs = $layout->getBlock('product.info.tabs');
|
50 |
if ($tabs && method_exists($tabs, 'addTab')) {
|
51 |
$tabs->addTab(
|
52 |
-
'
|
53 |
'lipscore/reviews/view.phtml'
|
54 |
);
|
55 |
}
|
49 |
$tabs = $layout->getBlock('product.info.tabs');
|
50 |
if ($tabs && method_exists($tabs, 'addTab')) {
|
51 |
$tabs->addTab(
|
52 |
+
'lipscore_reviews', self::REVIEW_TITLE_PLACEHOLDER, 'lipscore_ratingsreviews/catalog_product_reviews',
|
53 |
'lipscore/reviews/view.phtml'
|
54 |
);
|
55 |
}
|
app/code/community/Lipscore/RatingsReviews/Model/System/Config/Source/Productattr/Brand.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
class Lipscore_RatingsReviews_Model_System_Config_Source_Productattr_Brand
|
4 |
{
|
5 |
public function toOptionArray()
|
@@ -7,25 +7,25 @@ class Lipscore_RatingsReviews_Model_System_Config_Source_Productattr_Brand
|
|
7 |
$attrs = array(
|
8 |
array('value' =>'', 'label' => Mage::helper('adminhtml')->__('--Please Select--'))
|
9 |
);
|
10 |
-
|
11 |
try {
|
12 |
$attrs = array_merge($attrs, $this->_findAttrs());
|
13 |
} catch (Exception $e) {
|
14 |
Lipscore_RatingsReviews_Logger::logException($e);
|
15 |
}
|
16 |
-
|
17 |
return $attrs;
|
18 |
}
|
19 |
-
|
20 |
protected function _findAttrs()
|
21 |
{
|
22 |
$attrs = array();
|
23 |
-
|
24 |
$collection = Mage::getResourceModel('catalog/product_attribute_collection')
|
25 |
->addStoreLabel(Mage::app()->getStore()->getId())
|
26 |
->addFieldToFilter('frontend_input', array('in' => array('text', 'select')))
|
27 |
->addVisibleFilter();
|
28 |
-
|
29 |
if ($collection->getSize() > 0) {
|
30 |
foreach ($collection->getItems() as $attr) {
|
31 |
$attrs[] = array(
|
@@ -34,7 +34,7 @@ class Lipscore_RatingsReviews_Model_System_Config_Source_Productattr_Brand
|
|
34 |
);
|
35 |
}
|
36 |
}
|
37 |
-
|
38 |
return $attrs;
|
39 |
}
|
40 |
}
|
1 |
<?php
|
2 |
+
|
3 |
class Lipscore_RatingsReviews_Model_System_Config_Source_Productattr_Brand
|
4 |
{
|
5 |
public function toOptionArray()
|
7 |
$attrs = array(
|
8 |
array('value' =>'', 'label' => Mage::helper('adminhtml')->__('--Please Select--'))
|
9 |
);
|
10 |
+
|
11 |
try {
|
12 |
$attrs = array_merge($attrs, $this->_findAttrs());
|
13 |
} catch (Exception $e) {
|
14 |
Lipscore_RatingsReviews_Logger::logException($e);
|
15 |
}
|
16 |
+
|
17 |
return $attrs;
|
18 |
}
|
19 |
+
|
20 |
protected function _findAttrs()
|
21 |
{
|
22 |
$attrs = array();
|
23 |
+
|
24 |
$collection = Mage::getResourceModel('catalog/product_attribute_collection')
|
25 |
->addStoreLabel(Mage::app()->getStore()->getId())
|
26 |
->addFieldToFilter('frontend_input', array('in' => array('text', 'select')))
|
27 |
->addVisibleFilter();
|
28 |
+
|
29 |
if ($collection->getSize() > 0) {
|
30 |
foreach ($collection->getItems() as $attr) {
|
31 |
$attrs[] = array(
|
34 |
);
|
35 |
}
|
36 |
}
|
37 |
+
|
38 |
return $attrs;
|
39 |
}
|
40 |
}
|
app/code/community/Lipscore/RatingsReviews/etc/system.xml
CHANGED
@@ -53,7 +53,6 @@
|
|
53 |
<fields>
|
54 |
<attr translate="label comment">
|
55 |
<label>Brand Attribute</label>
|
56 |
-
<comment>Optional, but strongly recommended to increase accuracy of product identification.</comment>
|
57 |
<frontend_type>select</frontend_type>
|
58 |
<source_model>
|
59 |
lipscore_ratingsreviews/system_config_source_productattr_brand
|
53 |
<fields>
|
54 |
<attr translate="label comment">
|
55 |
<label>Brand Attribute</label>
|
|
|
56 |
<frontend_type>select</frontend_type>
|
57 |
<source_model>
|
58 |
lipscore_ratingsreviews/system_config_source_productattr_brand
|
app/design/frontend/base/default/layout/lipscore_ratingsreviews.xml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
|
8 |
<catalog_product_view>
|
9 |
<reference name="product.info">
|
10 |
-
<block type="lipscore_ratingsreviews/catalog_product_reviews" name="
|
11 |
<action method="addToParentGroup"><group>detailed_info</group></action>
|
12 |
<action method="setTitle"><value>lipscore_reviews_placeholder</value></action>
|
13 |
</block>
|
@@ -16,7 +16,7 @@
|
|
16 |
|
17 |
<lipscore_common_head>
|
18 |
<reference name="head">
|
19 |
-
<block type="lipscore_ratingsreviews/init" name="
|
20 |
<action method="addItem"><type>skin_css</type><file>css/lipscore.css</file></action>
|
21 |
<action method="addItem"><type>skin_js</type><file>js/lipscore.js</file></action>
|
22 |
</reference>
|
7 |
|
8 |
<catalog_product_view>
|
9 |
<reference name="product.info">
|
10 |
+
<block type="lipscore_ratingsreviews/catalog_product_reviews" name="lipscore_reviews" as="lipscore-reviews" template="lipscore/reviews/view.phtml">
|
11 |
<action method="addToParentGroup"><group>detailed_info</group></action>
|
12 |
<action method="setTitle"><value>lipscore_reviews_placeholder</value></action>
|
13 |
</block>
|
16 |
|
17 |
<lipscore_common_head>
|
18 |
<reference name="head">
|
19 |
+
<block type="lipscore_ratingsreviews/init" name="lipscore_init" template="lipscore/init.phtml" />
|
20 |
<action method="addItem"><type>skin_css</type><file>css/lipscore.css</file></action>
|
21 |
<action method="addItem"><type>skin_js</type><file>js/lipscore.js</file></action>
|
22 |
</reference>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>lipscore</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://lipscore.com/signup">Terms of use</license>
|
7 |
<channel>community</channel>
|
@@ -11,12 +11,12 @@
|
|
11 |
Lipscore has a range of great features that will
|
12 |
take all the hassle out of collecting product reviews, and help convert more
|
13 |
visitors in to profitable customers.</description>
|
14 |
-
<notes>
|
15 |
-
|
16 |
<authors><author><name>Henning Frettem</name><user>Lipscore</user><email>henning@lipscore.com</email></author><author><name>Olga Ivanova</name><user>oivanova</user><email>o.ivanova@datacrafts.io</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Lipscore"><dir name="RatingsReviews"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="Reviews.php" hash="e42b5b73a1b0f108818e4e8dad529d65"/><file name="View.php" hash="64d1e7a6a79a2c69f5fcc7f93b600947"/></dir></dir><file name="Init.php" hash="5537b142d273b6e5948e0e3bc7c2dc84"/><dir name="Review"><file name="Helper.php" hash="fdf8d0a486f37072f9b6f535ae4ce866"/><file name="Single.php" hash="1828a165516557d36820851da6a4fd6a"/><file name="Tabtitle.php" hash="20dfc5f3dc63c5b341c98ac1652b81d9"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>lipscore</name>
|
4 |
+
<version>1.4.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://lipscore.com/signup">Terms of use</license>
|
7 |
<channel>community</channel>
|
11 |
Lipscore has a range of great features that will
|
12 |
take all the hassle out of collecting product reviews, and help convert more
|
13 |
visitors in to profitable customers.</description>
|
14 |
+
<notes>Stability improvement
|
15 |
+
Remove dots from block names to avoid problems with JQuery selectors.</notes>
|
16 |
<authors><author><name>Henning Frettem</name><user>Lipscore</user><email>henning@lipscore.com</email></author><author><name>Olga Ivanova</name><user>oivanova</user><email>o.ivanova@datacrafts.io</email></author></authors>
|
17 |
+
<date>2017-03-21</date>
|
18 |
+
<time>09:56:51</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Lipscore"><dir name="RatingsReviews"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="Reviews.php" hash="e42b5b73a1b0f108818e4e8dad529d65"/><file name="View.php" hash="64d1e7a6a79a2c69f5fcc7f93b600947"/></dir></dir><file name="Init.php" hash="5537b142d273b6e5948e0e3bc7c2dc84"/><dir name="Review"><file name="Helper.php" hash="fdf8d0a486f37072f9b6f535ae4ce866"/><file name="Single.php" hash="1828a165516557d36820851da6a4fd6a"/><file name="Tabtitle.php" hash="20dfc5f3dc63c5b341c98ac1652b81d9"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="0c10ccbad8e97eadf6021e4917a43b2a"/><file name="Apikey.php" hash="213fd68e66912f5e4d0930e595aee9c6"/><file name="Emailstext.php" hash="0f850db8a26e3dfecc429b2ed0850052"/><file name="Reminderperiod.php" hash="06e032dbd4319123fc20806e8357b77a"/></dir><dir name="Fieldset"><file name="Coupons.php" hash="06445cca16893ec4b31c909fe7375742"/><file name="Dashboardlink.php" hash="7b35ae95cd4f55f6e18b1819a17ae57c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Abstract.php" hash="4715d026440f1bb1cda70d56a69a2513"/><file name="Config.php" hash="e252d8f075fd27417293027beb6eb85d"/><file name="Coupon.php" hash="c44e0a938edccb05e733f40955a8a179"/><file name="Data.php" hash="d4a2ee7e1dbdd277e5a6eff4927fe4b2"/><file name="Kickstart.php" hash="606cd0b7efc96758a71decad671302ad"/><file name="Locale.php" hash="c0cbbde2d1be7814169a6025d7d787e2"/><file name="Module.php" hash="e1842e7db598288f6c2ac1a706a5956b"/><file name="Price.php" hash="a18d38d97b10f2bf7ab4e1cd0a9e83a4"/><file name="Product.php" hash="09ea9f1d7cacd16ad663ebd1588df46a"/><file name="Purchase.php" hash="30991d1ae641b9a3ea3dcf72c0da53d7"/><file name="Reminder.php" hash="f7b0e91e3fafd000765ac1c3dc21409f"/><file name="Widget.php" hash="fe913158ac4075f107286b08fed57d47"/></dir><file name="Logger.php" hash="b9f8e73ccd6e5098f71b1c6407160787"/><dir name="Model"><dir name="Api"><file name="Request.php" hash="b61017066275ec132bf94e1997896bde"/></dir><dir name="Config"><file name="Abstract.php" hash="3dc2509e1ed5efa45d24e402dcb4e285"/><file name="Env.php" hash="6d541047b5f1366271d4ac92d4cd65b5"/><file name="Kickstart.php" hash="0c876e326ff864aea25e036cf5a5f89a"/></dir><file name="Config.php" hash="5c041889edbc7a9614ea65f9d62ef253"/><dir name="Coupon"><file name="Generator.php" hash="39700bbd52697c3e12a3953d9007282a"/></dir><dir name="Observer"><file name="Abstract.php" hash="25d275ebb7a0802aff0fee93a2d49169"/><file name="Module.php" hash="4abd870492ed134a8694cb57d2109b4c"/><dir name="Order"><file name="Status.php" hash="1163f04661d1454468040f49eb56b866"/></dir><file name="Output.php" hash="a78bddc85b58ab83684ee0cd4317ac63"/></dir><dir name="Purchase"><file name="Reminder.php" hash="c03f3b15c7a67528059d6803083c8785"/></dir><file name="Shop.php" hash="b23d54688fc733ea672d427072a675af"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="53385393e0e6c6320878f06929424581"/><file name="Module.php" hash="1e72a92489834742460f9f97cc5f82aa"/></dir><dir name="Source"><file name="Active.php" hash="c60478c02a6c1a8bc54bd4682d694843"/><file name="Locale.php" hash="82166a4cd5e7ff8216fab86b27790e75"/><dir name="Order"><dir name="Status"><file name="Abstract.php" hash="cf141cb1baae94f3214af72196418773"/><file name="Reminder.php" hash="9a48a5d055ad5bff4d0bd2b9d0346b74"/><file name="Reminders.php" hash="7b3fc04193f846838a58d0148d9def23"/></dir></dir><file name="Pricerule.php" hash="5204f6c341f8adc8a6b8c77888e40396"/><dir name="Productattr"><file name="Brand.php" hash="733674ca7d663e0529021eca794dfc73"/></dir><file name="Reminderperiod.php" hash="1c6a9df19b5507ab2d706af46c96f4d5"/></dir></dir></dir><dir name="Tracker"><file name="Action.php" hash="94a353059f272207491baa05dd7686f5"/><file name="Installation.php" hash="15a0823b0fd346fba58a313c711c4103"/></dir></dir><dir name="controllers"><dir name="Purchases"><file name="RemindersController.php" hash="29856cfcba2ce85e53b7200f5559df72"/></dir></dir><dir name="data"><dir name="lipscore_ratingsreviews_setup"><file name="data-install-1.2.21.0.php" hash="0ebbbd1f815ef325cee95311bc4023f8"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c3a5ed358f97a2119bcaf3a6c1d6c026"/><file name="config.xml" hash="6c9546a4e5aa30c335a88b7717d65c17"/><dir name="environments"><file name="production.xml" hash="a519f9130a42c2bc04a30c23eeb3adaf"/></dir><file name="system.xml" hash="a7d00a934cac470df9ecde584c571590"/></dir><file name=".DS_Store" hash="e49cca224ac24efb7898b1adf5d52aaf"/></dir><file name=".DS_Store" hash="0ba266ea7ba3c57eb5b27fc3d4081bcf"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="lipscore"><file name="init.phtml" hash="3dc4a441dd63fb4ea103c737a7ef38b5"/><dir name="rating"><file name="view.phtml" hash="91139825141bf5ce3f7c5d13d72c13dc"/></dir><dir name="reviews"><file name="tab_title.phtml" hash="716d399499e80fa1cb61dd83295be1f7"/><file name="view.phtml" hash="37b2a4de52536e0632bad412a80a21fc"/><file name="view_single.phtml" hash="3675bcf396c750b63e01dd56b576a676"/></dir></dir></dir><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="0d0206c25bb29cd573984f893154fa7b"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="3e6353dfc81756e37494941ef6eb8bee"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lipscore_RatingsReviews.xml" hash="9422ff014d7fcbd68274ffd97182de1d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="lipscore.css" hash="550a3270e8fd600f032b4e3f39cfe431"/></dir><dir name="js"><file name="lipscore.js" hash="0ac6084e3d815ef75855fe2c2ebcae06"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><file name="lipscore.css" hash="334ed799b7c5dcdf6752cbbd0baf45c7"/><dir name="js"><file name="lipscore.js" hash="2e02504dc2065d9915b4717908d28f69"/></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|