lipscore - Version 1.2.30

Version Notes

Use parent product information in email reminders for grouped products.
Fix "Reviews(N)" link to open Reviews tab.

Download this release

Release Info

Developer Henning Frettem
Extension lipscore
Version 1.2.30
Comparing to
See all releases


Code changes from version 1.2.29 to 1.2.30

app/code/community/Lipscore/RatingsReviews/Block/Purchase/Abstract.php CHANGED
@@ -27,4 +27,16 @@ abstract class Lipscore_RatingsReviews_Block_Purchase_Abstract extends Mage_Core
27
  $this->setCouponDescription($couponHelper->getCouponDescription());
28
  }
29
  }
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
27
  $this->setCouponDescription($couponHelper->getCouponDescription());
28
  }
29
  }
30
+
31
+ protected function _getProductFromOrderItem($item)
32
+ {
33
+ $superProductConfig = $item->getBuyRequest()->getSuperProductConfig();
34
+ if (!empty($superProductConfig['product_id'])) {
35
+ $productId = $superProductConfig['product_id'];
36
+ } else {
37
+ $productId = $item->getProductId();
38
+ }
39
+
40
+ return Mage::getModel('catalog/product')->load($productId);
41
+ }
42
  }
app/code/community/Lipscore/RatingsReviews/Block/Purchase/Multishipping.php CHANGED
@@ -29,8 +29,8 @@ class Lipscore_RatingsReviews_Block_Purchase_Multishipping extends Lipscore_Rati
29
  foreach ($this->_orders as $order) {
30
  $orderItems = $order->getAllVisibleItems();
31
  foreach ($orderItems as $item) {
32
- $product = Mage::getModel('catalog/product')->load($item->getProductId());
33
- $productsData[$product->getid()] = $productHelper->getProductData($product);
34
  }
35
  }
36
 
29
  foreach ($this->_orders as $order) {
30
  $orderItems = $order->getAllVisibleItems();
31
  foreach ($orderItems as $item) {
32
+ $product = $this->_getProductFromOrderItem($item);
33
+ $productsData[$product->getId()] = $productHelper->getProductData($product);
34
  }
35
  }
36
 
app/code/community/Lipscore/RatingsReviews/Block/Purchase/Onepage.php CHANGED
@@ -27,8 +27,8 @@ class Lipscore_RatingsReviews_Block_Purchase_Onepage extends Lipscore_RatingsRev
27
 
28
  $orderItems = $this->_order->getAllVisibleItems();
29
  foreach ($orderItems as $item) {
30
- $product = Mage::getModel('catalog/product')->load($item->getProductId());
31
- $productsData[] = $productHelper->getProductData($product);
32
  }
33
  }
34
 
27
 
28
  $orderItems = $this->_order->getAllVisibleItems();
29
  foreach ($orderItems as $item) {
30
+ $product = $this->_getProductFromOrderItem($item);
31
+ $productsData[$product->getId()] = $productHelper->getProductData($product);
32
  }
33
  }
34
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>lipscore</name>
4
- <version>1.2.29</version>
5
  <stability>stable</stability>
6
  <license uri="https://lipscore.com/signup">Terms of use</license>
7
  <channel>community</channel>
@@ -11,11 +11,12 @@
11
  Lipscore has a range of great features that will&#xD;
12
  take all the hassle out of collecting product reviews, and help convert more&#xD;
13
  visitors in to profitable customers.</description>
14
- <notes>Add SKU to Google Rich Snippets</notes>
 
15
  <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>
16
- <date>2015-10-06</date>
17
- <time>11:59:32</time>
18
- <contents><target name="magecommunity"><dir name="Lipscore"><dir name="RatingsReviews"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="Reviews.php" hash="9d0e36ef48ac515da4fad5dd97df74cd"/><file name="View.php" hash="c88cf05f967d7bdebe16ad4c8cb1864f"/></dir></dir><file name="Init.php" hash="54aa73f8964025643d200ef83d79a21f"/><dir name="Purchase"><file name="Abstract.php" hash="aaaabff2ee4366393c66b3a4469f8957"/><file name="Multishipping.php" hash="5b32395d9054b0a242a59e4f9f38988e"/><file name="Onepage.php" hash="ff7faab280d62e4bb906ebdd45521d65"/></dir><dir name="Review"><file name="Helper.php" hash="50a4fd5d83fd455d32172fab053d8a2d"/><file name="Single.php" hash="5e4427a024a983838670b580c7fbb05e"/><file name="Tabtitle.php" hash="28cdbcff696c2dc718f7cdbc8413c55d"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Coupons.php" hash="359eeb7d3913a2b52e7a704afd978464"/><dir name="Field"><file name="Abstract.php" hash="0e8b5385e58dfe4f1f92ddf6063b6376"/><file name="Apikey.php" hash="4012af99141381375a0a4d294bc60f88"/><file name="Reminderperiod.php" hash="5f094e164d7dd7f6c624feb3b3bfd5e6"/></dir><dir name="Fieldset"><file name="Coupons.php" hash="08b73ed814a47b46c05cf14889bb4ead"/><file name="Dashboardlink.php" hash="910a177378d3a5815b56349b2ddcc9bf"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Abstract.php" hash="65d8d9da169b1b1c4477d7d83c985c84"/><file name="Config.php" hash="10a7f292094fa16515975769bf675d13"/><file name="Coupon.php" hash="748ea1f72a63f22efdd9bffc4db27ce3"/><file name="Data.php" hash="6ae3c816d5d899f6f8050c213860ecf0"/><file name="Locale.php" hash="3aa000a761124ab9235841d2b1943559"/><file name="Module.php" hash="ab2f87306a2a1456eb9835adecdd19d3"/><file name="Price.php" hash="d0fbe38be18842bdc19eb2c3592de15c"/><file name="Product.php" hash="22111ff46bfedbc866193a2f0e96f75c"/><file name="Purchase.php" hash="53a792b1ca9b792c7da78029a8902d2b"/><file name="Reminder.php" hash="f9af0ed55ee5a1d72911d1328331f8fd"/><file name="Widget.php" hash="66e394bcde7dced0ec5053b4f1021077"/></dir><file name="Logger.php" hash="b9d3b2df0bb8c2a8191763202ad272f8"/><dir name="Model"><dir name="Api"><file name="Request.php" hash="43f5f3dbd1263c51c994d4373f9e243c"/></dir><dir name="Config"><file name="Env.php" hash="06610d75a570d1f6dbb75969ca11be82"/></dir><file name="Config.php" hash="9596f8e2305edfc346754dae7a5c8bdd"/><dir name="Coupon"><file name="Generator.php" hash="d3164b63b6535e712888ce0c25900e12"/></dir><file name="Observer.php" hash="6ea873c379e3804b79323114106eda03"/><dir name="Purchase"><file name="Reminder.php" hash="8f3bbd220f479660ef4b27f418b21488"/></dir><file name="Shop.php" hash="6495d5d2f6d1ef5203c33726ab860957"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="9e454095ab56736cf96b4379bb6eea10"/></dir><dir name="Source"><file name="Locale.php" hash="4572c51cc4d532eb18b9d28364808577"/><dir name="Order"><file name="Status.php" hash="1a5107f688509b981dcdb40c44784f6b"/></dir><file name="Pricerule.php" hash="b100a5b624e5188691fa3f7c0dbed275"/><dir name="Productattr"><file name="Brand.php" hash="0bcb5b3ce8f0fefca0d52108e3b9807c"/></dir><file name="Reminderperiod.php" hash="674ad0760ba520655f1f4cabb4340b55"/></dir></dir></dir><dir name="Tracker"><file name="Action.php" hash="451371812bc5eae57fb26afa16bf3388"/><file name="Installation.php" hash="7965dbb24c8b5dd0b6f03e0da67e5adc"/></dir></dir><dir name="controllers"><dir name="Purchases"><file name="RemindersController.php" hash="1ec905ce1e9d29a7768f2bfe26f691fd"/></dir></dir><dir name="data"><dir name="lipscore_ratingsreviews_setup"><file name="data-install-1.2.21.0.php" hash="ad67c2ab5cb793f70207af6385e8d941"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5edee417a954579c97186a8ebfdf3fbc"/><file name="config.xml" hash="bbfa56085e97d71332246271a1464ace"/><dir name="environments"><file name="production.xml" hash="bb3749dea14df3f07007dc9c24658eff"/></dir><file name="system.xml" hash="1f8633630f2debd893ddd5443d2f6233"/></dir></dir></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="96771386ea23ee3a3e481da91a468523"/><dir name="purchase"><file name="view.phtml" hash="d2696e1f07c2af1281d5f39e6b2f39f8"/></dir><dir name="rating"><file name="view.phtml" hash="476099a146e94100cbcfc36d04ac08ad"/></dir><dir name="reviews"><file name="tab_title.phtml" hash="cee27e2ae8b71c9705097584e9c0c3cc"/><file name="view.phtml" hash="a32cb7f7879fee174bcc7fc44ee5f5e3"/><file name="view_single.phtml" hash="6fa4aaa62effaf9787e212635991ccec"/></dir></dir></dir><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="8a43ee47821cf9844cd15806a362fdf9"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="73e5f3cd2b25005bb0456f28c4a40c51"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lipscore_RatingsReviews.xml" hash="a5bea23f8ccc23ae46ee206b4b827939"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="lipscore.css" hash="a3ad20761826da37979651687880c93f"/></dir><dir name="js"><file name="lipscore.js" hash="2dd5abd312663be5950382b6bad08a80"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><file name="lipscore.css" hash="96f1694b0769b92e32142209f389e069"/><dir name="js"><file name="lipscore.js" hash="ac705dc56c03c08adadbbac86f1f10c3"/></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>lipscore</name>
4
+ <version>1.2.30</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&#xD;
12
  take all the hassle out of collecting product reviews, and help convert more&#xD;
13
  visitors in to profitable customers.</description>
14
+ <notes>Use parent product information in email reminders for grouped products.&#xD;
15
+ Fix "Reviews(N)" link to open Reviews tab.</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>2015-11-05</date>
18
+ <time>15:12:27</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="9d0e36ef48ac515da4fad5dd97df74cd"/><file name="View.php" hash="c88cf05f967d7bdebe16ad4c8cb1864f"/></dir></dir><file name="Init.php" hash="54aa73f8964025643d200ef83d79a21f"/><dir name="Purchase"><file name="Abstract.php" hash="e7480d1189517ac867ea3e07b022c706"/><file name="Multishipping.php" hash="66388ed042b784a02d7bbdcac4cfcde2"/><file name="Onepage.php" hash="14bd7f15ba36be0662b53d1b8fe51348"/></dir><dir name="Review"><file name="Helper.php" hash="50a4fd5d83fd455d32172fab053d8a2d"/><file name="Single.php" hash="5e4427a024a983838670b580c7fbb05e"/><file name="Tabtitle.php" hash="28cdbcff696c2dc718f7cdbc8413c55d"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Coupons.php" hash="359eeb7d3913a2b52e7a704afd978464"/><dir name="Field"><file name="Abstract.php" hash="0e8b5385e58dfe4f1f92ddf6063b6376"/><file name="Apikey.php" hash="4012af99141381375a0a4d294bc60f88"/><file name="Reminderperiod.php" hash="5f094e164d7dd7f6c624feb3b3bfd5e6"/></dir><dir name="Fieldset"><file name="Coupons.php" hash="08b73ed814a47b46c05cf14889bb4ead"/><file name="Dashboardlink.php" hash="910a177378d3a5815b56349b2ddcc9bf"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Abstract.php" hash="65d8d9da169b1b1c4477d7d83c985c84"/><file name="Config.php" hash="10a7f292094fa16515975769bf675d13"/><file name="Coupon.php" hash="748ea1f72a63f22efdd9bffc4db27ce3"/><file name="Data.php" hash="6ae3c816d5d899f6f8050c213860ecf0"/><file name="Locale.php" hash="3aa000a761124ab9235841d2b1943559"/><file name="Module.php" hash="ab2f87306a2a1456eb9835adecdd19d3"/><file name="Price.php" hash="d0fbe38be18842bdc19eb2c3592de15c"/><file name="Product.php" hash="22111ff46bfedbc866193a2f0e96f75c"/><file name="Purchase.php" hash="53a792b1ca9b792c7da78029a8902d2b"/><file name="Reminder.php" hash="f9af0ed55ee5a1d72911d1328331f8fd"/><file name="Widget.php" hash="66e394bcde7dced0ec5053b4f1021077"/></dir><file name="Logger.php" hash="b9d3b2df0bb8c2a8191763202ad272f8"/><dir name="Model"><dir name="Api"><file name="Request.php" hash="43f5f3dbd1263c51c994d4373f9e243c"/></dir><dir name="Config"><file name="Env.php" hash="06610d75a570d1f6dbb75969ca11be82"/></dir><file name="Config.php" hash="9596f8e2305edfc346754dae7a5c8bdd"/><dir name="Coupon"><file name="Generator.php" hash="d3164b63b6535e712888ce0c25900e12"/></dir><file name="Observer.php" hash="6ea873c379e3804b79323114106eda03"/><dir name="Purchase"><file name="Reminder.php" hash="8f3bbd220f479660ef4b27f418b21488"/></dir><file name="Shop.php" hash="6495d5d2f6d1ef5203c33726ab860957"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="9e454095ab56736cf96b4379bb6eea10"/></dir><dir name="Source"><file name="Locale.php" hash="4572c51cc4d532eb18b9d28364808577"/><dir name="Order"><file name="Status.php" hash="1a5107f688509b981dcdb40c44784f6b"/></dir><file name="Pricerule.php" hash="b100a5b624e5188691fa3f7c0dbed275"/><dir name="Productattr"><file name="Brand.php" hash="0bcb5b3ce8f0fefca0d52108e3b9807c"/></dir><file name="Reminderperiod.php" hash="674ad0760ba520655f1f4cabb4340b55"/></dir></dir></dir><dir name="Tracker"><file name="Action.php" hash="451371812bc5eae57fb26afa16bf3388"/><file name="Installation.php" hash="7965dbb24c8b5dd0b6f03e0da67e5adc"/></dir></dir><dir name="controllers"><dir name="Purchases"><file name="RemindersController.php" hash="1ec905ce1e9d29a7768f2bfe26f691fd"/></dir></dir><dir name="data"><dir name="lipscore_ratingsreviews_setup"><file name="data-install-1.2.21.0.php" hash="ad67c2ab5cb793f70207af6385e8d941"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5edee417a954579c97186a8ebfdf3fbc"/><file name="config.xml" hash="bbfa56085e97d71332246271a1464ace"/><dir name="environments"><file name="production.xml" hash="bb3749dea14df3f07007dc9c24658eff"/></dir><file name="system.xml" hash="1f8633630f2debd893ddd5443d2f6233"/></dir></dir></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="96771386ea23ee3a3e481da91a468523"/><dir name="purchase"><file name="view.phtml" hash="d2696e1f07c2af1281d5f39e6b2f39f8"/></dir><dir name="rating"><file name="view.phtml" hash="476099a146e94100cbcfc36d04ac08ad"/></dir><dir name="reviews"><file name="tab_title.phtml" hash="cee27e2ae8b71c9705097584e9c0c3cc"/><file name="view.phtml" hash="a32cb7f7879fee174bcc7fc44ee5f5e3"/><file name="view_single.phtml" hash="6fa4aaa62effaf9787e212635991ccec"/></dir></dir></dir><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="8a43ee47821cf9844cd15806a362fdf9"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lipscore_ratingsreviews.xml" hash="73e5f3cd2b25005bb0456f28c4a40c51"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lipscore_RatingsReviews.xml" hash="a5bea23f8ccc23ae46ee206b4b827939"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="lipscore.css" hash="a3ad20761826da37979651687880c93f"/></dir><dir name="js"><file name="lipscore.js" hash="796b26a7c1eee0256189c816cfb56306"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><file name="lipscore.css" hash="96f1694b0769b92e32142209f389e069"/><dir name="js"><file name="lipscore.js" hash="ac705dc56c03c08adadbbac86f1f10c3"/></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>
skin/frontend/base/default/js/lipscore.js CHANGED
@@ -1,18 +1,24 @@
1
- document.observe("dom:loaded", function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  if (typeof lipscore !== 'undefined') {
3
- tabSelector = '.lipscore-reviews-tab';
4
- if ($$(tabSelector).length > 0) {
5
- // show review count
6
- lipscore.on('review-count-set', function(data) {
7
- if (data.value > 0) {
8
- $$('.lipscore-reviews-tab-count').invoke('show');
9
- }
10
- });
11
-
12
- // open reviews tab if reviews link clicked
13
- lipscore.on('review-count-link-clicked', function(data) {
14
- $$(tabSelector)[0].up().click();
15
- });
16
- }
17
- }
18
  });
1
+ function magentoLipscoreInit() {
2
+ tabSelector = '.lipscore-reviews-tab';
3
+ if ($$(tabSelector).length > 0) {
4
+ // show review count
5
+ lipscore.on('review-count-set', function(data) {
6
+ if (data.value > 0) {
7
+ $$('.lipscore-reviews-tab-count').invoke('show');
8
+ }
9
+ });
10
+
11
+ // open reviews tab if reviews link clicked
12
+ lipscore.on('review-count-link-clicked', function(data) {
13
+ $$(tabSelector)[0].up().click();
14
+ });
15
+ }
16
+ }
17
+
18
+ document.observe('dom:loaded', function() {
19
  if (typeof lipscore !== 'undefined') {
20
+ magentoLipscoreInit();
21
+ } else {
22
+ document.observe('lipscore-created', magentoLipscoreInit);
23
+ }
 
 
 
 
 
 
 
 
 
 
 
24
  });