BikeExchange_DE - Version 1.0.4

Version Notes

Using $product->isAvailable()

Download this release

Release Info

Developer Hagen Schwaß
Extension BikeExchange_DE
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/community/Bikeexchange/Produktexport/Model/Catalog/Product/Api.php CHANGED
@@ -52,7 +52,8 @@ class Bikeexchange_Produktexport_Model_Catalog_Product_Api extends Mage_Catalog_
52
  'special_to_date' => $product->getSpecialToDate(),
53
  'tier_price' => $product->getTierPrice(),
54
  'qty' => $product->getStockItem()->getQty(),
55
- 'is_in_stock'=> $product->getStockItem()->getIsInStock()
 
56
  );
57
  foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute)
58
  {
@@ -97,6 +98,7 @@ class Bikeexchange_Produktexport_Model_Catalog_Product_Api extends Mage_Catalog_
97
  'meta_description' => $product->getData('meta_description'),
98
  'qty' => $product->getStockItem()->getQty(),
99
  'is_in_stock'=> $product->getStockItem()->getIsInStock(),
 
100
  'image_url' => Mage::helper('catalog/product')->getImageUrl($product),
101
  'images' => $product->getMediaGalleryImages()
102
  );
52
  'special_to_date' => $product->getSpecialToDate(),
53
  'tier_price' => $product->getTierPrice(),
54
  'qty' => $product->getStockItem()->getQty(),
55
+ 'is_in_stock'=> $product->getStockItem()->getIsInStock(),
56
+ 'is_available' => $product->isAvailable() ? 'yes' : 'no'
57
  );
58
  foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute)
59
  {
98
  'meta_description' => $product->getData('meta_description'),
99
  'qty' => $product->getStockItem()->getQty(),
100
  'is_in_stock'=> $product->getStockItem()->getIsInStock(),
101
+ 'is_available' => $product->isAvailable() ? 'yes' : 'no',
102
  'image_url' => Mage::helper('catalog/product')->getImageUrl($product),
103
  'images' => $product->getMediaGalleryImages()
104
  );
app/code/community/Bikeexchange/Produktexport/etc/config.xml CHANGED
@@ -1,7 +1,7 @@
1
  <config>
2
  <modules>
3
  <Bikeexchange_Produktexport>
4
- <version>1.0.3</version>
5
  </Bikeexchange_Produktexport>
6
  </modules>
7
  <global>
1
  <config>
2
  <modules>
3
  <Bikeexchange_Produktexport>
4
+ <version>1.0.4</version>
5
  </Bikeexchange_Produktexport>
6
  </modules>
7
  <global>
app/code/community/Bikeexchange/Produktexport/etc/wsi.xml CHANGED
@@ -28,6 +28,7 @@
28
  <xsd:element name="tier_price" type="typens:catalogProductTierPriceEntityArray" minOccurs="0" />
29
  <xsd:element name="qty" type="xsd:string" minOccurs="0" />
30
  <xsd:element name="is_in_stock" type="xsd:string" minOccurs="0" />
 
31
  </xsd:sequence>
32
  </xsd:complexType>
33
  <xsd:complexType name="bikeexchangeProductArray">
@@ -63,6 +64,7 @@
63
  <xsd:element name="meta_description" type="xsd:string" minOccurs="0" />
64
  <xsd:element name="qty" type="xsd:string" minOccurs="0" />
65
  <xsd:element name="is_in_stock" type="xsd:string" minOccurs="0" />
 
66
  <xsd:element name="image_url" type="xsd:string" minOccurs="0" />
67
  <xsd:element name="images" type="typens:catalogProductImageEntityArray" minOccurs="0" />
68
  <xsd:element name="attributes" type="xsd:string" minOccurs="0" />
28
  <xsd:element name="tier_price" type="typens:catalogProductTierPriceEntityArray" minOccurs="0" />
29
  <xsd:element name="qty" type="xsd:string" minOccurs="0" />
30
  <xsd:element name="is_in_stock" type="xsd:string" minOccurs="0" />
31
+ <xsd:element name="is_available" type="xsd:string" minOccurs="0" />
32
  </xsd:sequence>
33
  </xsd:complexType>
34
  <xsd:complexType name="bikeexchangeProductArray">
64
  <xsd:element name="meta_description" type="xsd:string" minOccurs="0" />
65
  <xsd:element name="qty" type="xsd:string" minOccurs="0" />
66
  <xsd:element name="is_in_stock" type="xsd:string" minOccurs="0" />
67
+ <xsd:element name="is_available" type="xsd:string" minOccurs="0" />
68
  <xsd:element name="image_url" type="xsd:string" minOccurs="0" />
69
  <xsd:element name="images" type="typens:catalogProductImageEntityArray" minOccurs="0" />
70
  <xsd:element name="attributes" type="xsd:string" minOccurs="0" />
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BikeExchange_DE</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Automating a BikeExchange DE account from the Magento Shop's admin panel.</summary>
10
  <description>In order to automate a BikeExchange account two SOAP v2 functions are added. One provides stock and price information for frequent usage. The other provides product data for creating adverts on the marketplace.</description>
11
- <notes>Guessing more attribute codes&#xD;
12
- Output attribute codes&#xD;
13
- Output guessed attributes with data and text</notes>
14
  <authors><author><name>Hagen Schwa&#xDF;</name><user>hagens</user><email>bikeexchange@hagenschwass.name</email></author></authors>
15
- <date>2017-05-02</date>
16
- <time>10:51:32</time>
17
- <contents><target name="mageetc"><dir name="modules"><file name="Bikeexchange_Produktexport.xml" hash="fea0bff88a09bd200e810f7b6b38a888"/></dir></target><target name="magecommunity"><dir name="Bikeexchange"><dir name="Produktexport"><dir name="Helper"><file name="Data.php" hash="6a59185f3a1ecbe68cb845b6525f997d"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="8af7de3830297ee52215de8271de4efe"/></dir><file name="Api.php" hash="8e19350a96a3f71ed436355e7df6b208"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="e82ea342aeadaf59d0e96cc3424ab1ae"/><file name="config.xml" hash="5d5486f95403e178c1b782dbb9ac3f7f"/><file name="wsi.xml" hash="a960379e332c30c4a086596bb9d2dc07"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.4.0</min><max>5.6.9</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.9.3.2</max></package></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BikeExchange_DE</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Automating a BikeExchange DE account from the Magento Shop's admin panel.</summary>
10
  <description>In order to automate a BikeExchange account two SOAP v2 functions are added. One provides stock and price information for frequent usage. The other provides product data for creating adverts on the marketplace.</description>
11
+ <notes>Using $product-&gt;isAvailable()</notes>
 
 
12
  <authors><author><name>Hagen Schwa&#xDF;</name><user>hagens</user><email>bikeexchange@hagenschwass.name</email></author></authors>
13
+ <date>2017-05-08</date>
14
+ <time>09:09:29</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Bikeexchange_Produktexport.xml" hash="fea0bff88a09bd200e810f7b6b38a888"/></dir></target><target name="magecommunity"><dir name="Bikeexchange"><dir name="Produktexport"><dir name="Helper"><file name="Data.php" hash="6a59185f3a1ecbe68cb845b6525f997d"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="8af7de3830297ee52215de8271de4efe"/></dir><file name="Api.php" hash="bae24392d4a692df5ad5ef5fb661940a"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="e82ea342aeadaf59d0e96cc3424ab1ae"/><file name="config.xml" hash="30a89ddd993d4b04818eabbf5e9a35ca"/><file name="wsi.xml" hash="c36fb04bea9f0a51162578f8a9aaf431"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>5.6.9</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.9.3.2</max></package></required></dependencies>
18
  </package>