X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Google XML Sitemap for XC SEO (https://forum.x-cart.com/showthread.php?t=37135)

Qdox 01-29-2008 12:47 PM

Google XML Sitemap for XC SEO
 
1 Attachment(s)
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!

intel352 02-04-2008 08:09 AM

Re: Google XML Sitemap for XC SEO
 
nice job qdox ;-)

Qdox 02-05-2008 07:17 PM

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

intel352 02-06-2008 06:01 AM

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

canuck 03-28-2008 04:18 AM

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


intel352 03-28-2008 04:29 AM

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.

canuck 03-28-2008 05:19 PM

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.


intel352 03-29-2008 04:51 AM

Re: Google XML Sitemap for XC SEO
 
I believe he coded this specifically for use with XC SEO, do you have XC SEO installed?

canuck 03-29-2008 04:52 AM

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.

carlisleglass 08-11-2008 06:26 AM

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.


All times are GMT -8. The time now is 12:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.