Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    1,029
    Plugin Contributions
    24

    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
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    1,029
    Plugin Contributions
    24

    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. manufacturers sidebox - Is there a mod
    By buildingblocks in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 5 Jun 2010, 05:41 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. Another Sidebox Like Manufacturers
    By judah in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 15 Apr 2008, 05:24 PM
  4. Error Codes, "Warning: reset() [function.reset]: .....
    By DoubleEGifts in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 24 Aug 2007, 12:39 AM
  5. Manufacturers Sidebox
    By dhermanus in forum General Questions
    Replies: 0
    Last Post: 4 Oct 2006, 11:37 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
  •