Re: CEON URL working with Multi-language SEO URLs
DML73, forget Multi-Language SEO URLs mod and do this to your common HTML_header:
$tmp_lng = new language();
reset($tmp_lng->catalog_languages);
foreach($tmp_lng->catalog_languages as $cat_lng) {
$lengua_sql = $db->Execute("select languages_id from " . TABLE_LANGUAGES . " where code = '" . $cat_lng['code'] . "'");
$codigo_de_lengua=$lengua_sql->fields['languages_id'];
if (isset($_GET['cPath'])) {
$ceon_por_lengua_sql = "select uri from " . TABLE_CEON_URI_MAPPINGS . " where uri IS NOT NULL and main_page='index' and associated_db_id=".$current_category_id." and current_uri=1 and language_id='" .$codigo_de_lengua."'";
$ceon_por_lengua_query = $db->Execute($ceon_por_lengua_sql)->fields['uri'];
}
else if (isset($_GET['manufacturers_id']) ){
$marca_a_buscar="'manufacturers_id=".(int)$_GET['manufacturers_id']."'";
$ceon_por_lengua_sql = "select uri from " . TABLE_CEON_URI_MAPPINGS . " where uri IS NOT NULL and main_page='index' and query_string_parameters=".$marca_a_buscar." and current_uri=1 and language_id='" .$codigo_de_lengua."'";
$ceon_por_lengua_query = $db->Execute($ceon_por_lengua_sql)->fields['uri'];
}
if ($ceon_por_lengua_query!=''){
if ($cat_lng['code']==DEFAULT_LANGUAGE){echo '<link rel="alternate" href="http://www.mysite.com' . $ceon_por_lengua_query. '" hreflang="x-default" />';}
echo '<link rel="alternate" href="http://www.mysite.com' . $ceon_por_lengua_query. '" hreflang="' . $cat_lng['code'] . '" />'.PHP_EOL;
}
}
Re: CEON URL working with Multi-language SEO URLs
Thank you one more time, mc12345678.
My homepage is the index. But I "cutomize" it not displying the columns. Have you tested the solution you propose?
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
tonibarcelona
Thank you one more time, mc12345678.
My homepage is the index. But I "cutomize" it not displying the columns. Have you tested the solution you propose?
Yes I did as indicated by trying both languages 1 and 2 for the sql provided. Seeing the above customiztion doesn't use zencart zen_href related functions and hardcodes the store's uri to name a few areas of improvement, makes me wonder what customizations were made to the "homepage".
Re: CEON URL working with Multi-language SEO URLs
lot of customizations were made, but none of them is attached to homepage
the code above is only fo showing hreflang tags, in conjuction with ceon uri mapping
Re: CEON URL working with Multi-language SEO URLs
Few weeks ago, I tried to map the variable $this_is_home_page , but with no success :(
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
tonibarcelona
Few weeks ago, I tried to map the variable $this_is_home_page , but with no success :(
Would be easier to obtain help if you identify what constitutes your homepage? Almost anything would help, there are so many ways to identify what you have considered to be your homepage content. For example, when browsing your site (has web address been provided?) What is the url that is shown for the home option that typically appears in the upper left? What is the setting in the configurations section for the category to appear when opening the webpage. Have you used some sort of htaccess redirect to display some sort of customized page? $this_is_home_page is not something that "fits" into the CEON URI mapping table if that is what is meant. Otherwise, what is meant by mapping the variable/how was it used?
Btw, this discussion is beginning to become off-topic to this forum, unless a direct correlation can be made to the operation of CeON urI mapping, the discussion of above should be continued on a new thread.
Re: CEON URL working with Multi-language SEO URLs
Hi mc12345678
Homepage sent by pm
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
mc12345678
Btw, this discussion is beginning to become off-topic to this forum, unless a direct correlation can be made to the operation of CeON urI mapping, the discussion of above should be continued on a new thread.
Why? I think is totally related to ceon uri. Itīs related to have the homepage of a language mapped
Re: CEON URL working with Multi-language SEO URLs
Quote:
Originally Posted by
tonibarcelona
Why? I think is totally related to ceon uri. Itīs related to have the homepage of a language mapped
With regrds to the mapping of the language to the homepage, as indicated in the provided sql, the use of mysite.com as a subdirectory was discouraged. The uri provided which with respect is not being disclosed does not contain such a sub-directory. To explain and as is shown in the hreflang uri construct, the data in the database for the uri mappings does not actually contain the site's uri, but the path off of the uri to the final location so in the case of this site, the sql provided would have the subdirectory replaced for mysite.com. Ie: /ZenCart/fr would be the path to include in the sql to map french to the site that is hosted at mysite dot com/ZenCart/fr
Now that said, looking at the site via. Mobile device identified that the template for a mobile device is not integrated with ZC the way expected as looking at the "full site" takes one to the site/fullsite.php file instead of index.php. Finally after navigating was able to find a way to truly see the site as if from a desktop, and nothing appeared unique about the "homepage" that would cause any "concern".
So the reason of discussion of a possible off topic discussion is the relationship of the template (which I have not viewed from a desktop computer) to CEON URI Mapping and the actions necessary to bring it up to ZC standard/normal use. The associated specifics would be more appropriate in a separate thread.
Re: CEON URL working with Multi-language SEO URLs
Ok, I understand you now.
Quote:
Originally Posted by mc12345678
With regrds to the mapping of the language to the homepage, as indicated in the provided sql, the use of mysite.com as a subdirectory was discouraged. The uri provided which with respect is not being disclosed does not contain such a sub-directory. To explain and as is shown in the hreflang uri construct, the data in the database for the uri mappings does not actually contain the site's uri, but the path off of the uri to the final location so in the case of this site, the sql provided would have the subdirectory replaced for mysite.com. Ie: /ZenCart/fr would be the path to include in the sql to map french to the site that is hosted at mysite dot com/ZenCart/fr
Yes, that is true, I havenīt thinked about a user with the shop located at a subdirectory. I have this situation but I includeed the subdirectory path at any uri mapping. Neverless, the code I provided will generate the hreflang and will serve as a guide for DML73.
Quote:
Now that said, looking at the site via. Mobile device identified that the template for a mobile device is not integrated with ZC the way expected as looking at the "full site" takes one to the site/fullsite.php file instead of index.php.
This is a handmade redirection for smartphones. It applies only to templates.
Quote:
Finally after navigating was able to find a way to truly see the site as if from a desktop, and nothing appeared unique about the "homepage" that would cause any "concern".
So the reason of discussion of a possible off topic discussion is the relationship of the template (which I have not viewed from a desktop computer) to CEON URI Mapping and the actions necessary to bring it up to ZC standard/normal use. The associated specifics would be more appropriate in a separate thread.
Ok, Isnīt my intention to hijack the thread. Many thanks for take a view to the site for try to help !!