Beecoder_Beeshopy - Version 3.1.0

Version Notes

Bringing images with watermark

Download this release

Release Info

Developer Miguel Ángel Martínez Triviño
Extension Beecoder_Beeshopy
Version 3.1.0
Comparing to
See all releases


Code changes from version 3.0.1 to 3.1.0

app/code/community/Beecoder/Beeshopy/.changelog.txt.swp DELETED
Binary file
app/code/community/Beecoder/Beeshopy/Model/Api.php CHANGED
@@ -110,7 +110,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
110
  /* Used to know if module is installed*/
111
  public function checkModule()
112
  {
113
- return array("api_version" => '3.0.1', "magento_version" => Mage::getVersion());
114
  }
115
 
116
  /*Auxiliar functions*/
@@ -151,10 +151,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
151
 
152
  private function getProductInfo($product, $store = null, $extra_params = array())
153
  {
154
- /* Images */
155
- $image_class = Mage::getModel('catalog/product_attribute_media_api');
156
- $images = $image_class->items($product->getId(), $store);
157
-
158
  /* Custom Options */
159
  $options = $this->getCustomOptions($product);
160
  $links = $this->getDownloadableLinks($product);
@@ -277,6 +274,17 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
277
  return $res;
278
  }
279
 
 
 
 
 
 
 
 
 
 
 
 
280
  private function getCustomOptions($product)
281
  {
282
  $options = array();
110
  /* Used to know if module is installed*/
111
  public function checkModule()
112
  {
113
+ return array("api_version" => '3.1.0', "magento_version" => Mage::getVersion());
114
  }
115
 
116
  /*Auxiliar functions*/
151
 
152
  private function getProductInfo($product, $store = null, $extra_params = array())
153
  {
154
+ $images = $this->getImages($product);
 
 
 
155
  /* Custom Options */
156
  $options = $this->getCustomOptions($product);
157
  $links = $this->getDownloadableLinks($product);
274
  return $res;
275
  }
276
 
277
+ private function getImages($product)
278
+ {
279
+ $image_class = Mage::getModel('catalog/product_attribute_media_api');
280
+ $images = array();
281
+ foreach ($image_class->items($product->getId(), $store) as $_image){
282
+ $_image['url'] = (string)Mage::Helper('catalog/image')->init($product, 'image', $_image['file']);
283
+ $images[] = $_image;
284
+ }
285
+ return $images;
286
+ }
287
+
288
  private function getCustomOptions($product)
289
  {
290
  $options = array();
app/code/community/Beecoder/Beeshopy/changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Module changelog ==
2
 
 
 
 
 
3
  === 3.0.1 (10-04-13) ===
4
 
5
  * Packaging for enterprise version
1
  == Module changelog ==
2
 
3
+ === 3.1.0 (03-17-14) ===
4
+
5
+ * Importing images with watermark
6
+
7
  === 3.0.1 (10-04-13) ===
8
 
9
  * Packaging for enterprise version
app/code/community/Beecoder/Beeshopy/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Beecoder_Beeshopy>
5
- <version>3.0.1</version>
6
  </Beecoder_Beeshopy>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <Beecoder_Beeshopy>
5
+ <version>3.1.0</version>
6
  </Beecoder_Beeshopy>
7
  </modules>
8
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
- <version>3.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -11,11 +11,11 @@ Beeshopy extension for Magento, it allows you to integrates your magento store w
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
- <notes>Packaging for enterprise version</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>migmartri</user><email>migmartri@gmail.com</email></author></authors>
16
- <date>2013-09-04</date>
17
- <time>19:17:35</time>
18
- <contents><target name="magecommunity"><dir><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="BeetailerCode.php" hash="5ebd139c74329ed65008af77e8d98eb0"/><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="6e1e1f2f6f7f55a1b0977968a5fcd2bc"/></dir><file name="changelog.txt" hash="03a4c182c129c91155d38b318aeb9625"/><dir name="controllers"><file name="AdminController.php" hash="ec76e2b55bb772b244d9fc2e06a2223e"/><file name="IndexController.php" hash="0c177b543cf62d6bcd5617c6713032d3"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="e588fd30e467c493bcdafd52c331d0de"/></dir><file name="install.txt" hash="48681401ca44b68a89c111c37bbd76e0"/><file name=".changelog.txt.swp" hash="d3c007df4226cb4c2198c4c2e1528870"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="39dceda3708b265ef734334905c566f3"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/><file name="beetailercode.phtml" hash="ae2644a2449ff3b0d9929da9cba85a59"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Beecoder_Beeshopy</name>
4
+ <version>3.1.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
11
  <description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. &#xD;
12
  &#xD;
13
  It contains a custom API and cart processing.</description>
14
+ <notes>Bringing images with watermark</notes>
15
  <authors><author><name>Miguel &#xC1;ngel Mart&#xED;nez Trivi&#xF1;o</name><user>migmartri</user><email>migmartri@gmail.com</email></author></authors>
16
+ <date>2014-03-17</date>
17
+ <time>21:10:46</time>
18
+ <contents><target name="magecommunity"><dir><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="BeetailerCode.php" hash="5ebd139c74329ed65008af77e8d98eb0"/><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="1c69773f5d75798211b4abf7e1a4d78f"/></dir><file name="changelog.txt" hash="7f4a75bab422d0ac7d0da0ebd719a13d"/><dir name="controllers"><file name="AdminController.php" hash="ec76e2b55bb772b244d9fc2e06a2223e"/><file name="IndexController.php" hash="0c177b543cf62d6bcd5617c6713032d3"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="0f266cb1c551fdbb499a004bed040eed"/></dir><file name="install.txt" hash="48681401ca44b68a89c111c37bbd76e0"/><file name=".changelog.txt.swp" hash="d3c007df4226cb4c2198c4c2e1528870"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="39dceda3708b265ef734334905c566f3"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/><file name="beetailercode.phtml" hash="ae2644a2449ff3b0d9929da9cba85a59"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>