Version Notes
- Minor bugfixes
- Added 1.4 compatibility
Download this release
Release Info
Developer | Magento Core Team |
Extension | epoqRS |
Version | 1.0.11 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.11
app/code/community/Flagbit/EpoqInterface/Block/Export/Productlist.php
CHANGED
@@ -72,8 +72,7 @@ class Flagbit_EpoqInterface_Block_Export_Productlist extends Flagbit_EpoqInterfa
|
|
72 |
->walk($products->getSelect(), array(array($this, 'addNewItemXmlCallback')), array('xmlObj'=> $xmlObj, 'product'=>$product));
|
73 |
|
74 |
return $xmlObj->saveXML();
|
75 |
-
}
|
76 |
-
|
77 |
|
78 |
/**
|
79 |
* Product iterator callback function
|
@@ -117,7 +116,7 @@ class Flagbit_EpoqInterface_Block_Export_Productlist extends Flagbit_EpoqInterfa
|
|
117 |
'g:product_type'=> implode('>', $this->getCategoryPath(true)),
|
118 |
'g:brand' => $this->getProduct()->getManufacturer(),
|
119 |
'g:upc' => $this->getProduct()->getSku(),
|
120 |
-
'g:quantity' => $this->getProduct()->
|
121 |
|
122 |
// e Namespace
|
123 |
'e:locakey' => substr(Mage::getSingleton('core/locale')->getLocale(), 0, 2),
|
@@ -132,6 +131,9 @@ class Flagbit_EpoqInterface_Block_Export_Productlist extends Flagbit_EpoqInterfa
|
|
132 |
$data['e:variant_of'] = $parentProduct[0];
|
133 |
$data['c:mgt_parents'] = implode(',', $parentProduct);
|
134 |
}
|
|
|
|
|
|
|
135 |
|
136 |
// add Product Attributes
|
137 |
$attributes = $this->getProductAttributes();
|
@@ -149,6 +151,24 @@ class Flagbit_EpoqInterface_Block_Export_Productlist extends Flagbit_EpoqInterfa
|
|
149 |
|
150 |
}
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
/**
|
153 |
* get current Product
|
154 |
*
|
72 |
->walk($products->getSelect(), array(array($this, 'addNewItemXmlCallback')), array('xmlObj'=> $xmlObj, 'product'=>$product));
|
73 |
|
74 |
return $xmlObj->saveXML();
|
75 |
+
}
|
|
|
76 |
|
77 |
/**
|
78 |
* Product iterator callback function
|
116 |
'g:product_type'=> implode('>', $this->getCategoryPath(true)),
|
117 |
'g:brand' => $this->getProduct()->getManufacturer(),
|
118 |
'g:upc' => $this->getProduct()->getSku(),
|
119 |
+
'g:quantity' => $this->getProduct()->isSaleable(),
|
120 |
|
121 |
// e Namespace
|
122 |
'e:locakey' => substr(Mage::getSingleton('core/locale')->getLocale(), 0, 2),
|
131 |
$data['e:variant_of'] = $parentProduct[0];
|
132 |
$data['c:mgt_parents'] = implode(',', $parentProduct);
|
133 |
}
|
134 |
+
if($product->isConfigurable()){
|
135 |
+
$data['e:variants'] = implode(',', $this->_getVariantIds($product));
|
136 |
+
}
|
137 |
|
138 |
// add Product Attributes
|
139 |
$attributes = $this->getProductAttributes();
|
151 |
|
152 |
}
|
153 |
|
154 |
+
/**
|
155 |
+
* get Product Variants
|
156 |
+
*
|
157 |
+
* @param Mage_Catalog_Model_Product $product
|
158 |
+
* @return array
|
159 |
+
*/
|
160 |
+
protected function _getVariantIds($product){
|
161 |
+
|
162 |
+
$childProducts = $product->getTypeInstance()->getUsedProducts(null, $product);
|
163 |
+
$childProductIds = array();
|
164 |
+
foreach((array) $childProducts as $childProduct){
|
165 |
+
if ($childProduct->isSaleable()) {
|
166 |
+
$childProductIds[] = $childProduct->getId();
|
167 |
+
}
|
168 |
+
}
|
169 |
+
return $childProductIds;
|
170 |
+
}
|
171 |
+
|
172 |
/**
|
173 |
* get current Product
|
174 |
*
|
app/code/community/Flagbit/EpoqInterface/etc/config.xml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<modules>
|
21 |
<Flagbit_EpoqInterface>
|
22 |
<active>true</active>
|
23 |
-
<version>1.0.
|
24 |
</Flagbit_EpoqInterface>
|
25 |
</modules>
|
26 |
|
20 |
<modules>
|
21 |
<Flagbit_EpoqInterface>
|
22 |
<active>true</active>
|
23 |
+
<version>1.0.11</version>
|
24 |
</Flagbit_EpoqInterface>
|
25 |
</modules>
|
26 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>epoqRS</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -15,9 +15,9 @@
|
|
15 |
<notes>- Minor bugfixes
|
16 |
- Added 1.4 compatibility</notes>
|
17 |
<authors><author><name>Flagbit GmbH </name><user>auto-converted</user><email>magento@flagbit.de</email></author></authors>
|
18 |
-
<date>2010-10-
|
19 |
-
<time>
|
20 |
-
<contents><target name="magelocale"><dir name="de_DE"><file name="Flagbit_EpoqInterface.csv" hash="5643b01f9cbebd4ce9317d839a2e428b"/></dir></target><target name="magecommunity"><dir name="Flagbit"><dir name="EpoqInterface"><dir name="Block"><dir name="Export"><file name="Productlist.php" hash="
|
21 |
<compatible/>
|
22 |
<dependencies/>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>epoqRS</name>
|
4 |
+
<version>1.0.11</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
15 |
<notes>- Minor bugfixes
|
16 |
- Added 1.4 compatibility</notes>
|
17 |
<authors><author><name>Flagbit GmbH </name><user>auto-converted</user><email>magento@flagbit.de</email></author></authors>
|
18 |
+
<date>2010-10-13</date>
|
19 |
+
<time>18:05:52</time>
|
20 |
+
<contents><target name="magelocale"><dir name="de_DE"><file name="Flagbit_EpoqInterface.csv" hash="5643b01f9cbebd4ce9317d839a2e428b"/></dir></target><target name="magecommunity"><dir name="Flagbit"><dir name="EpoqInterface"><dir name="Block"><dir name="Export"><file name="Productlist.php" hash="32cd8f96ed5310b8b6e4e1312efff255"/></dir><dir name="Recommentation"><file name="Abstract.php" hash="1b02b196c062a586ac06ba4c366e9acf"/><file name="Cart.php" hash="a5c689e8cfcf9f3c8f07b88d07003684"/><file name="Product.php" hash="8552f551ad33c2f28e0b80834fbaf8d9"/><file name="User.php" hash="1e8b594b8c54fb475e4595dbe39059fc"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Version.php" hash="71e3964c13333a57929221aa8e2edf07"/></dir></dir></dir></dir><dir name="Track"><file name="Cart.php" hash="4e0ce66e9832296aa7539f0573e712f1"/><file name="Product.php" hash="22e36d5c180ba8a96f0d36ab5747c485"/></dir><file name="Abstract.php" hash="4d52b874305ce4f340773971c5c485c9"/><file name="Head.php" hash="b6844d21b14dc9ebb1697be9e12a57f9"/></dir><dir name="controllers"><file name="IndexController.php" hash="6a5dbe8275701af11cd07b59ff57f4a8"/></dir><dir name="documentation"><file name="Installation_Guide_Magento_epoq_RS_1.0.0.pdf" hash="0227444742853b68a6f600404dc0a92d"/></dir><dir name="etc"><file name="config.xml" hash="97574cc0a52bceda77a78fe9c49631ec"/><file name="system.xml" hash="be045020f604fcb0fe73c086cea8d3f2"/></dir><dir name="Helper"><file name="Data.php" hash="2ea5098c3816538c0bf9de85677ac808"/></dir><dir name="Model"><dir name="Customer"><file name="Profiles.php" hash="fbedb6a3259a29db05b2c8783d02957b"/></dir><dir name="Recommendation"><file name="Abstract.php" hash="8ab50a9132dd79ecc0e216ccb326a5c2"/><file name="Cart.php" hash="fb66d1db5a156e7a89de52c4cfbc30ce"/><file name="Product.php" hash="81f3f8f7a59c1b72dc2526d768494bb9"/><file name="User.php" hash="549e3ba3efe4035c47a7a6c8b13eb39f"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attemps.php" hash="c01ebd5c76fd4d51305ed7111326d57d"/><file name="Idletime.php" hash="957ec9d0c4af2d52add60a9765c4e573"/><file name="Timeout.php" hash="95c38625ad50dc44ba2b2d371de1db65"/></dir></dir></dir><file name="Abstract.php" hash="5f6a2508e34f9ae0a7f8f7aff2e67510"/><file name="Observer.php" hash="6a8bfa71b605dcf37874542e1d721a87"/><file name="Session.php" hash="413f7d31ad2d5878f20a7db7adf5d207"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="epoqinterface.xml" hash="41bcb5bd071cde519b317aad3d8df8fb"/></dir><dir name="template"><dir name="epoqinterface"><dir name="recommendation"><file name="cart.phtml" hash="e3246573dda615454289ff1d39d1a172"/><file name="product.phtml" hash="a6daaf727c1d4b2db7a65772883725bf"/><file name="user.phtml" hash="0c5584382092f0b469d054d08297ba8b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Flagbit_EpoqInterface.xml" hash="8ada99bfdbcc7727ad36339bc11da6ec"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies/>
|
23 |
</package>
|