Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Redirect issue - Manufacturers link

    A customer has just reported that clicking on the manufacturers link in the product info pages causes a redirect back to the main index.php page.

    I've traced this down as being a piece of code missing from the modules/pages/redirect/header_php.php file in V1.5.3. (The V1.5.2 code is fine).

    The 'missing' code in question being:

    Code:
        case 'url':  if (isset($_GET['goto']) && zen_not_null($_GET['goto'])) {
        zen_redirect('http://' . $_GET['goto']);
      }
      break;
    Cheers
    RodG

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Redirect issue - Manufacturers link

    No, that removal was intentional for security reasons.
    You'll need to update your template files to use the new syntax for generating manufacturer links.
    .

    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
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Redirect issue - Manufacturers link

    Quote Originally Posted by DrByte View Post
    No, that removal was intentional for security reasons.
    You'll need to update your template files to use the new syntax for generating manufacturer links.
    I had a gut feeling that that may be the case. I could't find any other info about it though and re-adding the code has taken care of the problem. I guess I now need to go figure out what the new syntax requirements are.

    Cheers
    RodG

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,950
    Plugin Contributions
    96

    Default Re: Redirect issue - Manufacturers link


  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Redirect issue - Manufacturers link

    Quote Originally Posted by lat9 View Post
    Thanks. I'd already managed update the tpl_product_info_display.php file before this came in. The customer doesn't use any other product types or offer free shipping(?) so I don't think I'll bother to rush out and make the changes to the other files.

    A bit of a trap for the unwary, and since I'm not a 'Template Author' I guess I didn't take any notice of this thread ;-)

    Cheers
    RodG

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Redirect issue - Manufacturers link

    Quote Originally Posted by RodG View Post
    A bit of a trap for the unwary
    Yes, but easily caught if one engages in a full comparison of old files vs new when doing their upgrade, as per the docs. :)
    .

    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.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Redirect issue - Manufacturers link

    Quote Originally Posted by DrByte View Post
    Yes, but easily caught if one engages in a full comparison of old files vs new when doing their upgrade, as per the docs. :)
    I don't wish to appear argumentative, but I don't really agree with this.

    The changed file tpl_product_info_display.php is one of the ZenCart core files that is unlikely to have had user modifications, and the custom template file(s) don't get changed by any ZenCart updates.

    This means that in order to identify this problem I would have needed to compare *all* the zencart *core* files for changes between ZenCart versions and somehow realise that the changes made to this particular core file would have repercussions for the unchanged template file(s).

    This would be a near impossible task in anyones books.

    If I'm guilty of doing anything wrong, it would be in not reading the update/doc files for the changes made to zencart (where I *assume* this change was mentioned).

    Cheers
    RodG.

 

 

Similar Threads

  1. Zenid Redirect Issue
    By bumba000 in forum General Questions
    Replies: 7
    Last Post: 23 Jan 2015, 11:52 PM
  2. v139h Redirect Issue
    By gin27 in forum General Questions
    Replies: 4
    Last Post: 20 Apr 2012, 03:25 AM
  3. Search without Keywords - Redirect to Manufacturers Page
    By llynix in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Aug 2011, 07:59 PM
  4. Redirect Issue
    By tatebn in forum General Questions
    Replies: 9
    Last Post: 30 Jun 2009, 01:11 AM
  5. 301 Redirect issue
    By mw4kids in forum General Questions
    Replies: 16
    Last Post: 12 Mar 2009, 06:58 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