Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google XML Sitemap SEO


Jack_mcs

Recommended Posts

Hi Jack,

 

I'm currently testing your wonderful v1.4, it is running smoothly right now.

 

But one point is bugging me a bit:

I have two languages in my shop, but only the default language is included in the xml file.

As you stated earlier here, its not a bug, its a feature.

 

But is it possible anyway to switch the whole xml creation to another language without changing the default language in osC ?

 

Thanks in advance,

Regards

Andreas

Link to comment
Share on other sites

But is it possible anyway to switch the whole xml creation to another language without changing the default language in osC ?

This was discussed pervisously and, as I recall, the person wanting the option found a solution so you may want to look back through the thread.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I'll keep on reading through the whole thread.

 

But with that change, it was possible to manually create different language-sitemaps (by copying/renaming the files of first run etc.).

 

Can you give me a hint, where the output-process is in your files?

What I mean:

I want to rename the filename "sitemapproduct" to "sitemapproducts_english" etc.

but I didn't found the place, where this placed.

 

I found the function "SaveFile" in the "sitemap.class.php". Maybe, this is the right place?

Whats your opinion on changing line 329 and 342

$filename .= '.xml.gz';
$filename .= '.xml';

to that ??

$filename .= '_english.xml.gz';
$filename .= '_english.xml';

 

In a second step, the given URL-parameter can change the filename between the languages (_english, _espanol, _german....).

 

 

Thanks in advance.

Regards

Andreas

Link to comment
Share on other sites

Alright, I guess, you mean that posting here ?!

 

And another silly question:

Do I have to submit all xml-sitemap-files beneath the sitemap-index ?

The index lists of the other sitemap files. All that you list should be added to your google sitemap account.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack

 

Have installed and run the contribution although get the following error:

ERROR: Google Product Sitemap Generation FAILED!

 

ERROR: Google Category Sitemap Generation FAILED!

 

Generated Google Sitemap Index Successfully

 

 

So I changed the settings to Alternate, but it still produced errors. I turned on diagnostic output and have pasted the contents below.

 

Thanks,

Opening   /sitemapproducts.xml
FS_CAT    /home/manicpan/public_html/
Server    http://www.manicpanichairdye.com
Save Path /
WS_CAT    / 


Warning:  fopen(/sitemapproducts.xml) [function.fopen]: failed to open stream: Permission denied in /home/manicpan/public_html/googlesitemap/sitemap.class_Alternate.php on line 354

ERROR: Google Product Sitemap Generation FAILED!

Opening   /sitemapcategories.xml
FS_CAT    /home/manicpan/public_html/
Server    http://www.manicpanichairdye.com
Save Path /
WS_CAT    / 


Warning:  fopen(/sitemapcategories.xml) [function.fopen]: failed to open stream: Permission denied in /home/manicpan/public_html/googlesitemap/sitemap.class_Alternate.php on line 354

ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemapindex.xml
FS_CAT    /home/manicpan/public_html/
Server    http://www.manicpanichairdye.com
Save Path /
WS_CAT    / 


Warning:  fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/manicpan/public_html/googlesitemap/sitemap.class_Alternate.php on line 354

ERROR: Google Sitemap Index Generation FAILED!

Array
(
   [QUERY] => Array
       (
           [PRODUCTS] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 8
               )

           [CATEOGRY] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 5
               )

       )

   [sAVE_FILE_XML] => Array
       (
           [0] => Array
               (
                   [file] => /sitemapproducts.xml
                   [status] => failure
                   [file_exists] => false
               )

           [1] => Array
               (
                   [file] => /sitemapcategories.xml
                   [status] => failure
                   [file_exists] => false
               )

           [2] => Array
               (
                   [file] => /sitemapindex.xml
                   [status] => failure
                   [file_exists] => false
               )

       )

)

Link to comment
Share on other sites

Opening /sitemapproducts.xml

FS_CAT /home/manicpan/public_html/

Both of the above are incorrect which would indicate a problem with your configure file. If you post it here, minus the database details, I will take a look at it.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Both of the above are incorrect which would indicate a problem with your configure file. If you post it here, minus the database details, I will take a look at it.

 

My shop is currently just a test site, although everything else is working well at the moment.

 

 define('HTTP_SERVER', 'http://www.manicpanichairdye.com');
 define('HTTPS_SERVER', 'https://www.manicpanichairdye.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', '.manicpanichairdye.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.manicpanichairdye.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/manicpan/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

My shop is currently just a test site, although everything else is working well at the moment.

 

 define('HTTP_COOKIE_DOMAIN', '.manicpanichairdye.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.manicpanichairdye.com');

The above are incorrect and should be

  define('HTTP_COOKIE_DOMAIN', '.www.manicpanichairdye.com');  
  define('HTTPS_COOKIE_DOMAIN', '.www.manicpanichairdye.com');

I don't think they will cause the problem you are having but they should be fixed first.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks, have corrected my configure.php

Just confirming that I'm still getting the same error.

What's the output of the diagnostic is you use the standard option?

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Am not sure where I need to ask for help on this issue. I have your Google XML sitemap SEO installed on my store. First of all, I am having no problems with this mod. Other day, I added sysCheck.

 

When I ran sysCheck, these files plus the image directory were listed under Files with incorrect permissions.

sitemapcategories.xml

sitemapmanufacturers.xml

sitemapproducts.xml

sitemapspecials.xml

 

Now the instructions for Google XML states the permission for these files should be the same as the image directory. Which I have set at 755.

 

But sysCheck is telling me that 755 is an incorrect permission. So with no answere for sysCheck yet, I thought to ask you.

Link to comment
Share on other sites

Now the instructions for Google XML states the permission for these files should be the same as the image directory. Which I have set at 755.

The permissions settings are correct for those files.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

What's the output of the diagnostic is you use the standard option?

 

ERROR: Google Product Sitemap Generation FAILED!

ERROR: Google Category Sitemap Generation FAILED!

Generated Google Sitemap Index Successfully

Array
(
   [QUERY] => Array
       (
           [PRODUCTS] => Array
               (
                   [sTATUS] => false
                   [NUM_ROWS] => 0
               )

           [CATEOGRY] => Array
               (
                   [sTATUS] => false
                   [NUM_ROWS] => 0
               )

       )

   [sAVE_FILE_XML] => Array
       (
           [0] => Array
               (
                   [file] => /home/manicpan/public_html/sitemapindex.xml
                   [status] => success
                   [file_exists] => true
               )

       )

)

Link to comment
Share on other sites

ERROR: Google Product Sitemap Generation FAILED!

 

ERROR: Google Category Sitemap Generation FAILED!

 

Generated Google Sitemap Index Successfully

No, that's the result of the standard option. You have to enable the dianostic. It will display as before. Before you check that though, are you sure the permissions on the sitemap files are set correctly?

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

No, that's the result of the standard option. You have to enable the dianostic. It will display as before. Before you check that though, are you sure the permissions on the sitemap files are set correctly?

 

Yes, permissions are 755 on the sitemap files, same as my image directory.

 

I have enabled the diagnostic output in standard mode and after the FAILED messages this is still the information I get:

 

Array
(
   [QUERY] => Array
       (
           [PRODUCTS] => Array
               (
                   [sTATUS] => false
                   [NUM_ROWS] => 0
               )

           [CATEOGRY] => Array
               (
                   [sTATUS] => false
                   [NUM_ROWS] => 0
               )

       )

   [sAVE_FILE_XML] => Array
       (
           [0] => Array
               (
                   [file] => /home/manicpan/public_html/sitemapindex.xml
                   [status] => success
                   [file_exists] => true
               )

       )

)

Link to comment
Share on other sites

I have enabled the diagnostic output in standard mode and after the FAILED messages this is still the information I get:

Then something is wrong with your installation since the diagnostic should display for either method of diskplay.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It's what the original contribution used and was named that way, probably, because having index in the name better describes the contents of the file. Plus, see this.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack,

all sitemaps work, except the product sitemap:

 

ERROR: Google Product Sitemap Generation FAILED!

Array
(
   [QUERY] => Array
       (
           [PRODUCTS] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 0
               )

           [CATEOGRY] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 23
               )

           [MANUFACTURERS] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 133
               )

           [sPECIALS] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 0
               )

       )

 

What can I provide you ? Thanks a lot

Mario

Link to comment
Share on other sites

Hello Jack

 

thank you for this great addon!

 

i installed everything and tried out. I get a "success" on every xml file and checked the data. The URL's seems to be fine. But they are in standard form, not in SEO optimized URL form.

 

example:

i have this in the xml file:

http://www.backyard-racing.ch/shop/product_info.php?products_id=4290

 

but i have this url when i follow the link, which i think is better:

http://www.backyard-racing.ch/shop/product_info.php?pName=dandee-tshirt-hardrideflash-blau-s&cName=freizeitbekleidung-tshirts

 

Now, does this make any difference how google accepts and rates the links in the sitemap? If yes, how can i try to generate xml files with SEO optimized URL output?

 

Last Question: which file do i have to link in google webmastertool? is it ok to link to sitemapindex.xml? Or is it better to link each sitemapproducts, sitemapcategories etc separately?

 

Thank you very much!

Regards

Oliver

Edited by BackyardRacing
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...