Page 165 of 245 FirstFirst ... 65115155163164165166167175215 ... LastLast
Results 1,641 to 1,650 of 2445
  1. #1641
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default 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;
    }
    }

  2. #1642
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default 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?

  3. #1643
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by tonibarcelona View Post
    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".
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #1644
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default 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

  5. #1645
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default 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

  6. #1646
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by tonibarcelona View Post
    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.
    Last edited by mc12345678; 6 Oct 2014 at 01:15 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #1647
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Hi mc12345678
    Homepage sent by pm

  8. #1648
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by mc12345678 View Post

    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

  9. #1649
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON URL working with Multi-language SEO URLs

    Quote Originally Posted by tonibarcelona View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #1650
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default 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.
    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.

    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 !!

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR