stockinthechannel2012 - Version 2.0.9

Version Notes

Version 2.0.9:
* Fix Category specific filters for cron-scheduled imports

Download this release

Release Info

Developer stockinchannel
Extension stockinthechannel2012
Version 2.0.9
Comparing to
See all releases


Code changes from version 2.0.8 to 2.0.9

app/code/local/Bintime/Sinchimport/Model/Resource/Mysql4/Layer/Filter/Feature.php CHANGED
@@ -3,11 +3,11 @@
3
  class Bintime_Sinchimport_Model_Resource_Mysql4_Layer_Filter_Feature extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected $resultTable = 'SinchFilterResult';
6
-
7
  protected static $lastResultTable = false;
8
 
9
  protected $filterAplied = false;
10
-
11
  /**
12
  * Initialize connection and define main table name
13
  *
@@ -25,7 +25,6 @@ class Bintime_Sinchimport_Model_Resource_Mysql4_Layer_Filter_Feature extends Mag
25
  $id = (int)$id;
26
  return $tablePrefix . $this->resultTable . "_$id";
27
  break;
28
-
29
  case 'search':
30
  return $tablePrefix . $this->searchTable;
31
  break;
@@ -319,7 +318,7 @@ class Bintime_Sinchimport_Model_Resource_Mysql4_Layer_Filter_Feature extends Mag
319
  //
320
 
321
  //Создание таблиц с фичами используемыми в навигации.
322
- $i = 0; $storeId = Mage::app()->getStore()->getId(); $websiteId = Mage::app()->getWebsite()->getId();
323
  foreach ($featureIds as $featureId) {
324
  $tFeature = $resource->getTableName("stINch_products_feature_$featureId");
325
  $query = "DROP TABLE IF EXISTS $tFeature";
3
  class Bintime_Sinchimport_Model_Resource_Mysql4_Layer_Filter_Feature extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected $resultTable = 'SinchFilterResult';
6
+
7
  protected static $lastResultTable = false;
8
 
9
  protected $filterAplied = false;
10
+
11
  /**
12
  * Initialize connection and define main table name
13
  *
25
  $id = (int)$id;
26
  return $tablePrefix . $this->resultTable . "_$id";
27
  break;
 
28
  case 'search':
29
  return $tablePrefix . $this->searchTable;
30
  break;
318
  //
319
 
320
  //Создание таблиц с фичами используемыми в навигации.
321
+ $i = 0; $storeId = Mage::app()->getStore()->getId(); $websiteId = Mage::app()->getStore(true)->getWebsite()->getId();
322
  foreach ($featureIds as $featureId) {
323
  $tFeature = $resource->getTableName("stINch_products_feature_$featureId");
324
  $query = "DROP TABLE IF EXISTS $tFeature";
app/code/local/Bintime/Sinchimport/etc/config.xml CHANGED
@@ -251,7 +251,7 @@
251
  <crontab>
252
  <jobs>
253
  <fullsinchimport>
254
- <schedule><cron_expr>0 22 * * 6</cron_expr></schedule>
255
  <run><model>sinchimport/sinch::cron_start_full_import</model></run>
256
 
257
  </fullsinchimport>
251
  <crontab>
252
  <jobs>
253
  <fullsinchimport>
254
+ <schedule><cron_expr>25 16 * * *</cron_expr></schedule>
255
  <run><model>sinchimport/sinch::cron_start_full_import</model></run>
256
 
257
  </fullsinchimport>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>stockinthechannel2012</name>
4
- <version>2.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3</license>
7
  <channel>community</channel>
@@ -9,12 +9,12 @@
9
  <summary>Import Plugin for the Stock in the Channel Magento Data Feed</summary>
10
  <description>Import Plugin for the Stock in the Channel Magento Data Feed.&#xD;
11
  Requires a Magento Formatted Data feed from http://stockinthechannel.com</description>
12
- <notes>Version 2.0.8:&#xD;
13
- * Add Demo site to server list</notes>
14
  <authors><author><name>stockinchannel</name><user>stockinchannel</user><email>marketing@stockinthechannel.com</email></author><author><name>Nick Anstee</name><user>nicka101</user><email>nick@stockinthechannel.com</email></author></authors>
15
- <date>2015-01-16</date>
16
- <time>15:29:49</time>
17
- <contents><target name="magelocal"><dir name="Bintime"><dir name="Sinchimport"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Sinchdistributors.php" hash="20c2452bfbf7206c72b2402e4eaa1541"/></dir></dir></dir><file name="Importenvironment.php" hash="85ac7cf582ad798fc31d85855319d6e1"/><file name="Importhistory.php" hash="9f1bda290333c3015b54ef3802857a3f"/><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="239d86cde4cf08f5f50183df26e89eea"/></dir><file name="View.php" hash="60e6aeb7f07e6be9e6202395bf76dfad"/></dir><file name="List.php" hash="db883cb9fb90fc16e4e9cb5db2050937"/><dir name="Product"><dir name="View"><file name="Media.php" hash="f82030a12d1d41dfc75647a56b691dcb"/></dir></dir><file name="Startimportbutton.php" hash="b7564c48d52fc777abe1c5e87f63ad02"/><file name="Startstockpriceimportbutton.php" hash="f295d3d570114d0eb71238fb9c51dfa4"/></dir><dir name="Helper"><file name="Data.php" hash="6ba3ed5d098de4d1d90f5ce49bffbed2"/><file name="Getdata.php" hash="b966ec1c48a70956c980627af49d2078"/><file name="Image.php" hash="4507e0741e1bf094ce558ffb908dbae8"/></dir><dir name="Model"><file name="Api.php" hash="9c563069c93b6010597114a32304e44d"/><file name="Category.php" hash="24023d361652a68627a28a20b9229684"/><file name="Image.php" hash="b87da6ed365c3265495afdc2f3b04eb2"/><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="4ab6866b88f6aa5e59a99808b38dc85b"/><file name="Price.php" hash="93a6b62fec1e11bf6af57dd0cb2f063a"/></dir></dir><file name="Layer.php" hash="2c0131265f18450126d7a0988d6ed284"/><file name="Product.php" hash="de3db0ad9ab43ec060f906a66e7ac2ee"/><dir name="Resource"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="8d60e0cf4d143dd98f72353ff7f5c0b2"/></dir></dir><dir name="Mysql4"><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="ea9c35e365239bdcc362ff98369cbd87"/></dir></dir><file name="Setup.php" hash="a46e28853cc29d7ba38a168342f60b59"/></dir></dir><file name="Sinch.php" hash="2e7f6cbed7e7fee4283b0487d82e15a6"/><dir name="System"><dir name="Config"><file name="CatRewrite.php" hash="9e23b203bd4af59065776696794f105a"/><file name="ProdRewrite.php" hash="a93e7bfa552cb18886c06c7404d41e8a"/><file name="ServerList.php" hash="0ec52dc392e19e67a5da1eb7430aecef"/><file name="Subscription.php" hash="2909e8dfe199e768fe763561cca68ac5"/></dir></dir><file name="config.php" hash="239f67e965eb9dbe0ada9af8f2112f13"/></dir><dir name="controllers"><file name="AjaxController.php" hash="388673c76cae1930317331ba66bf34b7"/><file name="IndexController.php" hash="54610343286f65e5ab6c640101194502"/><file name="ProductController.php" hash="f1a19d5b9516fe1896a74adafb005953"/><file name="SplitfeaturesController.php" hash="201702c1b94fdea2bb8f8f09ad96508e"/></dir><dir name="etc"><file name="api.xml" hash="4b9df3ba0ff94824f06a5c14497034cb"/><file name="config.xml" hash="d1aef99f24977f702b6f3f5aaaf1f373"/><file name="system.xml" hash="b725941c89c9695ac9ff6e15e30ffb8e"/></dir><file name="sinch_import_start_ajax.php" hash="3f34acad1b0618d5350d28fd1acf506d"/><dir name="sql"><dir name="sinchimport_setup"><file name="filter_sinch_products_s.sql" hash="a66330a1c2717091c1752ddd89f63960"/><file name="mysql4-install-0.1.0.php" hash="5925ffb8574cb35032b9d2866f4da7be"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="93a43b01c4ad6eb9c9638dc1d31ca777"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="710c4d2873fcbe3061b925072d995d73"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="d2892bb825c7baf2139c136fd96f2f66"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="ab6aa72ff697db247423911437830795"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="f195a8bf9fbcc31eca6d066ff1bb98f5"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="f4ee53d9644c16c80327b40fec432d1d"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="987ed4ca76a263580705ec93e0277120"/><file name="mysql4-upgrade-0.1.7-0.1.8.php" hash="e52bb4ef6f982992fcbfcce710698525"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="de6b560cef7edf7914cc4f135b0678b9"/><file name="mysql4-upgrade-0.1.9-0.2.0.php" hash="33618a810c8b88d28fc1b504eb65c657"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="507b285ba1f3eb98d9fb54a3ae29257c"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="55732b89b294191eaecbe3a5e1c7691e"/><file name="mysql4-upgrade-3.0.0-3.0.1.php" hash="3a7b53cbc0585e04afed64b321771a8a"/><file name="mysql4-upgrade-3.0.1-3.0.2.php" hash="12853ce85af460e0d462fbf3297715c0"/><file name="mysql4-upgrade-3.0.2-3.0.3.php" hash="2c0c1a12c567ecacad6647eeffa4f198"/><file name="mysql4-upgrade-3.0.3-3.0.4.php" hash="9c3612df0a873fa6e59ae9f98c5de2b0"/></dir></dir><file name="stock_price_sinch_import_start_ajax.php" hash="960ba4cfdb5ea3548a17c2365c0fca80"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bintime_Sinchimport.xml" hash="14afd0361958cc31fc57431c4e4c3ba1"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="sinchimport.xml" hash="e60b86828e8d9666724311907451d1ba"/></dir><dir name="template"><dir name="sinchimport"><file name="list.phtml" hash="1312f3b0ded996cb820e9c17a434e716"/><file name="media.phtml" hash="a448fd63753f44c86cc091e4da8b9e99"/><file name="view.phtml" hash="7c21e0b3f31cf3eb7d0e2a6e619f58ef"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sinchimport.xml" hash="86d65ea9bea9c37cfb20f593095995db"/></dir><dir name="template"><dir name="sinchimport"><dir name="sales"><dir name="items"><dir name="column"><file name="name.phtml" hash="7997765254d19e09b30cf1d0090bd4e6"/></dir></dir></dir><file name="sinchdistributors.phtml" hash="d74f3d401b83319c1b42b878afc5ccff"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="sinchimport_run.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="sinchimport_yes.gif" hash="0afb20898a704a106cb4c598868abf32"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>stockinthechannel2012</name>
4
+ <version>2.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3</license>
7
  <channel>community</channel>
9
  <summary>Import Plugin for the Stock in the Channel Magento Data Feed</summary>
10
  <description>Import Plugin for the Stock in the Channel Magento Data Feed.&#xD;
11
  Requires a Magento Formatted Data feed from http://stockinthechannel.com</description>
12
+ <notes>Version 2.0.9:&#xD;
13
+ * Fix Category specific filters for cron-scheduled imports</notes>
14
  <authors><author><name>stockinchannel</name><user>stockinchannel</user><email>marketing@stockinthechannel.com</email></author><author><name>Nick Anstee</name><user>nicka101</user><email>nick@stockinthechannel.com</email></author></authors>
15
+ <date>2015-02-05</date>
16
+ <time>17:23:20</time>
17
+ <contents><target name="magelocal"><dir name="Bintime"><dir name="Sinchimport"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Sinchdistributors.php" hash="20c2452bfbf7206c72b2402e4eaa1541"/></dir></dir></dir><file name="Importenvironment.php" hash="85ac7cf582ad798fc31d85855319d6e1"/><file name="Importhistory.php" hash="9f1bda290333c3015b54ef3802857a3f"/><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="239d86cde4cf08f5f50183df26e89eea"/></dir><file name="View.php" hash="60e6aeb7f07e6be9e6202395bf76dfad"/></dir><file name="List.php" hash="db883cb9fb90fc16e4e9cb5db2050937"/><dir name="Product"><dir name="View"><file name="Media.php" hash="f82030a12d1d41dfc75647a56b691dcb"/></dir></dir><file name="Startimportbutton.php" hash="b7564c48d52fc777abe1c5e87f63ad02"/><file name="Startstockpriceimportbutton.php" hash="f295d3d570114d0eb71238fb9c51dfa4"/></dir><dir name="Helper"><file name="Data.php" hash="6ba3ed5d098de4d1d90f5ce49bffbed2"/><file name="Getdata.php" hash="b966ec1c48a70956c980627af49d2078"/><file name="Image.php" hash="4507e0741e1bf094ce558ffb908dbae8"/></dir><dir name="Model"><file name="Api.php" hash="9c563069c93b6010597114a32304e44d"/><file name="Category.php" hash="24023d361652a68627a28a20b9229684"/><file name="Image.php" hash="b87da6ed365c3265495afdc2f3b04eb2"/><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="4ab6866b88f6aa5e59a99808b38dc85b"/><file name="Price.php" hash="93a6b62fec1e11bf6af57dd0cb2f063a"/></dir></dir><file name="Layer.php" hash="2c0131265f18450126d7a0988d6ed284"/><file name="Product.php" hash="de3db0ad9ab43ec060f906a66e7ac2ee"/><dir name="Resource"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="8d60e0cf4d143dd98f72353ff7f5c0b2"/></dir></dir><dir name="Mysql4"><dir name="Layer"><dir name="Filter"><file name="Feature.php" hash="a267117289a0064b8bd0c17402a93f70"/></dir></dir><file name="Setup.php" hash="a46e28853cc29d7ba38a168342f60b59"/></dir></dir><file name="Sinch.php" hash="2e7f6cbed7e7fee4283b0487d82e15a6"/><dir name="System"><dir name="Config"><file name="CatRewrite.php" hash="9e23b203bd4af59065776696794f105a"/><file name="ProdRewrite.php" hash="a93e7bfa552cb18886c06c7404d41e8a"/><file name="ServerList.php" hash="0ec52dc392e19e67a5da1eb7430aecef"/><file name="Subscription.php" hash="2909e8dfe199e768fe763561cca68ac5"/></dir></dir><file name="config.php" hash="239f67e965eb9dbe0ada9af8f2112f13"/></dir><dir name="controllers"><file name="AjaxController.php" hash="388673c76cae1930317331ba66bf34b7"/><file name="IndexController.php" hash="54610343286f65e5ab6c640101194502"/><file name="ProductController.php" hash="f1a19d5b9516fe1896a74adafb005953"/><file name="SplitfeaturesController.php" hash="201702c1b94fdea2bb8f8f09ad96508e"/></dir><dir name="etc"><file name="api.xml" hash="4b9df3ba0ff94824f06a5c14497034cb"/><file name="config.xml" hash="f11e8d98365670a39686f7786b1a7fd6"/><file name="system.xml" hash="b725941c89c9695ac9ff6e15e30ffb8e"/></dir><file name="sinch_import_start_ajax.php" hash="3f34acad1b0618d5350d28fd1acf506d"/><dir name="sql"><dir name="sinchimport_setup"><file name="filter_sinch_products_s.sql" hash="a66330a1c2717091c1752ddd89f63960"/><file name="mysql4-install-0.1.0.php" hash="5925ffb8574cb35032b9d2866f4da7be"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="93a43b01c4ad6eb9c9638dc1d31ca777"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="710c4d2873fcbe3061b925072d995d73"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="d2892bb825c7baf2139c136fd96f2f66"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="ab6aa72ff697db247423911437830795"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="f195a8bf9fbcc31eca6d066ff1bb98f5"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="f4ee53d9644c16c80327b40fec432d1d"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="987ed4ca76a263580705ec93e0277120"/><file name="mysql4-upgrade-0.1.7-0.1.8.php" hash="e52bb4ef6f982992fcbfcce710698525"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="de6b560cef7edf7914cc4f135b0678b9"/><file name="mysql4-upgrade-0.1.9-0.2.0.php" hash="33618a810c8b88d28fc1b504eb65c657"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="507b285ba1f3eb98d9fb54a3ae29257c"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="55732b89b294191eaecbe3a5e1c7691e"/><file name="mysql4-upgrade-3.0.0-3.0.1.php" hash="3a7b53cbc0585e04afed64b321771a8a"/><file name="mysql4-upgrade-3.0.1-3.0.2.php" hash="12853ce85af460e0d462fbf3297715c0"/><file name="mysql4-upgrade-3.0.2-3.0.3.php" hash="2c0c1a12c567ecacad6647eeffa4f198"/><file name="mysql4-upgrade-3.0.3-3.0.4.php" hash="9c3612df0a873fa6e59ae9f98c5de2b0"/></dir></dir><file name="stock_price_sinch_import_start_ajax.php" hash="960ba4cfdb5ea3548a17c2365c0fca80"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bintime_Sinchimport.xml" hash="14afd0361958cc31fc57431c4e4c3ba1"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="sinchimport.xml" hash="e60b86828e8d9666724311907451d1ba"/></dir><dir name="template"><dir name="sinchimport"><file name="list.phtml" hash="1312f3b0ded996cb820e9c17a434e716"/><file name="media.phtml" hash="a448fd63753f44c86cc091e4da8b9e99"/><file name="view.phtml" hash="7c21e0b3f31cf3eb7d0e2a6e619f58ef"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sinchimport.xml" hash="86d65ea9bea9c37cfb20f593095995db"/></dir><dir name="template"><dir name="sinchimport"><dir name="sales"><dir name="items"><dir name="column"><file name="name.phtml" hash="7997765254d19e09b30cf1d0090bd4e6"/></dir></dir></dir><file name="sinchdistributors.phtml" hash="d74f3d401b83319c1b42b878afc5ccff"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="sinchimport_run.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="sinchimport_yes.gif" hash="0afb20898a704a106cb4c598868abf32"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>