piernas Posted January 31, 2017 Share Posted January 31, 2017 Just uploaded a new version. this one has support for hreflang tags in header and real support for localized URLs with product/manufacturer/category descriptions in the correct language (no more 301 redirects). It would be great if someone with several langugaes installed could test it. Please give me feedback on any faults if something needs to be fixed. R2.08 (january 2017):--------------------------- Now the multi-language support works without 301 redirects! Correct descriptions applied to URLs (also on sitemaps).- New box and navbar modules for multi-language support.- New hreflang tags module for header.- Added Class for setting the different multilanguage variables (used by boxes, navbar and header tags modules)- Checks in configuration setup for memcache and sqlite- Some more fixes from the forum thread added. http://addons.oscommerce.com/info/9544 Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted February 1, 2017 Share Posted February 1, 2017 (edited) Hola Juanma @@piernas, Thank you for this great contribution. I checked your new version and found the following:- the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags - the hreflang tags should show always all languages, also the actual language:https://support.google.com/webmasters/answer/189077?hl=en"If you have multiple language versions of a URL, each language page must identify all language versions, including itself. For example, if your site provides content in French, English, and Spanish, the Spanish version must include a rel="alternate" hreflang="x" link for itself in addition to links to the French and English versions. Similarly, the English and French versions must each include the same references to the French, English, and Spanish versions." - the character conversion directory is wrong placed, it should be inside the "includes" directory:includes/modules/ultimate_seo_urls5/includes/character_conversion/and not:includes/modules/ultimate_seo_urls5/character_conversion/ - the "character_conversion_pack" directory in "extras" is empty, it could be removed to avoid confusion - The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files: includes/functions/html_output.php admin/categories.php - for the add-on: "Twitter Typeahead Autocomplete Search":http://addons.oscommerce.com/info/9351the search result suggestions and links show always for the default language, not the actual selected language - there may be incompatibilities for other add-ons too - it might be good to add support for the old, unmodularized navbar (not so important) rgds Rainer Edited February 1, 2017 by raiwa Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
piernas Posted February 1, 2017 Share Posted February 1, 2017 Hi @@raiwa and thanks for your feedback. - the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags This is working fine here. What rewrite method have you used? - the hreflang tags should show always all languages, also the actual language: Thanks for the point, I've read somewhere else that the current language should not be there because it's an alternate. I'll dig on it. - the character conversion directory is wrong placed, it should be inside the "includes" directory: the "character_conversion_pack" directory in "extras" is empty, it could be removed to avoid confusion You're right, I misplaced it! Will fix it on next release - The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files: Suppose its because I must have already replaced all occurrences of filenames, database files, superglobals etc... isn't that? for the add-on: "Twitter Typeahead Autocomplete Search":http://addons.oscommerce.com/info/9351the search result suggestions and links show always for the default language, not the actual selected language I cannot currently test it because on my test server something else has broken that addon. Will look at it as soon as I can fix it! Quote Link to comment Share on other sites More sharing options...
piernas Posted February 2, 2017 Share Posted February 2, 2017 Update: I found where the problem with typeahead search resides. Now I need to figure out how to solve it :) Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted February 2, 2017 Share Posted February 2, 2017 (edited) Hola Juanma @@piernas, - the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags Its the same with all 4 URL formats.Example demostore:<link rel="alternate" hreflang="es" href="http://localhost/BS_edge_2017_01_01/es/hardware-mice-c-1_9.html" />should be:http://localhost/BS_edge_2017_01_01/es/hierro-ratnes-c-1_9.htmlExample real store:<link rel="alternate" hreflang="en" href="http://localhost/mystore/en/pulseras/pulseras-con-gemas-plata-c-24_155.html" /><link rel="alternate" hreflang="de" href="http://localhost/mystore/de/pulseras/pulseras-con-gemas-plata-c-24_155.html" />should be:http://localhost/mystore/en/bracelets/gemstone-and-silver-bracelet-c-24_155.htmlhttp://localhost/mystore/de/armbaender/armbaender-mit-edelsteinen-und-silber-c-24_155.html - the hreflang tags should show always all languages, also the actual language: I'm doing this on a real store since about 2 years and get all my href lang tags recognized and validated by Google - The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files: includes/functions/html_output.php admin/categories.php For includes/functions/html_output.php the difference is in line 61:original code in 2.3.4 BS EDGE: while (strpos($link, '&&') !== false) $link = str_replace('&&', '&', $link); reference in instructions: while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); For admin/categories.php its in line 20: if (tep_not_null($action)) { in the actual 2.3.4 BS EDGE file there is one blank space instead of 2 at the beginning of the line. rgdsRainer Edited February 2, 2017 by raiwa Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
piernas Posted February 2, 2017 Share Posted February 2, 2017 @@raiwa you're right with hreflang. Seems a nonsene to me but the current language has to be listed in alternates :wacko: I'm looking into all the problems. Do you have the original version installed with multilingual support enabled? If so, Can you confirm if this is how it works? - Open a page, change language to other than the default. - Open a new window and enter the site by typing the URL. Does the new window keep the language chosen in the first one? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted February 3, 2017 Share Posted February 3, 2017 Hola Juanma @@piernas, I tried as you say and yes, it keeps the language selection. rgds Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
ocs1409 Posted February 15, 2017 Share Posted February 15, 2017 hello i have installed the addon works great only i have noticed that in the url the last hyphen for a subcategory is the underscore ( _ ) and not the minus sign (-) for example : mydomain.com//latex-muurverf-muurverf-voor-binnen-c-22_28.html is this correct ? greetings eric Quote Link to comment Share on other sites More sharing options...
♥frankl Posted February 15, 2017 Share Posted February 15, 2017 Yes, that's correct. The 28 is a sub category of 22, which is how the subcategories are written by osCommerce. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
GlenPig Posted February 20, 2017 Share Posted February 20, 2017 (edited) Hi I have v2.3.4 bootstrap but can't find the following in my files... In catalog/index.php... tep_draw_form('filter', 'index.php', 'get') in catalog/includes/application_top.php... require('includes/languages/' . $language . '.php'); ..any help on how I can install this add-on would be much appreciated. Glen Edited February 20, 2017 by GlenPig Cary 1 Quote Link to comment Share on other sites More sharing options...
♥peterpil19 Posted February 27, 2017 Share Posted February 27, 2017 (edited) Hi I have v2.3.4 bootstrap but can't find the following in my files... In catalog/index.php... tep_draw_form('filter', 'index.php', 'get') in catalog/includes/application_top.php... require('includes/languages/' . $language . '.php'); ..any help on how I can install this add-on would be much appreciated. Glen Hi Glen, They are definitely in the bootstrap version. Refer the original files: https://github.com/gburton/Responsive-osCommerce/blob/master/index.php https://github.com/gburton/Responsive-osCommerce/blob/master/includes/application_top.php 1. Search "tep_draw_form" in index.php and you should find the first part. 2. Note that what you are looking for: require('includes/languages/' . $language . '.php'); Is represented differently in the bootstrap version as: include('includes/classes/language.php'); Let us know if you still cannot find them. Peter Edited February 27, 2017 by peterpil19 Quote CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here Link to comment Share on other sites More sharing options...
Psytanium Posted March 1, 2017 Share Posted March 1, 2017 Hi, I have this addon installed on ocs2.3.4, all working fine, but recently the ajax checkout addon, I have this error appearing only on 1 page: Fatal error: Call to a member function retrieveDependencies() on array in /home/user/public_html/includes/modules/ultimate_seo_urls5/uri_modules/path_rewrite.php on line 84 I noticed 2 users posted on this forum the same error but didn't find a solution. Quote Link to comment Share on other sites More sharing options...
oboy Posted March 1, 2017 Share Posted March 1, 2017 I'm running the OSC 2.3.4 BS version - I've used it with succes for a year. I have a few challenges after changing the site to SSL - most are solved but I have a problem with all href's created by USU5 are not adding the https://... but keeps showing the http:// prefix. I have tryed to "clean cache" - "remove cache" without any change. I have also tryed to toggel the different URI formats - no change It's obvious that something is wrong with my version. I have searched this forum without finding help in this matter. So could anyone help in the right direction here?? I have "fixed" the problem true site redirect in apache - but I expect there should be a better solution.. Feel free to view one of the sites that causing me problems: www.vandpleje.dk If you inspect one of the product images you'll find that the href has no "https" but just "http" Quote Link to comment Share on other sites More sharing options...
♥frankl Posted March 1, 2017 Share Posted March 1, 2017 @@oboy I checked about 30 pages and all were fully secure. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
ocs1409 Posted March 2, 2017 Share Posted March 2, 2017 Yes, that's correct. The 28 is a sub category of 22, which is how the subcategories are written by osCommerce. hi frank do you know where the undescores are created ( which php ) or is it harcoded in php ? thanks greetings eric frankl 1 Quote Link to comment Share on other sites More sharing options...
♥peterpil19 Posted March 5, 2017 Share Posted March 5, 2017 @@piernas Hi, I have just updated my installation of this add-on to the latest version and it continues to work perfectly for me. However the updated version of the usu5 sitemaps no longer works. It presents the following error: Warning: Missing argument 3 for usu5_create_sitemap_set(), called in /home/.../public_html/usu5_sitemaps/index.php on line 223 and defined in /home/.../public_html/usu5_sitemaps/index.php on line 137 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY p.products_last_modified DESC, p.products_date_added DESC' at line 1 SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC [TEP STOP] The older version works fine and I will continue to use it. The error appears to be caused by those lines relating to the multi-language support and thought you should be aware. Peter Quote CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here Link to comment Share on other sites More sharing options...
xcmro_os Posted March 5, 2017 Share Posted March 5, 2017 Hello, it seems that the file "product_reviews_info.php" is not part of the BS-OScommerce version. I use this contribution with rewrite urls in htaccess. To avoid an increase in 404 errors I'd like to change the line RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA] to RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_info.php [NC,L,QSA] But it doesn't really works (it send me to the index page) Has somebody the same issue? Marc Quote Link to comment Share on other sites More sharing options...
♥frankl Posted March 5, 2017 Share Posted March 5, 2017 @@xcmro_os You need to change the corresponding file in the USU5 folder so that it redirects to product_info.php Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
♥peterpil19 Posted March 6, 2017 Share Posted March 6, 2017 Hello, it seems that the file "product_reviews_info.php" is not part of the BS-OScommerce version. I use this contribution with rewrite urls in htaccess. To avoid an increase in 404 errors I'd like to change the line RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA] to RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_info.php [NC,L,QSA] But it doesn't really works (it send me to the index page) Has somebody the same issue? Marc Hi, If the file does not exist then why would that result in a 404 errors if it is never going to be accessed? @@xcmro_os You need to change the corresponding file in the USU5 folder so that it redirects to product_info.php The products_reviews_info.php in the "page_modules" directory? What should be changed? Peter Quote CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here Link to comment Share on other sites More sharing options...
♥frankl Posted March 6, 2017 Share Posted March 6, 2017 (edited) The products_reviews_info.php in the "page_modules" directory? What should be changed? Peter includes/modules/ultimate_seo_urls5/page_modules/product_reviews_info.php needs to be modified if you want the -pri- pages to be redirected to product_info.php rather than product_reviews_info.php. Not that I've tried it but probably copying the contents of the function in includes/modules/ultimate_seo_urls5/page_modules/product_info.php into includes/modules/ultimate_seo_urls5/page_modules/product_reviews_info.php and making sure the -pri- marker stays intact would probably be enough. Edited March 6, 2017 by frankl Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
piernas Posted March 6, 2017 Share Posted March 6, 2017 Thanks for the update - I'll take a look as soon as I can @@piernas Hi, I have just updated my installation of this add-on to the latest version and it continues to work perfectly for me. However the updated version of the usu5 sitemaps no longer works. It presents the following error: Warning: Missing argument 3 for usu5_create_sitemap_set(), called in /home/.../public_html/usu5_sitemaps/index.php on line 223 and defined in /home/.../public_html/usu5_sitemaps/index.php on line 137 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY p.products_last_modified DESC, p.products_date_added DESC' at line 1 SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC [TEP STOP] The older version works fine and I will continue to use it. The error appears to be caused by those lines relating to the multi-language support and thought you should be aware. Peter Quote Link to comment Share on other sites More sharing options...
mcmannehan Posted March 12, 2017 Share Posted March 12, 2017 This i add to my htacces file and it works. # If you are getting errors you may need to comment this out like .. # Options +FollowSymLinks Options +SymLinksIfOwnerMatch <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change RewriteBase using the instructions above RewriteBase / RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA] RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA] RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA] RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA] RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA] RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA] # Articles contribution # RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA] # RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA] # RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA] # Information pages # RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA] # Links contribution # RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA] # Newsdesk contribution # RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA] # RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA] # RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA] # RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA] </IfModule> BTW there is an issue with some product links. Read here: http://www.oscommerce.com/forums/topic/410851-ultimate-seo-urls5/ Quote The clever one learn from everything and from everybody The normal one learn from his experience The silly one knows everything better [socrates, 412 before Christ] Computers help us with the problems we wouldn't have without them! 99.9% of the bugs sit in front of the computer! My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0 if(isset($this) || !isset($this)){ // that's the question... Link to comment Share on other sites More sharing options...
famaca Posted March 30, 2017 Share Posted March 30, 2017 I've just installed the SSL to my oscommerce and I'm having a problems with the redirects from http to https. Nothing works. Could you help me with the redirects. Thank you. Regards Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted March 30, 2017 Share Posted March 30, 2017 (edited) Hello Fátima @@famaca, First of all you posted this in the wrong forum, your problem is SSL related and not related to this SEO URLs thread. You should post in the following thread and also try the suggested redirect rules there: http://www.oscommerce.com/forums/topic/410587-htaccess-redirect/ Then it would be good to post the redirects you already tried, so we can see what youd did and what does not work on your server. Some hosts need specific rewrite rules/redirects to get it work on their SSL installation. I experienced this issue myself on my server. In that case you should ask your hosting for help. rgds Rainer Edited March 30, 2017 by raiwa Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
famaca Posted March 30, 2017 Share Posted March 30, 2017 Thank you for your answer. The reason I posted my problem in this forum is because I'm not able to achieve the redirects with the codes suggested and in the end I told someone who know coding oscommerce to help me to solve the problem. However, he has been unable to solve it too. He suggested that it would be a problem of USU5. As far as I can see, it could be a problem of my host like you say. I'll take into account your suggestion and I'll try. Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.