Mage_Codi - Version 4.0.7

Version Notes

Please contact our support desk if you have any problems.

Download this release

Release Info

Developer Magento Core Team
Extension Mage_Codi
Version 4.0.7
Comparing to
See all releases


Code changes from version 4.0.6 to 4.0.7

app/code/community/Mage/CodiScript/Model/Files.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- // 2013-06-05
3
  class Mage_CodiScript_Model_Files extends Mage_Core_Model_Abstract {
4
  public $version = VERSION;
5
  public $Store;
@@ -16,6 +16,8 @@ class Mage_CodiScript_Model_Files extends Mage_Core_Model_Abstract {
16
  public $includetaxes = FALSE;
17
  public $ignoreexcludedimages = FALSE;
18
  public $ignoreassprodimages = FALSE;
 
 
19
  public $address = FALSE;
20
  public $quantitylabel;
21
  public $pricelabel;
@@ -57,12 +59,25 @@ Products: ".count($prodIds)."
57
  Media URL: ".$this->mediaurl."
58
  memory_get_usage ".memory_get_usage()." / ".memory_get_usage(TRUE)."
59
  ";
60
- echo "itemNumber\titemQty\titemUom\titemPrice\titemDescription\titemLink\titemAttributes\titemGraphic\tproductName\tproductDescription\tproductGraphic\tproductLink\tproductAttributes\tManufacturer\tCategory\tReviews\tSupplementalInfo
 
61
  ";
62
  $count = 0;
 
 
 
63
  foreach( $prodIds as $productId ){
 
 
 
 
 
 
 
 
 
 
64
  $product = Mage::getModel('catalog/product')->setStoreId( $this->StoreId )->load( $productId );
65
- $count++;
66
  if( $product->isConfigurable() )
67
  echo $this->ProducttoStringConfigurable( $product );
68
  else if( $product->isGrouped() )
@@ -72,8 +87,9 @@ memory_get_usage ".memory_get_usage()." / ".memory_get_usage(TRUE)."
72
  unset( $product );
73
  if($this->_DEBUG) echo "#".$count.": memory_get_usage ".memory_get_usage()." / ".memory_get_usage(TRUE)."
74
  ";
 
75
  }
76
- echo "==EOF==";
77
  }
78
  public function ProducttoStringGrouped( &$product ){
79
  $ProducttoString = "";
@@ -151,7 +167,6 @@ product thumbnail : ".$product->getThumbnail()."
151
  }
152
  }
153
  $prodImages = implode( "#|#", $prodImages );
154
-
155
  $ProductURL = $product->getProductUrl();
156
  if( !empty( $ProductURL ) )
157
  $ProductURL = $this->correctProdUrlStr( $ProductURL );
1
  <?php
2
+ // 2013-07-19
3
  class Mage_CodiScript_Model_Files extends Mage_Core_Model_Abstract {
4
  public $version = VERSION;
5
  public $Store;
16
  public $includetaxes = FALSE;
17
  public $ignoreexcludedimages = FALSE;
18
  public $ignoreassprodimages = FALSE;
19
+ public $start = 0;
20
+ public $pageSize = 1000000000;
21
  public $address = FALSE;
22
  public $quantitylabel;
23
  public $pricelabel;
59
  Media URL: ".$this->mediaurl."
60
  memory_get_usage ".memory_get_usage()." / ".memory_get_usage(TRUE)."
61
  ";
62
+ if( $this->start == 0 ) echo
63
+ "itemNumber\titemQty\titemUom\titemPrice\titemDescription\titemLink\titemAttributes\titemGraphic\tproductName\tproductDescription\tproductGraphic\tproductLink\tproductAttributes\tManufacturer\tCategory\tReviews\tSupplementalInfo
64
  ";
65
  $count = 0;
66
+ $index = 0;
67
+ $lastLine = "==EOF==
68
+ ";
69
  foreach( $prodIds as $productId ){
70
+ if( $count == $this->pageSize ){
71
+ $lastLine = "==MORE==
72
+ ";
73
+ break;
74
+ }
75
+ if( $index < $this->start ){
76
+ $index++;
77
+ continue;
78
+ }
79
+ $index++;
80
  $product = Mage::getModel('catalog/product')->setStoreId( $this->StoreId )->load( $productId );
 
81
  if( $product->isConfigurable() )
82
  echo $this->ProducttoStringConfigurable( $product );
83
  else if( $product->isGrouped() )
87
  unset( $product );
88
  if($this->_DEBUG) echo "#".$count.": memory_get_usage ".memory_get_usage()." / ".memory_get_usage(TRUE)."
89
  ";
90
+ $count++;
91
  }
92
+ echo $lastLine;
93
  }
94
  public function ProducttoStringGrouped( &$product ){
95
  $ProducttoString = "";
167
  }
168
  }
169
  $prodImages = implode( "#|#", $prodImages );
 
170
  $ProductURL = $product->getProductUrl();
171
  if( !empty( $ProductURL ) )
172
  $ProductURL = $this->correctProdUrlStr( $ProductURL );
app/code/community/Mage/CodiScript/controllers/IndexController.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define("VERSION","2013-06-05");
3
 
4
  class Mage_CodiScript_IndexController extends Mage_Core_Controller_Front_Action{
5
  public function indexAction(){
@@ -60,6 +60,8 @@ if( $Class=="DataFile" ){
60
  $includetaxes = ( isset($_REQUEST["includetaxes"]) && $_REQUEST["includetaxes"] == "1" );
61
  $ignoreexcludedimages = ( isset($_REQUEST["ignoreexcludedimages"]) && $_REQUEST["ignoreexcludedimages"] == "1" );
62
  $ignoreassprodimages = ( isset($_REQUEST["ignoreassprodimages"]) && $_REQUEST["ignoreassprodimages"] == "1" );
 
 
63
  if($_DEBUG) echo "enablereviews=".$enablereviews."
64
  ignoretopcategory=".$ignoretopcategory."
65
  includeshortdescription=".$includeshortdescription."
@@ -72,6 +74,8 @@ savingslabel=".$savingslabel."
72
  includetaxes=".$includetaxes."
73
  ignoreexcludedimages=".$ignoreexcludedimages."
74
  ignoreassprodimages=".$ignoreassprodimages."
 
 
75
  ";
76
  }else if( $Class=="CatalogSection" ){
77
  $ignoretopcategory = ( isset($_REQUEST["ignoretopcategory"]) && $_REQUEST["ignoretopcategory"] == "1" );
@@ -142,6 +146,8 @@ if($Class=="DataFile"){
142
  $cfModel->includetaxes = $includetaxes;
143
  $cfModel->ignoreexcludedimages = $ignoreexcludedimages;
144
  $cfModel->ignoreassprodimages = $ignoreassprodimages;
 
 
145
  if($cfModel->includetaxes)
146
  $cfModel->taxhelper=Mage::helper('tax');
147
  }else if( $Class=="CatalogSection" ){
@@ -182,6 +188,9 @@ executed in ".( time() - $started_time )." sec.
182
  ";
183
  die();
184
  /* RELEASE NOTES
 
 
 
185
  * 2013-06-05
186
  * 1. "Ignore associated product images" feature expanded to configurable products
187
  *
1
  <?php
2
+ define("VERSION","2013-07-19");
3
 
4
  class Mage_CodiScript_IndexController extends Mage_Core_Controller_Front_Action{
5
  public function indexAction(){
60
  $includetaxes = ( isset($_REQUEST["includetaxes"]) && $_REQUEST["includetaxes"] == "1" );
61
  $ignoreexcludedimages = ( isset($_REQUEST["ignoreexcludedimages"]) && $_REQUEST["ignoreexcludedimages"] == "1" );
62
  $ignoreassprodimages = ( isset($_REQUEST["ignoreassprodimages"]) && $_REQUEST["ignoreassprodimages"] == "1" );
63
+ $start = isset($_REQUEST["start"]) ? intval( $_REQUEST["start"] ) : 0;
64
+ $pageSize = isset($_REQUEST["pageSize"]) ? intval( $_REQUEST["pageSize"] ) : 1000000000;
65
  if($_DEBUG) echo "enablereviews=".$enablereviews."
66
  ignoretopcategory=".$ignoretopcategory."
67
  includeshortdescription=".$includeshortdescription."
74
  includetaxes=".$includetaxes."
75
  ignoreexcludedimages=".$ignoreexcludedimages."
76
  ignoreassprodimages=".$ignoreassprodimages."
77
+ start=".$start."
78
+ pageSize=".$pageSize."
79
  ";
80
  }else if( $Class=="CatalogSection" ){
81
  $ignoretopcategory = ( isset($_REQUEST["ignoretopcategory"]) && $_REQUEST["ignoretopcategory"] == "1" );
146
  $cfModel->includetaxes = $includetaxes;
147
  $cfModel->ignoreexcludedimages = $ignoreexcludedimages;
148
  $cfModel->ignoreassprodimages = $ignoreassprodimages;
149
+ $cfModel->start = $start;
150
+ $cfModel->pageSize = $pageSize;
151
  if($cfModel->includetaxes)
152
  $cfModel->taxhelper=Mage::helper('tax');
153
  }else if( $Class=="CatalogSection" ){
188
  ";
189
  die();
190
  /* RELEASE NOTES
191
+ * 2013-07-19
192
+ * 1. Added incremental data file retrieval
193
+ *
194
  * 2013-06-05
195
  * 1. "Ignore associated product images" feature expanded to configurable products
196
  *
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Codi</name>
4
- <version>4.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Extension to connect to the Catalog-on-Demand service for making print catalogs, brochures, and flyers.</description>
11
  <notes>Please contact our support desk if you have any problems.</notes>
12
  <authors><author><name>catalogondemand</name><user>auto-converted</user><email>timh@catalog-on-demand.com</email></author></authors>
13
- <date>2013-07-04</date>
14
- <time>15:24:33</time>
15
- <contents><target name="magecommunity"><dir name="Mage"><dir name="CodiScript"><dir name="Helper"><file name="Data.php" hash="3f99660cb06a9dc09f024b9993d43a3f"/></dir><dir name="Model"><file name="Files.php" hash="3f1dfaed53fe011d21daa3525cdf64a4"/></dir><dir name="controllers"><file name="IndexController.php" hash="98098548cb38e57ce838c583c658a274"/></dir><dir name="etc"><file name="adminhtml.xml" hash="40ab0bd86928c5ba175988926a9f6aee"/><file name="config.xml" hash="b960e9bd106f0c94559baa2bc5761e18"/><file name="system.xml" hash="1b5e5b18bfdce6b85e304fb4ef877274"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_CodiScript.xml" hash="f0502cac7918fc798b3b02d3d4b7e7fd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="codiscript.xml" hash="066f99333a6054e11943a75413f65ff0"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="codi"><file name="password_validation.js" hash="7223aeed118bb5774c73f951460ae0b0"/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_CodiScript.csv" hash="183fc591065ced83f878a4c3e23f854c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Codi</name>
4
+ <version>4.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Extension to connect to the Catalog-on-Demand service for making print catalogs, brochures, and flyers.</description>
11
  <notes>Please contact our support desk if you have any problems.</notes>
12
  <authors><author><name>catalogondemand</name><user>auto-converted</user><email>timh@catalog-on-demand.com</email></author></authors>
13
+ <date>2013-07-19</date>
14
+ <time>12:32:09</time>
15
+ <contents><target name="magecommunity"><dir name="Mage"><dir name="CodiScript"><dir name="Helper"><file name="Data.php" hash="3f99660cb06a9dc09f024b9993d43a3f"/></dir><dir name="Model"><file name="Files.php" hash="115b7d976eae25c1e744527cf7067d4f"/></dir><dir name="controllers"><file name="IndexController.php" hash="eeb893fa247709694bc142f1182200bd"/></dir><dir name="etc"><file name="adminhtml.xml" hash="40ab0bd86928c5ba175988926a9f6aee"/><file name="config.xml" hash="b960e9bd106f0c94559baa2bc5761e18"/><file name="system.xml" hash="1b5e5b18bfdce6b85e304fb4ef877274"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_CodiScript.xml" hash="f0502cac7918fc798b3b02d3d4b7e7fd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="codiscript.xml" hash="066f99333a6054e11943a75413f65ff0"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="codi"><file name="password_validation.js" hash="7223aeed118bb5774c73f951460ae0b0"/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_CodiScript.csv" hash="183fc591065ced83f878a4c3e23f854c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>