Results 1 to 10 of 2445

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    No, the first white page code, the second does not change anything forever
    <href="https://mozit:8890/index.php?main_page=index&cPath=">
    Giovanni,
    Zen Cart V2.1

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by diamond1 View Post
    No, the first white page code, the second does not change anything forever
    <href="https://mozit:8890/index.php?main_page=index&cPath=">
    In this:
    Code:
    $productlink = zen_href_link(zen_get_info_page($products_id),  'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id'])  > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) :  $_GET['cPath'] > 0 ?  zen_get_generated_category_path_rev($_GET['cPath']) :  zen_get_generated_category_path_rev(zen_get_products_category_id($products_id))  . '&products_id=' . $products_id));
        $cPath_new = 'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id'])  > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) :  $_GET['cPath'] > 0 ?  zen_get_generated_category_path_rev($_GET['cPath']) :  zen_get_generated_category_path_rev(zen_get_products_category_id($products_id));
        // strip out 0_ from top level cats
        $cPath_new = str_replace('=0_', '=', $cPath_new);
    $showmorelink = zen_href_link(FILENAME_DEFAULT, $cPath_new);
    Remove the extra parentheses (highlighted above):
    Code:
    $productlink = zen_href_link(zen_get_info_page($products_id),  'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id'])  > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) :  $_GET['cPath'] > 0 ?  zen_get_generated_category_path_rev($_GET['cPath']) :  zen_get_generated_category_path_rev(zen_get_products_category_id($products_id))  . '&products_id=' . $products_id));
        $cPath_new = 'cPath=' . ($_GET['manufacturers_id'] > 0 and $_GET['filter_id'])  > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) :  $_GET['cPath'] > 0 ?  zen_get_generated_category_path_rev($_GET['cPath']) :  zen_get_generated_category_path_rev(zen_get_products_category_id($products_id));
        // strip out 0_ from top level cats
        $cPath_new = str_replace('=0_', '=', $cPath_new);
    $showmorelink = zen_href_link(FILENAME_DEFAULT, $cPath_new);
    Thought that before, the use of $cPath provided a result? Ohh, sorry: it was $cpath instead as shown here:
    Quote Originally Posted by diamond1 View Post
    I have another problem, I have a slide in the home that takes the product id from the db, if I read the source code I notice that the link of the category or the product link is not generated by ceon uri I products = id etc. clicking does a normal thing, but SEOs have links on the page with rederict 301 is not the best. How can I do to generate the correct links without cpath etc.

    Code:
    $productlink=HTTP_SERVER . DIR_WS_CATALOG.'index.php?main_page=product_info&cPath='.$cpath.'&products_id='.$products_id;
    $showmorelink=HTTP_SERVER . DIR_WS_CATALOG.'index.php?main_page=index&cPath='.$cpath;
    
    <a href="<?php echo $productlink; ?>"><span class="a-btn-text">Buy now</span></a>
    <a href="<?php echo $showmorelink; ?>"><span class="a-btn-slide-text">More</span></a>
    So the second "form" could be:
    Code:
    $productlink = zen_href_link(zen_get_info_page($products_id),  'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id'])  > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) :  $_GET['cPath'] > 0 ?  zen_get_generated_category_path_rev($_GET['cPath']) :  zen_get_generated_category_path_rev(zen_get_products_category_id($products_id))  . '&products_id=' . $products_id));
        $cPath_new = 'cPath=' . $cpath;
        // strip out 0_ from top level cats
        $cPath_new = str_replace('=0_', '=', $cPath_new);
    $showmorelink = zen_href_link(FILENAME_DEFAULT, $cPath_new);
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    now it works perfectly with the second, you've been very kind thanks thanks
    Giovanni,
    Zen Cart V2.1

  4. #4
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hi,

    I was about to install CEON URI into a zc155e and came here to confirm there were no conflicts. I read thru the conversation about breadcrumb issues and would prefer to avoid them.

    I have two questions. First, both Torvista and MC supply github links... which should I use?

    Second, Torvista's version is updated for php7 but I'm still running v5.5.38. Am I out of luck or is the php 7 version backwards compatible?

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by Feznizzle View Post
    Hi,

    I was about to install CEON URI into a zc155e and came here to confirm there were no conflicts. I read thru the conversation about breadcrumb issues and would prefer to avoid them.

    I have two questions. First, both Torvista and MC supply github links... which should I use?

    Second, Torvista's version is updated for php7 but I'm still running v5.5.38. Am I out of luck or is the php 7 version backwards compatible?
    I would suggest torvista's version for now as I created one just to push a change and to carry a conversation.

    As for changes to support php 7, changes that have generally been made/needed to support php 7 are conditions that have existed for php 5.x but had not been implemented because they weren't required then. So, you should generally be okay with php 5.5.x and software that supports php 7.

    I haven't looked yet, but torvista indicated that he carried over the change we discussed about breadcrumbs. I took his word for it in his previous post indicating that he updated the repo.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Worked perfect, thanks!

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    Default Re: Ceon URI Mapping v4.x

    Worked perfect, thanks!
    Good to hear, that's the sort of post I'd like to see more often!
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 

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

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