Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    333
    Plugin Contributions
    0

    help question [Done v1.3.9b] zenid added to the canonical element if first click is a linked prod

    I noticed that, If my first entry point to the store is a product page, then the zen id is added at the end of the canonical element. I tested it a few times by deleting my cookies then pasting the entry link in the address bar.

    I don't know if it's a bug worth mentioning.

    What do you think ?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: zenid added at the end of the canonical element if first click is a linked produc

    v1.3.9a / v1.3.9b
    Quote Originally Posted by djdavedawson View Post
    I noticed that, If my first entry point to the store is a product page, then the zen id is added at the end of the canonical element. I tested it a few times by deleting my cookies then pasting the entry link in the address bar.
    To stop that behavior, simply edit init_canonical.php and change the closing ');' on both calls to zen_href_link() from ");" to the following instead:
    Code:
    , 'NONSSL', false);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: zenid added at the end of the canonical element if first click is a linked produc

    I also wouldn't worry too much about it. If Google is your target, they believe that they're very good at spotting session IDs appended to links and taking account of them.

    In one blog post they even went so far as to advise site developers not to remove them, basically because they thought they could do it better!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    333
    Plugin Contributions
    0

    Default Re: [Done]zenid added at the end of the canonical element if first click is a linked

    Thank you

    This worked


    PHP Code:
    'NONSSL'false); 

  5. #5
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: [Done]zenid added at the end of the canonical element if first click is a linked

    Quote Originally Posted by djdavedawson View Post
    Thank you

    This worked


    PHP Code:
    'NONSSL'false); 
    Which file do I need to change? /includes/init_includes/init_canonical.php?

    Not sure what I am missing, I don't see where to make the change

  6. #6
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    333
    Plugin Contributions
    0

    Default Re: [Done]zenid added at the end of the canonical element if first click is a linked

    Change this:

    PHP Code:
    $canonicalLink zen_href_link($current_page'cPath=' zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&products_id=' $_GET['products_id']); 
    To this:

    PHP Code:
    $canonicalLink zen_href_link($current_page'cPath=' zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&products_id=' $_GET['products_id'], 'NONSSL'false); 

 

 

Similar Threads

  1. Replies: 1
    Last Post: 11 Jul 2016, 02:04 PM
  2. I zenid of urls to remove it I have to click on the home page
    By diamond1 in forum General Questions
    Replies: 6
    Last Post: 29 Oct 2015, 08:38 PM
  3. footer zenid= element
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Oct 2010, 12:13 AM
  4. Replies: 5
    Last Post: 6 Apr 2008, 01:57 AM

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