I have used the fileset in the plugins 4.5.2 and merged my changes for PHP7.
Available now on Github for testing: https://github.com/torvista/CEON-URI-Mapping
I have used the fileset in the plugins 4.5.2 and merged my changes for PHP7.
Available now on Github for testing: https://github.com/torvista/CEON-URI-Mapping
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Steve !!! You are a wizard Thank you owe an granita coffee. I confirm works with that Zen cart 1.5.4 1.5.5a
Giovanni,
Zen Cart V2.1
Bugfix
When all site is SSL using these settings on config.php:
define('HTTP_SERVER', 'https://YOURSITE...
and
define('ENABLE_SSL', 'false'); yes, that DOES says false as per
https://www.zen-cart.com/showthread....91#post1311391
customer is unable to log in with Chrome (but Firefox yes). An issue with cookie setting/handling.
Merged changes in html_output.php ZC155 to make the relevant section identical (including formatting, for future comparisons).
Available in Github.
https://github.com/torvista/CEON-URI-Mapping
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
"Our URI Mappings Manager software has the ability to auto-generate URI mappings for all/selected Categories/Products/Manufacturers/EZ-Pages/Other Zen Cart Pages at once."
Without this auto-generate mapping script this plugin is useless for me and it was a waist of time to install the uri mapping seo plugin.
Although there is some chat about an auto-generate script what have to be implanted in an admin file ??
maybe somebody will explain how to get this autoscript to work
I use this mod and it does automatically create the URI link. When you upload all the files and do all that it tells you to do in the read me, you go to admin/configuration and look down the list for the mod, set it to 1 to turn it on.
Then go to admin/modules and make sure you set things in there too. It will give you a "script" to then add to the top of your .htaccess file in the main directory of your server....public_html or what ever yours is called.
The only thing to remember is if you should change the name later on of the product then check the little box at the bottom of the product page before hitting the preview button or it will not change it.
Multilanguage Stores using the hreflang tag.
Zen Cart 1.55a
in templates/YOUR_TEMPLATE/common/html_header.php
we have
In a vanilla ZC site there is always a parameter in the canonical url so the ADDITIONAL language parameter can be separated with a "&":Code:<?php // BOF hreflang for multilingual sites if (!isset($lng) || (isset($lng) && !is_object($lng))) { $lng = new language; } reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { if ($value['id'] == $_SESSION['languages_id']) continue; echo '<link rel="alternate" href="' . ($this_is_home_page ? zen_href_link(FILENAME_DEFAULT, 'language=' . $key, $request_type) : $canonicalLink . '&language=' . $key) . '" hreflang="' . $key . '" />' . "\n"; } // EOF hreflang for multilingual sites ?>
www.site.com/link?parameter&language=es
With CEON URI Mapping there is no parameter so the language tag should be separated with a "?" or you get 404 not found errors being reported in Webmaster Tools.
I made this change. Note this includes the bug change as reported here:
https://www.zen-cart.com/showthread....42#post1319742
Code:<?php // BOF hreflang for multilingual sites if (!isset($lng) || (isset($lng) && !is_object($lng))) { $lng = new language; } //steve bof CEON uri mapping //CEON uri mapping produces a canonical link with no extra parameters: so no "?" after the url. //To create the alternate urls for hreflang use, for all pages (apart from the home page), '&language=' is appended to the canonical url. This gets a page not found (in the Google Search Console) as the "&" needs to be a "?" as there are no other parameters. //Since the $canonicalLink is already created, it needs to be checked for the presence of a "?". If so, ok, if not use the "?" instead of "&". $url_parts = parse_url($canonicalLink); $separator = ( isset($url_parts['query']) ? "&" : "?" ); //eof reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { //if ($value['id'] == $_SESSION['languages_id']) continue;//steve a self-link is also required https://www.zen-cart.com/showthread.php?214746-Implementing-hreflang-in-a-multilanguage-store&p=1319742#post1319742 //echo '<link rel="alternate" href="' . ($this_is_home_page ? zen_href_link(FILENAME_DEFAULT, 'language=' . $key, $request_type) : $canonicalLink . '&language=' . $key) . '" hreflang="' . $key . '" />' . "\n"; echo '<link rel="alternate" href="' . ($this_is_home_page ? zen_href_link(FILENAME_DEFAULT, 'language=' . $key, $request_type) : $canonicalLink . $separator . 'language=' . $key) . '" hreflang="' . $key . '" />' . "\n";//steve changed separator } // EOF hreflang for multilingual sites //steve eof CEON uri mapping ?>
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Hi, I am really confused about getting my genres setup for uri mapping. Everything else went smoothly but I have no idea how to configure my zen cart to map the genres. I did a search in your forum for "genre" and there is nothing. I tried copying your sample tpl_music_genres_select to my template directory with no luck and now I'm out of things to try. Any advice is appreciated.
Hi picandnix, I've setup all of my inventory and categories with no problems but the genres do not have this option. Go into a category, save it, and CEON shows that the re-write has been completed but you can't do this with genres. I'm trying to figure out if there's a way I can do a rewrite with something like this:
http://cheapsongbooks.com/index.php?...sic_genre_id=2
This is how the genre is currently shown for my jazz songbooks... I'd like to change it to something like: http://cheapsongbooks.com/jazz
I have 10 genres and am willing to change them manually if necessary.. only program is I'm not a programmer.
Thx
Hi Guys,
Can anyone help?
I have a problem when both CEON URI and Sitemap XML are enabled:
Sitemap XML returns "page not found" when I clik "Force rebuild all sitemap*.xml files! and Pinging Search Engine".
When I disable CEON URI, and do the task again it works, the confirmation page for rebuilding xml files and search engines ping shows up.
XML files seem to updated but no confirmation page is shown after, only page not found when CEON is ON.
This is how the link appears when the page not found shows up: (http://www.mydomain/sitemap-xml&rebuild=yes&ping=yes&)
Zen Cart V1.5.1,
Sitemap v3.6 26.04.2016 10:33:09
CEON URI - 4.5.1
Thank you!
Bookmarks