FWIW, I just installed Sitemap XML 3.9.5 and USU 3.0.0-beta3 on an Edit Orders/zc155f test site (w/ demo products) and I'm happy to report that the USU-generated links are used for the sitemap-generated files.
Here's, for example, the contents of the manufacturers' one:
Code:<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="/zc155feo/includes/templates/template_default/css/gss.xsl"?> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <!-- generator="Zen-Cart SitemapXML" 3.9.5 --> <!-- sitemapmanufacturers.xml created at 2019-02-23 08:38:45 --> <url> <loc>http://localhost/zc155feo/matrox-m-1.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>1.00</priority> </url> <url> <loc>http://localhost/zc155feo/microsoft-m-2.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.89</priority> </url> <url> <loc>http://localhost/zc155feo/warner-m-3.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.78</priority> </url> <url> <loc>http://localhost/zc155feo/fox-m-4.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.67</priority> </url> <url> <loc>http://localhost/zc155feo/logitech-m-5.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.56</priority> </url> <url> <loc>http://localhost/zc155feo/canon-m-6.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.44</priority> </url> <url> <loc>http://localhost/zc155feo/sierra-m-7.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.33</priority> </url> <url> <loc>http://localhost/zc155feo/gt-interactive-m-8.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.22</priority> </url> <url> <loc>http://localhost/zc155feo/hewlett-packard-m-9.html</loc> <lastmod>2003-12-23</lastmod> <changefreq>weekly</changefreq> <priority>0.11</priority> </url> </urlset>
1) I started with completely fresh install script
2) Loaded the original usu-3.0.0-beta2 (this version has the known issue of not working correctly when "Enable Automatic Redirects" is set to TRUE) Install successful
3) Went to Admin -> Catalog/Products
4) Selected a Category
5) Was given the message "
Well, I had a ton of information on there that got lost.... basically there is a bug in /includes/classes/usu.php
change:
$check = $GLOBALS['db']->Execute(
"SELECT pt.products_type
to:
$check = $GLOBALS['db']->Execute(
"SELECT p.products_type
And you will not get the error message I tried to post.
#10 zen_catalog_href_link() called at [/home/com/public_html/site/admin/category_product_listing.php:861]
--> PHP Fatal error: 1054:Unknown column 'pt.products_type' in 'field list' :: SELECT pt.products_type
FROM product_types pt
INNER JOIN products p
ON p.products_id = pt.type_id
WHERE pt.type_id = 35259
LIMIT 1 ==> (as called by) /home/com/public_html/site/includes/classes/usu.php on line 457 <== in /home/com/public_html/site/includes/classes/db/mysql/query_factory.php on line 171.
Was there a quick and simple fix for the Enable Automatic Redirects that I could make on this version of my code?
Okay, got the usu-3.0.0-beta3 and moved over and everything works fine.... you had already fixed that issue.
Thank you!
Actually, that function should be changed as follows (GitHub issue: https://github.com/lat9/usu/issues/15):
The change needed for the automatic redirects is already "baked into" USU v3.0.0-beta3.Code:protected function getInfoPage($products_id) { // ----- // Quick return if the zen_get_info_page function exists, noting that when // run in the zc156 and earlier admin that it isn't! // if (function_exists('zen_get_info_page')) { return zen_get_info_page($products_id); } // ----- // If the function doesn't exist, emulate its output. // $check = $GLOBALS['db']->Execute( "SELECT pt.type_handler FROM " . TABLE_PRODUCTS . " p INNER JOIN " . TABLE_PRODUCT_TYPES . " pt ON pt.type_id = p.products_type WHERE p.products_id = " . (int)$products_id . " LIMIT 1" ); return ($check->EOF) ? 'product_info' : ($check->fields['type_handler'] . '_info'); }
v3.0.0-beta4 is now available for testing: https://github.com/lat9/usu/releases/tag/v3.0.0-beta4
Bookmarks