Buscape_Sitemap - Version 0.1.6

Version Notes

Melhoria em performance e na captura de imagens

Download this release

Release Info

Developer Magento Core Team
Extension Buscape_Sitemap
Version 0.1.6
Comparing to
See all releases


Code changes from version 0.1.5 to 0.1.6

app/code/community/Buscape/Sitemap/Model/Sitemap.php CHANGED
@@ -150,8 +150,10 @@ class Buscape_Sitemap_Model_Sitemap extends Mage_Sitemap_Model_Sitemap
150
  $lines = 2000;
151
 
152
  $size = $collection->count();
153
-
154
  foreach($collection as $item) {
 
 
155
 
156
  try {
157
 
@@ -200,18 +202,20 @@ class Buscape_Sitemap_Model_Sitemap extends Mage_Sitemap_Model_Sitemap
200
  <id_filial>%s</id_filial>
201
  </produto>
202
  EOT;
203
- $xml = sprintf($template,
 
204
  str_replace("&", " ", $product->getName()),
205
  str_replace(".", ",", Mage::helper('checkout')->convertPrice($product->getFinalPrice(), false)),
206
  $product->getId(),
207
  $product->getSku(),
208
  $product->getProductUrl(),
209
- $product->getImageUrl(),
210
  str_replace("/", ":", $product->getCategoryCollection()->getFirstItem()->getPath()),
211
  intval($product->getStockItem()->getQty()),
212
  $this->_getConfig()->getAccount()
213
- );
214
-
 
215
  $xml .= "\n";
216
 
217
  $io->streamWrite($xml);
150
  $lines = 2000;
151
 
152
  $size = $collection->count();
153
+
154
  foreach($collection as $item) {
155
+
156
+ // Mage::log($item, null, 'item.log', true);
157
 
158
  try {
159
 
202
  <id_filial>%s</id_filial>
203
  </produto>
204
  EOT;
205
+
206
+ $xml = sprintf($template,
207
  str_replace("&", " ", $product->getName()),
208
  str_replace(".", ",", Mage::helper('checkout')->convertPrice($product->getFinalPrice(), false)),
209
  $product->getId(),
210
  $product->getSku(),
211
  $product->getProductUrl(),
212
+ ($product->getImage()=="no_selection")?"":$product->getImageUrl(),
213
  str_replace("/", ":", $product->getCategoryCollection()->getFirstItem()->getPath()),
214
  intval($product->getStockItem()->getQty()),
215
  $this->_getConfig()->getAccount()
216
+ );
217
+
218
+
219
  $xml .= "\n";
220
 
221
  $io->streamWrite($xml);
app/code/community/Buscape/Sitemap/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Buscape_Sitemap>
25
- <version>0.1.5</version>
26
  </Buscape_Sitemap>
27
  </modules>
28
  <global>
22
  <config>
23
  <modules>
24
  <Buscape_Sitemap>
25
+ <version>0.1.6</version>
26
  </Buscape_Sitemap>
27
  </modules>
28
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_Sitemap</name>
4
- <version>0.1.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>
@@ -9,19 +9,25 @@
9
  <summary>Buscap&#xE9; Sitemap extension for Magento</summary>
10
  <description>&lt;p&gt;Buscap&#xE9; Sitemap extension for Magento generates a XML file containing all product offers of your store so they can be shown in Buscap&#xE9; comparison shopping.&lt;/p&gt;&#xD;
11
  &#xD;
12
- &lt;p&gt;For support, contacts us: &lt;a href="mailto:suporte@devbuscapecompany"&gt;suporte.developer@buscapecompany.com&lt;/a&gt;&lt;/p&gt;&#xD;
13
  &#xD;
 
14
  &#xD;
15
- *&#xD;
 
16
  &#xD;
17
  &lt;p&gt; A extens&#xE3;o Buscap&#xE9; Sitemap para Magento cria um arquivo XML com todas as ofertas de sua loja virtual para que elas possam ser exibidas no comparador de pre&#xE7;os Buscap&#xE9;.&lt;/p&gt;&#xD;
18
  &#xD;
19
- &lt;p&gt;Para suporte, envie um e-mail para: &lt;a href="mailto:suporte.developer@buscapecompany.com"&gt;suporte.developer@buscapecompany.com&lt;/a&gt;&lt;/p&gt;</description>
20
- <notes>Melhoria em performance</notes>
21
- <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte.developer@buscape-inc.com</email></author></authors>
22
- <date>2013-09-20</date>
23
- <time>14:01:11</time>
24
- <contents><target name="mageetc"><dir name="modules"><file name="Buscape_Sitemap.xml" hash="e49a3a6d37df6cd56928f2ba4d517559"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="Sitemap"><dir name="Block"><dir name="Admin"><dir name="Edit"><file name="Form.php" hash="4eabebc5239ba40ef9d7ed01b87338de"/></dir><dir name="Grid"><dir name="Renderer"><file name="Link.php" hash="c3fc7d89a673e8eba245240eeca1eba0"/></dir></dir><dir name="Main"><file name="Grid.php" hash="a1708e4296c4963f920d4218b7009e0e"/></dir><dir name="New"><file name="Form.php" hash="98e92a67cd4fbd3d7a4e65704f542f2e"/></dir><file name="Edit.php" hash="fe15ceb6569bcdcd99a08d53599aaca9"/><file name="Main.php" hash="a6c4688b7cbe3a5d2fd18733e9f1a56e"/><file name="New.php" hash="74afbf19d3a6bdb83cf345de916a0242"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fe038765e31661ba27cf8784a1559d6b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Sitemap"><file name="Collection.php" hash="28c00c86c4fe5aa87325643a5255b32a"/></dir><file name="Sitemap.php" hash="c78328a3a52da29e242b00822935a615"/></dir><file name="Config.php" hash="4386e1c98918d5a114b7a9d31afea296"/><file name="Observer.php" hash="ff2c01550acf78584d6ab56bfbf9b579"/><file name="Sitemap.php" hash="c0174422279426ce0e491e86916b1ac9"/></dir><dir name="controllers"><file name="AdminController.php" hash="c1efb71e16840a721f775f4fb480405d"/></dir><dir name="etc"><file name="config.xml" hash="7a020b03571366c2da050f131dece613"/><file name="system.xml" hash="11d6d0609d435447bf1f2c5229f78158"/></dir><dir name="sql"><dir name="buscapemap_setup"><file name="mysql4-install-0.1.0.php" hash="915a5dc3b7a2ba4d5c634db00780303c"/></dir></dir></dir></dir></target></contents>
 
 
 
 
25
  <compatible/>
26
  <dependencies/>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_Sitemap</name>
4
+ <version>0.1.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>
9
  <summary>Buscap&#xE9; Sitemap extension for Magento</summary>
10
  <description>&lt;p&gt;Buscap&#xE9; Sitemap extension for Magento generates a XML file containing all product offers of your store so they can be shown in Buscap&#xE9; comparison shopping.&lt;/p&gt;&#xD;
11
  &#xD;
12
+ &lt;p&gt;Installation manual - &lt;a href="http://developer.buscape.com/ferramentas/2870/"&gt; Click Here! &lt;/a&gt;&lt;/p&gt;&#xD;
13
  &#xD;
14
+ &lt;p&gt; For suporte contact: &lt;a href="http://suporte.devbuscapecompany.com/anonymous_requests/new"&gt; Click Here! &lt;/a&gt;&lt;/p&gt;&#xD;
15
  &#xD;
16
+ &#xD;
17
+ &lt;hr /&gt;&#xD;
18
  &#xD;
19
  &lt;p&gt; A extens&#xE3;o Buscap&#xE9; Sitemap para Magento cria um arquivo XML com todas as ofertas de sua loja virtual para que elas possam ser exibidas no comparador de pre&#xE7;os Buscap&#xE9;.&lt;/p&gt;&#xD;
20
  &#xD;
21
+ &lt;p&gt;Manual de insta&#xE7;&#xE3;o - &lt;a href="http://developer.buscape.com/ferramentas/2870/"&gt; Clique Aqui! &lt;/a&gt;&lt;/p&gt;&#xD;
22
+ &#xD;
23
+ Para suporte:&#xD;
24
+ &#xD;
25
+ - &lt;a href="http://suporte.devbuscapecompany.com/anonymous_requests/new"&gt; Clique Aqui! &lt;/a&gt;&lt;/p&gt;</description>
26
+ <notes>Melhoria em performance e na captura de imagens</notes>
27
+ <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte@devbuscapecompany.com</email></author></authors>
28
+ <date>2013-11-14</date>
29
+ <time>17:44:11</time>
30
+ <contents><target name="mageetc"><dir name="modules"><file name="Buscape_Sitemap.xml" hash="e49a3a6d37df6cd56928f2ba4d517559"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="Sitemap"><dir name="Block"><dir name="Admin"><dir name="Edit"><file name="Form.php" hash="4eabebc5239ba40ef9d7ed01b87338de"/></dir><dir name="Grid"><dir name="Renderer"><file name="Link.php" hash="c3fc7d89a673e8eba245240eeca1eba0"/></dir></dir><dir name="Main"><file name="Grid.php" hash="a1708e4296c4963f920d4218b7009e0e"/></dir><dir name="New"><file name="Form.php" hash="98e92a67cd4fbd3d7a4e65704f542f2e"/></dir><file name="Edit.php" hash="fe15ceb6569bcdcd99a08d53599aaca9"/><file name="Main.php" hash="a6c4688b7cbe3a5d2fd18733e9f1a56e"/><file name="New.php" hash="74afbf19d3a6bdb83cf345de916a0242"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fe038765e31661ba27cf8784a1559d6b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Sitemap"><file name="Collection.php" hash="28c00c86c4fe5aa87325643a5255b32a"/></dir><file name="Sitemap.php" hash="c78328a3a52da29e242b00822935a615"/></dir><file name="Config.php" hash="4386e1c98918d5a114b7a9d31afea296"/><file name="Observer.php" hash="ff2c01550acf78584d6ab56bfbf9b579"/><file name="Sitemap.php" hash="bf5d41b96cde225774ef4510c196a1f0"/></dir><dir name="controllers"><file name="AdminController.php" hash="c1efb71e16840a721f775f4fb480405d"/></dir><dir name="etc"><file name="config.xml" hash="dd66b68c909c91cba118d08846d4df38"/><file name="system.xml" hash="11d6d0609d435447bf1f2c5229f78158"/></dir><dir name="sql"><dir name="buscapemap_setup"><file name="mysql4-install-0.1.0.php" hash="915a5dc3b7a2ba4d5c634db00780303c"/></dir></dir></dir></dir></target></contents>
31
  <compatible/>
32
  <dependencies/>
33
  </package>