Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,840
    Plugin Contributions
    31

    Default [Done v1.3.9e] Manufacturers sidebox pulldown Reset - malformed url

    Hi,
    after selecting a manufacturer and going to that page, the first item in the selection pulldown list changes from the original "Select" to a "Reset".

    Reset produces an url without an id eg:

    http://.../index.php?main_page=index&manufacturers_id=

    which ostensibly goes to the index page.

    However the formatting of this page is broken as

    1) $this_is_home_page is not set, so breadcrumbs are on, and any other custom hacks using this variable break.
    2) if page-specific css is in use (index_home.css), this is not applied.

    regards
    Steve

    ps The same thing happens if an id is missing off a cPath url, but I guess that should never happen.

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

    Default Re: Manufacturers sidebox pulldown Reset - malformed url

    Try editing /includes/init_includes/init_category_path.php, at line 40:
    Change this:
    Code:
    $this_is_home_page = ($current_page=='index' && (!isset($_GET['cPath'])) && (!isset($_GET['manufacturers_id'])) && (!isset($_GET['typefilter'])) );
    to this:
    Code:
    $this_is_home_page = ($current_page=='index' && (!isset($_GET['cPath']) || $_GET['cPath'] == '') && (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '') && (!isset($_GET['typefilter']) || $_GET['typefilter'] == '') );
    Last edited by DrByte; 20 Jul 2010 at 06:41 PM. Reason: typo
    .
    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
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,840
    Plugin Contributions
    31

    Default Re: Manufacturers sidebox pulldown Reset - malformed url

    That fixed it thanks.

    Note that the file path is:

    \includes\init_includes\init_category_path.php

    regards
    Steve

 

 

Similar Threads

  1. How to add manufacturers url to the manufacturers image
    By suedouglas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Jan 2016, 04:19 PM
  2. How do I remove the Manufacturers Pulldown disappear off my page?
    By mythcastle in forum Basic Configuration
    Replies: 6
    Last Post: 1 May 2010, 08:33 PM
  3. Manufacturers URL
    By damiantaylor in forum General Questions
    Replies: 5
    Last Post: 22 Jan 2010, 01:50 PM
  4. Replies: 6
    Last Post: 5 Jul 2006, 08:30 PM
  5. Malformed image URL in Yahoo email
    By dbrewster in forum General Questions
    Replies: 1
    Last Post: 22 May 2006, 07:46 AM

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