Activo_Xmlsitemap - Version 1.1.0

Version Notes

Fixed compatibility issue with Magento CE 1.8 & 1.9.

Download this release

Release Info

Developer Activo Extensions
Extension Activo_Xmlsitemap
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.1 to 1.1.0

app/code/community/Activo/Xmlsitemap/Helper/Data.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
4
  }
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Helper_Data extends Mage_Core_Helper_Abstract
16
  {
17
  }
app/code/community/Activo/Xmlsitemap/Model/Feed.php CHANGED
@@ -8,7 +8,7 @@
8
  * that is available through the world-wide-web at this URL:
9
  * http://extensions.activo.com/license_professional
10
  *
11
- * @copyright Copyright (c) 2013 Activo Extensions (http://extensions.activo.com)
12
  * @license OSL 3.0
13
  */
14
 
8
  * that is available through the world-wide-web at this URL:
9
  * http://extensions.activo.com/license_professional
10
  *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
  * @license OSL 3.0
13
  */
14
 
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Mysql4/Catalog/Category.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Category extends Mage_Sitemap_Model_Mysql4_Catalog_Category
3
  {
4
  /**
@@ -28,19 +41,19 @@ class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Category extends Mage_Sitem
28
  }
29
 
30
  $urConditions = array(
31
- 'e.entity_id=ur.category_id',
32
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
33
  'ur.product_id IS NULL',
34
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
35
  );
36
  $this->_select = $this->_getWriteAdapter()->select()
37
- ->from(array('e' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
38
  ->joinLeft(
39
  array('ur' => $this->getTable('core/url_rewrite')),
40
  join(' AND ', $urConditions),
41
  array('url'=>'request_path')
42
  )
43
- ->where('e.path LIKE ?', $categoryRow['path'] . '/%');
44
 
45
  $this->_addFilter($storeId, 'is_active', 1);
46
 
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Category extends Mage_Sitemap_Model_Mysql4_Catalog_Category
16
  {
17
  /**
41
  }
42
 
43
  $urConditions = array(
44
+ 'main_table.entity_id=ur.category_id',
45
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
46
  'ur.product_id IS NULL',
47
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
48
  );
49
  $this->_select = $this->_getWriteAdapter()->select()
50
+ ->from(array('main_table' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
51
  ->joinLeft(
52
  array('ur' => $this->getTable('core/url_rewrite')),
53
  join(' AND ', $urConditions),
54
  array('url'=>'request_path')
55
  )
56
+ ->where('main_table.path LIKE ?', $categoryRow['path'] . '/%');
57
 
58
  $this->_addFilter($storeId, 'is_active', 1);
59
 
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Mysql4/Catalog/Product.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Product extends Mage_Sitemap_Model_Mysql4_Catalog_Product
3
  {
4
  /**
@@ -19,16 +32,16 @@ class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Product extends Mage_Sitema
19
  }
20
 
21
  $urCondions = array(
22
- 'e.entity_id=ur.product_id',
23
  'ur.category_id IS NULL',
24
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
25
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
26
  );
27
  $this->_select = $this->_getWriteAdapter()->select()
28
- ->from(array('e' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
29
  ->join(
30
  array('w' => $this->getTable('catalog/product_website')),
31
- 'e.entity_id=w.product_id',
32
  array()
33
  )
34
  ->where('w.website_id=?', $store->getWebsiteId())
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Catalog_Product extends Mage_Sitemap_Model_Mysql4_Catalog_Product
16
  {
17
  /**
32
  }
33
 
34
  $urCondions = array(
35
+ 'main_table.entity_id=ur.product_id',
36
  'ur.category_id IS NULL',
37
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
38
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
39
  );
40
  $this->_select = $this->_getWriteAdapter()->select()
41
+ ->from(array('main_table' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
42
  ->join(
43
  array('w' => $this->getTable('catalog/product_website')),
44
+ 'main_table.entity_id=w.product_id',
45
  array()
46
  )
47
  ->where('w.website_id=?', $store->getWebsiteId())
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Mysql4/Cms/Page.php CHANGED
@@ -1,4 +1,16 @@
1
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Cms_Page extends Mage_Sitemap_Model_Mysql4_Cms_Page
4
  {
1
+ <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
 
15
  class Activo_Xmlsitemap_Model_Sitemap_Mysql4_Cms_Page extends Mage_Sitemap_Model_Mysql4_Cms_Page
16
  {
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Resource/Catalog/Category.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Category extends Mage_Sitemap_Model_Resource_Catalog_Category
3
  {
4
  /**
@@ -28,19 +41,19 @@ class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Category extends Mage_Sit
28
  }
29
 
30
  $urConditions = array(
31
- 'e.entity_id=ur.category_id',
32
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
33
  'ur.product_id IS NULL',
34
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
35
  );
36
  $this->_select = $this->_getWriteAdapter()->select()
37
- ->from(array('e' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
38
  ->joinLeft(
39
  array('ur' => $this->getTable('core/url_rewrite')),
40
  join(' AND ', $urConditions),
41
  array('url'=>'request_path')
42
  )
43
- ->where('e.path LIKE ?', $categoryRow['path'] . '/%');
44
 
45
  $this->_addFilter($storeId, 'is_active', 1);
46
 
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Category extends Mage_Sitemap_Model_Resource_Catalog_Category
16
  {
17
  /**
41
  }
42
 
43
  $urConditions = array(
44
+ 'main_table.entity_id=ur.category_id',
45
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
46
  'ur.product_id IS NULL',
47
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
48
  );
49
  $this->_select = $this->_getWriteAdapter()->select()
50
+ ->from(array('main_table' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
51
  ->joinLeft(
52
  array('ur' => $this->getTable('core/url_rewrite')),
53
  join(' AND ', $urConditions),
54
  array('url'=>'request_path')
55
  )
56
+ ->where('main_table.path LIKE ?', $categoryRow['path'] . '/%');
57
 
58
  $this->_addFilter($storeId, 'is_active', 1);
59
 
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Resource/Catalog/Product.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Product extends Mage_Sitemap_Model_Resource_Catalog_Product
3
  {
4
  /**
@@ -19,16 +32,16 @@ class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Product extends Mage_Site
19
  }
20
 
21
  $urCondions = array(
22
- 'e.entity_id=ur.product_id',
23
  'ur.category_id IS NULL',
24
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
25
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
26
  );
27
  $this->_select = $this->_getWriteAdapter()->select()
28
- ->from(array('e' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
29
  ->join(
30
  array('w' => $this->getTable('catalog/product_website')),
31
- 'e.entity_id=w.product_id',
32
  array()
33
  )
34
  ->where('w.website_id=?', $store->getWebsiteId())
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Catalog_Product extends Mage_Sitemap_Model_Resource_Catalog_Product
16
  {
17
  /**
32
  }
33
 
34
  $urCondions = array(
35
+ 'main_table.entity_id=ur.product_id',
36
  'ur.category_id IS NULL',
37
  $this->_getWriteAdapter()->quoteInto('ur.store_id=?', $store->getId()),
38
  $this->_getWriteAdapter()->quoteInto('ur.is_system=?', 1),
39
  );
40
  $this->_select = $this->_getWriteAdapter()->select()
41
+ ->from(array('main_table' => $this->getMainTable()), array($this->getIdFieldName(), 'created_at', 'updated_at'))
42
  ->join(
43
  array('w' => $this->getTable('catalog/product_website')),
44
+ 'main_table.entity_id=w.product_id',
45
  array()
46
  )
47
  ->where('w.website_id=?', $store->getWebsiteId())
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Resource/Cms/Page.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Cms_Page extends Mage_Sitemap_Model_Resource_Cms_Page
3
  {
4
  /**
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Resource_Cms_Page extends Mage_Sitemap_Model_Resource_Cms_Page
16
  {
17
  /**
app/code/community/Activo/Xmlsitemap/Model/Sitemap/Sitemap.php CHANGED
@@ -1,4 +1,17 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Activo_Xmlsitemap_Model_Sitemap_Sitemap extends Mage_Sitemap_Model_Sitemap
3
  {
4
  public function generateXml()
1
  <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
  class Activo_Xmlsitemap_Model_Sitemap_Sitemap extends Mage_Sitemap_Model_Sitemap
16
  {
17
  public function generateXml()
app/code/community/Activo/Xmlsitemap/etc/config.xml CHANGED
@@ -1,8 +1,22 @@
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <modules>
4
  <Activo_Xmlsitemap>
5
- <version>1.0.1</version>
6
  </Activo_Xmlsitemap>
7
  </modules>
8
  <global>
1
  <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Activo Extensions
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Activo Commercial License
9
+ * that is available through the world-wide-web at this URL:
10
+ * http://extensions.activo.com/license_professional
11
+ *
12
+ * @copyright Copyright (c) 2014 Activo Extensions (http://extensions.activo.com)
13
+ * @license OSL 3.0
14
+ */
15
+ -->
16
  <config>
17
  <modules>
18
  <Activo_Xmlsitemap>
19
+ <version>1.1.0</version>
20
  </Activo_Xmlsitemap>
21
  </modules>
22
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Activo_Xmlsitemap</name>
4
- <version>1.0.1</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>Generate a better XML Sitemap and improve your site's SEO.</summary>
10
  <description>Generate a better XML sitemap: fixes the &lt;lastmod&gt; value in Magento XML sitemaps to the correct one.</description>
11
- <notes>Minor enhancements. Creates properly defined XML sitemap files.</notes>
12
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
13
- <date>2013-06-26</date>
14
- <time>23:22:26</time>
15
- <contents><target name="magecommunity"><dir name="Activo"><dir name="Xmlsitemap"><dir><dir name="Helper"><file name="Data.php" hash="7e9a738bbd9ee44ae6b4231b9f625a41"/></dir><dir name="Model"><file name="Feed.php" hash="be4d359d97b82c912093b093e1d8d307"/><dir name="Sitemap"><dir name="Mysql4"><dir name="Catalog"><file name="Category.php" hash="ff51e0f3c73ad3f49d7f2782ee87d8ef"/><file name="Product.php" hash="6f733786f8bdb588abf2bc458ed16f17"/></dir><dir name="Cms"><file name="Page.php" hash="ff7d48656992bbf15d170ce90cc32629"/></dir></dir><dir name="Resource"><dir name="Catalog"><file name="Category.php" hash="41b7efe21c8a8be7a3b08218a49d7a79"/><file name="Product.php" hash="9da077cb52bc186c11076b9464958b94"/></dir><dir name="Cms"><file name="Page.php" hash="333c87e0ba89c95e18ac90c931371c71"/></dir></dir><file name="Sitemap.php" hash="0a2f094cbe15056326ef530d695acec6"/></dir></dir><dir name="etc"><file name="config.xml" hash="8d00f7345311e6294b41f48ce40e2e99"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Xmlsitemap.xml" hash="b8dc0f955faf0d7a767e5872aecef632"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Activo_Xmlsitemap</name>
4
+ <version>1.1.0</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>Generate a better XML Sitemap and improve your site's SEO.</summary>
10
  <description>Generate a better XML sitemap: fixes the &lt;lastmod&gt; value in Magento XML sitemaps to the correct one.</description>
11
+ <notes>Fixed compatibility issue with Magento CE 1.8 &amp; 1.9.</notes>
12
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
13
+ <date>2014-06-15</date>
14
+ <time>05:36:10</time>
15
+ <contents><target name="magecommunity"><dir name="Activo"><dir name="Xmlsitemap"><dir><dir name="Helper"><file name="Data.php" hash="a142e60394f85a7ca85fa187ffe6f07d"/></dir><dir name="Model"><file name="Feed.php" hash="17bb2c5770b2c27c7919412790a3365c"/><dir name="Sitemap"><dir name="Mysql4"><dir name="Catalog"><file name="Category.php" hash="c8f4d644533f036df84b93019f23db85"/><file name="Product.php" hash="890c7ce9344d45c79ded8907f4878db4"/></dir><dir name="Cms"><file name="Page.php" hash="42ec1a36296ee1a246433079ef14ef49"/></dir></dir><dir name="Resource"><dir name="Catalog"><file name="Category.php" hash="118dfe14024cfbd4dfe9a7534286d09e"/><file name="Product.php" hash="956b5c082f98e73446a19864f5e5083f"/></dir><dir name="Cms"><file name="Page.php" hash="d115217aeabb45d5cf9cf68d1298c48f"/></dir></dir><file name="Sitemap.php" hash="050b2d76aa297b312672447fcf91b260"/></dir></dir><dir name="etc"><file name="config.xml" hash="afa24198b3cea702a7dd178d6fcc6c87"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Xmlsitemap.xml" hash="b8dc0f955faf0d7a767e5872aecef632"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>