s06e02 - XML Sitemaps SUPPORT / QUESTIONS

Open to all! Ask other shopowners for help.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s06e02 - XML Sitemaps

Post by ecartz »

Also change the XML on line 95 of includes/system/override/gb/xml_writer.php to sitemap. Along with all the XML_ stuff.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: s06e02 - XML Sitemaps

Post by artfulweb »

ecartz wrote: Fri Jul 08, 2022 4:21 pm Also change the XML on line 95 of includes/system/override/gb/xml_writer.php to sitemap. Along with all the XML_ stuff.
Thanks Matt, did that and the maps are generated but as sitemap_categories_1.xml. Why the underscore and the "1"?
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s06e02 - XML Sitemaps

Post by Omar_one »

artfulweb wrote: Fri Jul 08, 2022 4:36 pm
ecartz wrote: Fri Jul 08, 2022 4:21 pm Also change the XML on line 95 of includes/system/override/gb/xml_writer.php to sitemap. Along with all the XML_ stuff.
Thanks Matt, did that and the maps are generated but as sitemap_categories_1.xml. Why the underscore and the "1"?
for the underscore
change line to 97 in includes/system/override/gb/xml_writer.php
to

Code: Select all

$doc->save(DIR_FS_CATALOG . implode('', $filename) . '.xml');
just delete the underscore
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s06e02 - XML Sitemaps

Post by Omar_one »

the "1" it's come from the same file line 16

Code: Select all

$n = 1;
and line 95

Code: Select all

$filename = ['sitemap', $what, $n];
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: s06e02 - XML Sitemaps

Post by artfulweb »

Oh the little devil! Missed that. So now why the "1" at the end? Where does it pick that up?
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s06e02 - XML Sitemaps

Post by burt »

artfulweb wrote: Fri Jul 08, 2022 5:17 pm Oh the little devil! Missed that. So now why the "1" at the end? Where does it pick that up?
You need multiple sitemaps if the number of items in the sitemap exceeds a certain number (I can't remember the number off the top of my head).
I am not here to build for you.
I am here to build with you. Let's help each other.
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: s06e02 - XML Sitemaps

Post by artfulweb »

burt wrote: Fri Jul 08, 2022 6:11 pm
artfulweb wrote: Fri Jul 08, 2022 5:17 pm Oh the little devil! Missed that. So now why the "1" at the end? Where does it pick that up?
You need multiple sitemaps if the number of items in the sitemap exceeds a certain number (I can't remember the number off the top of my head).
Does that create a problem for Google? Also I noticed that when using the great addon Name Based URLs the sitemaps do not use them, whereas the old Google Sitemaps do as an example :

<url>
<loc>https://www.xxx.com/lang-yarns-merino-2 ... .html</loc>
<lastmod>2022-07-04</lastmod>
<changefreq>weekly</changefreq>
<priority>0.1</priority>
</url>

Something maybe to add on to this module?
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s06e02 - XML Sitemaps

Post by burt »

Multiple sitemaps is a benefit to Google. It is what they ask for.

If a URL addon does not work with another addon (yet the other addon is correctly using tep_href or the newer Links), it is the URL addon that is broken and needs updating..
I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: s06e02 - XML Sitemaps

Post by raiwa »

I see these warnings under PHP 8.0 in admin/index.php?action=do_XML:

Code: Select all

Warning: Undefined property: xml_tree::$breadcrumb_usage in C:\xampp_8.0\htdocs\phoenix_pro\includes\system\override\gb\xml_tree.php on line 41

Warning: Undefined property: xml_tree::$max_level in C:\xampp_8.0\htdocs\phoenix_pro\includes\system\override\gb\xml_tree.php on line 51

Warning: Undefined property: xml_tree::$max_level in C:\xampp_8.0\htdocs\phoenix_pro\includes\system\override\gb\xml_tree.php on line 51

Warning: Undefined property: xml_tree::$breadcrumb_usage in C:\xampp_8.0\htdocs\phoenix_pro\includes\system\override\gb\xml_tree.php on line 41
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Needleguy

s06e02 XML Site Maps

Post by Needleguy »

Is it possible to change the URL to sitemaps and remove the word "shop". I would like the sitemat to be:

https://***.com/sitemap.html or xml.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply