Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Google XML Sitemap for XC SEO
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 01-29-2008, 12:47 PM
  Qdox's Avatar 
Qdox Qdox is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 57
 

Default Google XML Sitemap for XC SEO

Thanks to the Jon Langevin effort I've created a small mod that will create you a Google Sitemap of all your products for XC SEO.
You can use this when the XML Sitemap generator takes a long time, like myself since I have more than 36k products.

Just copy the file to your root folder and run it manually. It will create the links on the fly, which later you can save it and import it to Google Webmaster.

Uploaded V.2.0
Enjoy it!
Attached Files
File Type: php gxcseo_sitemap.php (2.1 KB, 161 views)
__________________
QdoxGroup
X-Cart version 4.1.8 Pro
HandsOnWebHosting.
Web server Apache/2.0.52 (Red Hat)
http://www.justinthenet.com/
Reply With Quote
  #2  
Old 02-04-2008, 08:09 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: Google XML Sitemap for XC SEO

nice job qdox
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #3  
Old 02-05-2008, 07:17 PM
  Qdox's Avatar 
Qdox Qdox is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 57
 

Default Re: Google XML Sitemap for XC SEO

Quote:
Originally Posted by intel352
nice job qdox

Jon,
Need your help. After reading seo articles realize that the categories must be included, however it is not rewriting correctly for the categories only.
Would please take a look at the updated version above and let me know.
Thanks
__________________
QdoxGroup
X-Cart version 4.1.8 Pro
HandsOnWebHosting.
Web server Apache/2.0.52 (Red Hat)
http://www.justinthenet.com/
Reply With Quote
  #4  
Old 02-06-2008, 06:01 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: Google XML Sitemap for XC SEO

hey qdox, what's occurring/breaking when it runs?

something easier (imho) that would support any SEO mod, would be to put all of the XML stuff in a TPL file. I've actually written a google sitemap before, based on my XCSEO Sitemap for customers. I pretty much just stripped out anything that wasn't needed, added in the Google XML stuff, and then modified .htaccess to make the php file appear as an XML file

by using smarty (the TPL file), that means most SEO mods would rewrite the links on their own, so you wouldn't have to hardcode anything

cheers
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #5  
Old 03-28-2008, 04:18 AM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Google XML Sitemap for XC SEO

Hi there, I'm curious if you fixed your issue with generating categories?

Thanks,
Robert

Quote:
Originally Posted by Qdox
Jon,
Need your help. After reading seo articles realize that the categories must be included, however it is not rewriting correctly for the categories only.
Would please take a look at the updated version above and let me know.
Thanks
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #6  
Old 03-28-2008, 04:29 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: Google XML Sitemap for XC SEO

QDox found a solution after speaking with me via PM. it turned out the callback to XC SEO wasn't passing the categoryid, we fixed that.

Cheers.
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #7  
Old 03-28-2008, 05:19 PM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Google XML Sitemap for XC SEO

It doesn't appear to be working right unless there's another version to download somewhere.

Quote:
Originally Posted by intel352
QDox found a solution after speaking with me via PM. it turned out the callback to XC SEO wasn't passing the categoryid, we fixed that.

Cheers.
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #8  
Old 03-29-2008, 04:51 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: Google XML Sitemap for XC SEO

I believe he coded this specifically for use with XC SEO, do you have XC SEO installed?
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #9  
Old 03-29-2008, 04:52 AM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Google XML Sitemap for XC SEO

Quote:
Originally Posted by intel352
I believe he coded this specifically for use with XC SEO, do you have XC SEO installed?

Yup, you installed it for me Check your email.
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #10  
Old 08-11-2008, 06:26 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: Google XML Sitemap for XC SEO

Download doesn't have the Category fix, so this is how to fix it:

Find
Code:
$rowValue = $http_location ."/". $seo->_category_callback(array("home.php?cat=".$sitemap_category['categoryid'],false,'','categoryid='.$sitemap_category[''categoryid'],'',''), true, $sitemap_category['category']);

Change to:
Code:
$rowValue = $http_location ."/". $seo->_category_callback(array("home.php?cat=".$sitemap_category['categoryid'],false,'','cat='.$sitemap_category[''categoryid'],'',''), true, $sitemap_category['category']);

Notice that I changed one of categoryid to cat.

---

On another note, the coding has a limit of 100 products
find the LIMIT 100 and remove it to let it have access to all your products.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:37 AM.

   

 
X-Cart forums © 2001-2018