Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2005
    Posts
    44
    Plugin Contributions
    0

    Default Failing redirects

    I've updated a site from 1.5.1 to 1.5.4, installed a new responsive template (Stirling Grand - thanks Anne) and almost everything is fine. The product URL on the bottom of each product page on the old site still connects successfully to the external research site, but the equivalent on the new one fails - and I'm stumped.

    Example

    Old site. ZC 1.5.1 - http://www.considera.co.uk/hx/index....roducts_id=362

    New site ZC1.5.4 - http://www.considera.co.uk/hxx/index...roducts_id=362

    php 5.3.7
    No debug footprint found
    Both old and new sites are on the same host and server
    Upgraded following the instructions (I think)

    Thanks



    Mark

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

    Default Re: Failing redirects

    I'm having difficulties at the moment finding the related post, but there were changes made in ZC 1.5.4 that modified how the product uri was generated/formatted. This change occurred in the header_php.php file for the product related pages. I know lat9 posted it and I commented on it at one point.

    Regardless of that, I would suggest reviewing the templates forum and/or posting there. It may be related to the upgrade or the installation of the template.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Failing redirects

    The products URL display interface underwent an interface change in Zen Cart v1.5.3; I'm guessing that your template wasn't updated to support that new interface.

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

    Default Re: Failing redirects

    Okay, I stand corrected: change occurred in ZC 1.5.3 not 1.5.4 as I incorrectly stated above.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Failing redirects

    You can look in your template's tpl_product_info_display.php for
    Code:
    <!--bof Product URL -->
    <?php
      if (zen_not_null($products_url)) {
        if ($flag_show_product_info_url == 1) {
    ?>
        <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
    <?php
        } // $flag_show_product_info_url
      }
    ?>
    <!--eof Product URL -->
    and make the following changes
    Code:
    <!--bof Product URL -->
    <?php
      if (zen_not_null($products_url)) {
        if ($flag_show_product_info_url == 1) {
    ?>
        <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=product&products_id=' . zen_output_string_protected($_GET['products_id']), 'NONSSL', true, false)); ?></p>
    <?php
        } // $flag_show_product_info_url
      }
    ?>
    <!--eof Product URL -->

  6. #6
    Join Date
    Dec 2005
    Posts
    44
    Plugin Contributions
    0

    Default Re: Failing redirects

    Yup - that did it. I found the template_default version of tpl_product_info_display.php and from about line 211 copied:

    <!--bof Product URL in default template -->
    <?php
    if (zen_not_null($products_url)) {
    if ($flag_show_product_info_url == 1) {
    ?>
    <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=product&products_id=' . zen_output_string_protected($_GET['products_id']), 'NONSSL', true, false)); ?></p>
    <?php
    } // $flag_show_product_info_url
    }
    ?>
    <!--eof Product URL -->

    I then pasted it into the Stirling Grand tpl_product_info_display.php at around line 260 to replace

    <!--bof Product URL as per Stirling Grand -->
    <?php
    if (zen_not_null($products_url)) {
    if ($flag_show_product_info_url == 1) {
    ?>
    <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
    <?php
    } // $flag_show_product_info_url
    }
    ?>
    <!--eof Product URL -->

    Thanks to you both for your rapid and on-the-nose attention

    Mark

  7. #7
    Join Date
    Dec 2005
    Posts
    44
    Plugin Contributions
    0

    Default Re: Failing redirects

    And you beat me to that too ... nuf spect and thanks - Mark

 

 

Similar Threads

  1. Public-end redirects failing
    By ForgottenEmbers in forum Installing on a Windows Server
    Replies: 9
    Last Post: 2 Mar 2011, 08:27 PM
  2. Includes Failing
    By SniperSteve in forum Installing on a Windows Server
    Replies: 2
    Last Post: 25 Jun 2008, 08:19 PM
  3. Upgrade 1.3.6 -> 1.3.7 -> 1.3.8a failing on me
    By dhcernese in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 17 Mar 2008, 11:21 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