Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2009
    Posts
    155
    Plugin Contributions
    1

    Default Search Filter Strangeness

    Upgraded and updated to 1.3.9c. Since 1.3.9a, I'm having a sort of problem-within-a-problem regarding product display and the search filters.

    First, products no longer display alphabetically by title upon clicking a manufacturer's index or category. I'm using the product search filter mod to jazz up my alpha sorter. So one can always choose "Title" from the altered alpha filter to fix that. However, I thought I might avoid that extra click by setting the product listing display, but I'm not sure what the setting should be. I used the given example of "2a" as a starting point of reference. Then received an SQL error in the store when clicking a category.

    The error:

    PHP Code:
    1064 You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7
    in
    :
    [
    select p.products_imagepd.products_namep.products_quantityp.products_idp.products_typep.master_categories_idp.manufacturers_idp.products_pricep.products_tax_class_idpd.products_description, IF(s.status 1s.specials_new_products_priceNULL) as specials_new_products_price, IF(s.status =1s.specials_new_products_pricep.products_price) as final_pricep.products_sort_orderp.product_is_callp.product_is_always_free_shippingp.products_qty_box_status from zen_products_description pdzen_products p left join zen_manufacturers m on p.manufacturers_id m.manufacturers_idzen_products_to_categories p2c left join zen_specials s on p2c.products_id s.products_id where p.products_status and p.products_id p2c.products_id and pd.products_id p2c.products_id and pd.language_id '1' and p2c.categories_id '110' order by 
    Secondly, the Category/Manufacturer filter doesn't display when clicking a manufacturer category vs. clicking their name from the manufacturer sidebox. Meaning, if you click from the category, only the alpha sorter filter shows, but if you click from the sidebox you get both filters. How can I get the Category/'Manufacturer filter to display regardless of how one arrives to a category?

    Thank you very much! :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Search Filter Strangeness

    Are you sure it was fine in your 1.3.9a ? The reason I ask is because I don't recall changing anything related to search or alpha filters etc in 139b or 139c. There were several improvements from 138a to 139a related to filters etc, and I'm wondering if maybe the problem is related to something missed in your 138-to-139 upgrade?

    Or maybe it's just a broken addon?

    Do you mind providing a URL and a click-for-click to reproduce the problem? Ajeh wants to peek :)
    .

    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 2009
    Posts
    155
    Plugin Contributions
    1

    Default Re: Search Filter Strangeness

    Hi, DrB!

    No, it wasn't fine in 1.3.9a. I'm sorry if that wasn't clear in my original post. I've noticed these issues happening since that initial upgrade.

    You know where my site is. By all means, Linda is more than welcome to take a look. If you need me to post it here, will you please delete it afterwards?

    I'm not sure what a "click-for-click" means. What I clicked to receive the error?

    The product listing not being in alpha order "by default" is able to be reproduced by visiting any manufacturer index. There is also a category called "Shop by Designer" which mirrors the manufacturer sidebox. The product listing display seems to be the same via both, while clicking any manufacturer from their category vs. clicking from the sidebox results in only one search filter. Could this be because they're technically subcategories of Shop by Designer? Doh. That just dawned on me. LOL!

    I'd have to set the Product Listing setting back to 2a to reproduce the SQL error, which I'd rather not do on my live site. I can set my testing site that way if you'd like and PM you with a link.

    Thanks, DrB! :)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Filter Strangeness

    What happens if you switch to the Classic Template?

    And can you search in the Developers Tool Kit in the bottom input box for:
    default_filter.php

    what is the version on that?

    and where is it located?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2009
    Posts
    155
    Plugin Contributions
    1

    Default Re: Search Filter Strangeness

    Hi, Linda!

    I should have thought to try reverting templates before posting. Looking suitably ashamed. Hehe!

    Using Classic, it seems the mod may be interfering a bit. Product display is alphabetical again. I don't get the SQL error if I set Product Listing to 2a, either. I'll have to look more closely at the changes in their default_filter.php file, which I'd merged with the new Zen file after upgrading. So the version now is:

    @version $Id: default_filter.php 14870 2009-11-19 22:36:24Z drbyte $

    When using my template, the modded file is located in an override directory:

    /includes/index_filters/my_template/default_filter.php

    When using Classic, the original file, which is here:

    /includes/index_filters/default_filter.php

    One down, maybe one to go.

    I'm still missing the Category/'Manufacturer search filter in Classic when clicking a manufacturer index via their "subcategory" as opposed to arriving from the sidebox, where I get both filters. I get both filters when visiting other subcategories, the left filter displaying manufacturers.

    Which leads me to think this too may be solved (or explained, if never a problem to begin with LOL) if I assume the category side doesn't kick in when the filter "thinks" a subcategory is already drilled-down and therefore doesn't need additional category filtering. Even though it does. And it would be nice. ;)

    Sooo . . . not sure if I'm still in fix-it land or now we've ventured into wish list territory. LOL! Many thanks in either case! :)

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Filter Strangeness

    Check the settings in Configuration ... Product Listing ...
    Display Category/Manufacturer Filter (0=off; 1=on)
    Do you want to display the Category/Manufacturer Filter?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Apr 2009
    Posts
    155
    Plugin Contributions
    1

    Default Re: Search Filter Strangeness

    On 1. Or I wouldn't see it at all, right?

    It's funny, if I turn off the alpha filter, the category/manufacturer filter also goes away. I'd like both filters all the time - if possible. :)

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Filter Strangeness

    Did you try turning off the:
    Include Product Listing Alpha Sorter Dropdown
    Do you want to include an Alpha Filter dropdown on the Product Listing?

    true
    false
    There was a problem, I believe, in v1.3.8 ... v1.3.9 has this fixed ...

    So again, check your templates ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Search Filter Strangeness

    Linda, is this correct for overriding files in the index_filters folder?

    When using my template, the modded file is located in an override directory:

    /includes/index_filters/my_template/default_filter.php

    When using Classic, the original file, which is here:

    /includes/index_filters/default_filter.php
    I ask because I have been searching if there is an override directory for these files as there is no Classic folder here lol and I'd like to make sure of this is correct before blithely going ahead and doing it
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Filter Strangeness

    Good question ...

    I am pretty sure that there is no overrides directory for that ... I haven't played there for awhile ...

    You can test it by making one ... and no change says ... there isn't one ...

    Then, when you discover it does not work, remove your template directory and save a backup of the original file then overwrite it with your changes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Search by Manufacturer filter not working
    By webhandler in forum Basic Configuration
    Replies: 3
    Last Post: 26 Jun 2016, 10:19 AM
  2. Rename the search filter texts
    By dermit in forum Basic Configuration
    Replies: 2
    Last Post: 8 Nov 2010, 08:04 PM
  3. Model in search filter list
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Dec 2008, 06:30 AM
  4. remove the search filter
    By awoman in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Jul 2008, 08:25 PM
  5. Search / Filter by attributes or options
    By frosty1 in forum General Questions
    Replies: 3
    Last Post: 6 Feb 2007, 11:02 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