Bubbleyes_BubblitPlugin - Version 2.0.1

Version Notes

Support for multiple stores integration.

Download this release

Release Info

Developer Terje Lindstad
Extension Bubbleyes_BubblitPlugin
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/community/Bubbleyes/BubblitPlugin/Model/Observer.php CHANGED
@@ -39,7 +39,8 @@ class Bubbleyes_BubblitPlugin_Model_Observer
39
  {
40
  try{
41
  $code = Mage::getSingleton('adminhtml/config_data')->getStore();
42
- $storeId = Mage::getModel('core/store')->load($code)->getId();
 
43
 
44
  if($storeId != 0)
45
  {
@@ -64,7 +65,7 @@ class Bubbleyes_BubblitPlugin_Model_Observer
64
  if($itt == $this->_helper->getProductPortionSize())
65
  {
66
  try {
67
- $this->_helper->CallAPI('importProducts', array('ProductsXML' => self::BuildProductsXML($productsPortion), 'Timestamp' => $timestamp), $storeId);
68
  }
69
  catch (Exception $exPortion) {
70
  $this->_helper->LoggerForException($exPortion);
@@ -74,7 +75,7 @@ class Bubbleyes_BubblitPlugin_Model_Observer
74
  }
75
  }
76
 
77
- $this->_helper->CallAPI('importProducts', array('ProductsXML' => self::BuildProductsXML($productsPortion), 'Timestamp' => $timestamp, 'IsLastPortion' => true), $storeId);
78
  }
79
  }
80
  catch (Exception $ex) {
@@ -224,7 +225,7 @@ class Bubbleyes_BubblitPlugin_Model_Observer
224
  }
225
  }
226
 
227
- public static function BuildProductsXML($products) {
228
  $productsXML = new SimpleXMLElement('<products/>');
229
 
230
  foreach ($products as $product)
39
  {
40
  try{
41
  $code = Mage::getSingleton('adminhtml/config_data')->getStore();
42
+ $store = Mage::getModel('core/store')->load($code);
43
+ $storeId = $store->getId();
44
 
45
  if($storeId != 0)
46
  {
65
  if($itt == $this->_helper->getProductPortionSize())
66
  {
67
  try {
68
+ $this->_helper->CallAPI('importProducts', array('ProductsXML' => self::BuildProductsXML($productsPortion, $store), 'Timestamp' => $timestamp), $storeId);
69
  }
70
  catch (Exception $exPortion) {
71
  $this->_helper->LoggerForException($exPortion);
75
  }
76
  }
77
 
78
+ $this->_helper->CallAPI('importProducts', array('ProductsXML' => self::BuildProductsXML($productsPortion, $store), 'Timestamp' => $timestamp, 'IsLastPortion' => true), $storeId);
79
  }
80
  }
81
  catch (Exception $ex) {
225
  }
226
  }
227
 
228
+ public static function BuildProductsXML($products, $store) {
229
  $productsXML = new SimpleXMLElement('<products/>');
230
 
231
  foreach ($products as $product)
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bubbleyes_BubblitPlugin</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/bsd-license.php">BSDL</license>
7
  <channel>community</channel>
@@ -11,9 +11,9 @@ in a unique and dynamic way: Bubbl!</summary>
11
  <description>It's simple. End-consumers from all over the world surf the Internet, finding products which interest them- but the prices are slightly higher than they are willing to pay. With a simple click, these products are stored in a single convenient collection.</description>
12
  <notes>Support for multiple stores integration.</notes>
13
  <authors><author><name>Terje Lindstad</name><user>tlindstad</user><email>terjelindstad@bubbleyes.com</email></author></authors>
14
- <date>2015-04-16</date>
15
- <time>13:33:23</time>
16
- <contents><target name="magecommunity"><dir><dir name="Bubbleyes"><dir name="BubblitPlugin"><dir name="Block"><file name="Button.php" hash="39db783537390fbc03c76602977c6008"/></dir><dir name="Helper"><file name="Data.php" hash="d3fa85918ee8d1c6073860ebea4b0af8"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Bubbllayout.php" hash="ea03544f51545df9803dc3fb0d69ce30"/><dir name="Helpinfo"><file name="Comment.php" hash="f522eebef8df7b53015d5033174afa01"/></dir></dir></dir><file name="Observer.php" hash="34e39693889445de5746ce8b4c04f7c4"/></dir><dir name="etc"><file name="config.xml" hash="89c5875e9f31e937796c294d778f6ffa"/><file name="system.xml" hash="02a77a78253deaaa1d39a535a7340cf7"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Bubbleyes_BubblitPlugin.xml" hash="0691ad097f8ca937d80ad4936607fea5"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Bubbleyes_BubblitPlugin.xml" hash="2b172171473b55f2c4596f1eacee7e63"/></dir><dir name="template"><dir name="BubblitPlugin"><file name="button.phtml" hash="18199c13f81a042985363824986156c0"/></dir></dir></dir></dir><dir name="Bubbleyes"><dir name="default"><dir name="etc"><file name="theme.xml" hash="5c4fce4eb634014e556a22cec2a76d20"/></dir><dir name="layout"><file name="local.xml" hash="01c78642851f6e17d1057882f893d3c1"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><file name="sharing.phtml" hash="c27124947cf5c5aec2582f50d422716e"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>4.5.0</min><max>10.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bubbleyes_BubblitPlugin</name>
4
+ <version>2.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/bsd-license.php">BSDL</license>
7
  <channel>community</channel>
11
  <description>It's simple. End-consumers from all over the world surf the Internet, finding products which interest them- but the prices are slightly higher than they are willing to pay. With a simple click, these products are stored in a single convenient collection.</description>
12
  <notes>Support for multiple stores integration.</notes>
13
  <authors><author><name>Terje Lindstad</name><user>tlindstad</user><email>terjelindstad@bubbleyes.com</email></author></authors>
14
+ <date>2015-04-20</date>
15
+ <time>22:37:02</time>
16
+ <contents><target name="magecommunity"><dir><dir name="Bubbleyes"><dir name="BubblitPlugin"><dir name="Block"><file name="Button.php" hash="39db783537390fbc03c76602977c6008"/></dir><dir name="Helper"><file name="Data.php" hash="d3fa85918ee8d1c6073860ebea4b0af8"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Bubbllayout.php" hash="ea03544f51545df9803dc3fb0d69ce30"/><dir name="Helpinfo"><file name="Comment.php" hash="f522eebef8df7b53015d5033174afa01"/></dir></dir></dir><file name="Observer.php" hash="c38a3368d2c3a9a19b7e1d00fd724e64"/></dir><dir name="etc"><file name="config.xml" hash="89c5875e9f31e937796c294d778f6ffa"/><file name="system.xml" hash="02a77a78253deaaa1d39a535a7340cf7"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Bubbleyes_BubblitPlugin.xml" hash="0691ad097f8ca937d80ad4936607fea5"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Bubbleyes_BubblitPlugin.xml" hash="2b172171473b55f2c4596f1eacee7e63"/></dir><dir name="template"><dir name="BubblitPlugin"><file name="button.phtml" hash="18199c13f81a042985363824986156c0"/></dir></dir></dir></dir><dir name="Bubbleyes"><dir name="default"><dir name="etc"><file name="theme.xml" hash="5c4fce4eb634014e556a22cec2a76d20"/></dir><dir name="layout"><file name="local.xml" hash="01c78642851f6e17d1057882f893d3c1"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><file name="sharing.phtml" hash="c27124947cf5c5aec2582f50d422716e"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>4.5.0</min><max>10.0.0</max></php></required></dependencies>
19
  </package>