Mage_Codi - Version 4.0.5

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.5
Comparing to
See all releases


Code changes from version 4.0.4 to 4.0.5

app/code/community/Mage/CodiScript/Model/Files.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- // 2013-05-31
3
  class Mage_CodiScript_Model_Files extends Mage_Core_Model_Abstract {
4
  public $version = VERSION;
5
  public $Store;
@@ -368,18 +368,21 @@ product thumbnail : ".$product->getThumbnail()."
368
  item small image: ".$UsedProduct->getSmallImage()."
369
  item thumbnail : ".$UsedProduct->getThumbnail()."
370
  ";
371
- $itemImages = array();
372
- $itemImageArray = $UsedProduct->getMediaGallery('images');
373
- if( is_array($itemImageArray) ){
374
- foreach( $itemImageArray as $image ){
375
- if($this->_DEBUG) echo "gallery image ".$image['file']." disabled=".$image['disabled']."
376
- ";
377
- if( $this->ignoreexcludedimages && $image['disabled'] )
378
- continue;
379
- $itemImages[] = "Print#=#".$this->prodmediaurl.$image['file'];
 
 
 
380
  }
 
381
  }
382
- $itemImages = implode( "#|#", $itemImages );
383
  $itemID = $UsedProduct->getSku();
384
  $ProducttoString .= $this->cleanStr( $itemID ) //ItemID
385
  . "\t" //ItemQty
1
  <?php
2
+ // 2013-06-05
3
  class Mage_CodiScript_Model_Files extends Mage_Core_Model_Abstract {
4
  public $version = VERSION;
5
  public $Store;
368
  item small image: ".$UsedProduct->getSmallImage()."
369
  item thumbnail : ".$UsedProduct->getThumbnail()."
370
  ";
371
+ if($this->ignoreassprodimages) $itemImages = "";
372
+ else{
373
+ $itemImages = array();
374
+ $itemImageArray = $UsedProduct->getMediaGallery('images');
375
+ if( is_array($itemImageArray) ){
376
+ foreach( $itemImageArray as $image ){
377
+ if($this->_DEBUG) echo "gallery image ".$image['file']." disabled=".$image['disabled']."
378
+ ";
379
+ if( $this->ignoreexcludedimages && $image['disabled'] )
380
+ continue;
381
+ $itemImages[] = "Print#=#".$this->prodmediaurl.$image['file'];
382
+ }
383
  }
384
+ $itemImages = implode( "#|#", $itemImages );
385
  }
 
386
  $itemID = $UsedProduct->getSku();
387
  $ProducttoString .= $this->cleanStr( $itemID ) //ItemID
388
  . "\t" //ItemQty
app/code/community/Mage/CodiScript/controllers/IndexController.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define("VERSION","2013-05-31");
3
 
4
  class Mage_CodiScript_IndexController extends Mage_Core_Controller_Front_Action{
5
  public function indexAction(){
@@ -182,6 +182,9 @@ executed in ".( time() - $started_time )." sec.
182
  ";
183
  die();
184
  /* RELEASE NOTES
 
 
 
185
  * 2013-05-31
186
  * 1. Added "Ignore associated product images" feature
187
  *
1
  <?php
2
+ define("VERSION","2013-06-05");
3
 
4
  class Mage_CodiScript_IndexController extends Mage_Core_Controller_Front_Action{
5
  public function indexAction(){
182
  ";
183
  die();
184
  /* RELEASE NOTES
185
+ * 2013-06-05
186
+ * 1. "Ignore associated product images" feature expanded to configurable products
187
+ *
188
  * 2013-05-31
189
  * 1. Added "Ignore associated product images" feature
190
  *
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Codi</name>
4
- <version>4.0.4</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>
8
  <extends/>
9
  <summary>Catalog-on-Demand</summary>
10
  <description>Extension to connect to the Catalog-on-Demand service for making print catalogs, brochures, and flyers.</description>
11
- <notes>Supports suppression of associated product images.&#xD;
12
- &#xD;
13
- Please contact our support desk if you have any problems.</notes>
14
  <authors><author><name>catalogondemand</name><user>auto-converted</user><email>timh@catalog-on-demand.com</email></author></authors>
15
- <date>2013-05-31</date>
16
- <time>18:23:10</time>
17
- <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="b8ec7a091c9bda7f87d13587304e74c1"/></dir><dir name="controllers"><file name="IndexController.php" hash="5592e9a19e8e8c321f332f19f31c6988"/></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>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Codi</name>
4
+ <version>4.0.5</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>
8
  <extends/>
9
  <summary>Catalog-on-Demand</summary>
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-06-05</date>
14
+ <time>14:49:44</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>