Contributions

Other (Category Index)
Search: 

Google XML Sitemap w/ Admin

This is a variation of Chemo's Google XML Sitemap Feed contribution, with the addition of some nice extras.

I specifically customized this set for those of you not using his Ultimate SEO contribution, but ARE using the default oscommerce search engine friendly URL's turned on, or a variation of the tep_html_link fuction in the /includes/functions/html_output.php page. The original contribution did not accomodate for these.

This is the full package with the addition of nice admin tools for easy access.

Anyone wanting to still use the default version, simply delete the /googlesitemaps/index.php and replace with the page called index.php.backup

You can alternatively also open the admin-install.htm and admin files to use just the admin tools with his contribution.

Full credit goes to CHEMO for the original contribution which this was based upon.

Enjoy.

Expand All / Collapse All

Some solution if you get errors like below, not full package 18 Jul 2009

This is some solution if you get errors like below, just instruction how to fix some problems, not full package, at first i cant install this addon, but at least i got this solution





If you get error like this :

-------------------------------------------------

ERROR: Google Product Sitemap Generation FAILED!

ERROR: Google Category Sitemap Generation FAILED!

ERROR: Google Sitemap Index Generation FAILED!

Array
(
[QUERY] => Array
(
[PRODUCTS] => Array
(
[STATUS] => success
[NUM_ROWS] => 4
)

[CATEOGRY] => Array
(
[STATUS] => success
[NUM_ROWS] => 3
)

)

[SAVE_FILE_XML] => Array
(
[0] => Array
(
[file] => /home/accountname/public_html//sitemapproducts.xml
[status] => failure
[file_exists] => true
)

[1] => Array
(
[file] => /home/accountname/public_html//sitemapcategories.xml
[status] => failure
[file_exists] => true
)

[2] => Array
(
[file] => /home/accountname/public_html//sitemapindex.xml
[status] => failure
[file_exists] => true
)

)

)

-------------------------------------------------




This error means it cant create new xml files, so you must add it manually, use below solution steps

The solution is :
- Create 3 new empty files, name them sitemapproducts.xml , sitemapcategories.xml , sitemapindex.xml (i give these 3 xml empty files in this package too so you can use it too)
- upload them to your oscommerce root
- chmod them all to 777
- go to your admin --> Google SiteMaps --> click create / update your site map
- if all working fine this step, its should say CONGRATULATIONS! All files generated successfully


- if it still not, and specially if you have the oscommerce installed in domain.com instead domain.com/catalog/ follow more below



- open catalog/sitemap.class.php file
- find this line

$filename = $this->savepath . '/' . $this->filename . $type;

- change to this line

$filename = $this->savepath . $this->filename . $type;

- it will remove extra slash in the generation like you saw in error message above, thanks for deliciousmint in forum http://forums.oscommerce.com/index.php?showtopic=199162&view=findpost&p=1227084



working sitemap_index.php file 11 Apr 2008
Google XML Sitemap - Admin 2.2 PL 25 Feb 2008
Türkçe google sitemap düzeltme 29 Jun 2007
Türkce Google Sitemap! 7 May 2007
POLISH VERSION - Only One language file 9 Apr 2007
Google XML Sitemap - Admin 2.2 + Better README 22 Mar 2007
support thread 7 Mar 2007
Glob() fix and xml style improvement 7 Mar 2007
Full Package 2.1 including german translation 18 Dec 2006
Google XML Sitemap - Admin 2.1b 12 Oct 2006
Google XML Sitemap - Admin 2.1 12 Jul 2006
Google XML Sitemap w/ Admin + Spanish Instructions and files 10 Jun 2006
to add French translation - ajout de la traduction Francaise 4 Jun 2006
Google XML w/ corrected install 4 Apr 2006
Multi languages Page submit 3 Apr 2006
Version 2.0 fixed procedure of installation 6 Mar 2006
Google XML Sitemap + Admin 2.0 2 Mar 2006
Google XML Sitemap w/ Admin 12 Aug 2005

Note: Contributions are used at own risk.