Results 1 to 10 of 169

Threaded View

  1. #11
    Join Date
    Apr 2008
    Location
    Athlone, Ireland
    Posts
    176
    Plugin Contributions
    5

    Default Re: product filter module addon

    The solution is to (probably) remove the "zs_" prefix on the table "zs_products_attributes" in the SQL statement. If you know how to view your SQL tables, view them and look for the correct table name. My tables do not have a "zs_" prefix, but your tables may have another prefix.

    Go to:
    "includes/modules/pages/product_filter_result/header_php.php"

    Change the line:
    <code>$where_str .= " AND ((pa.products_id In (SELECT pa.products_id FROM zs_products_attributes pa WHERE ("; </code>

    To:
    <code>$where_str .= " AND ((pa.products_id In (SELECT pa.products_id FROM products_attributes pa WHERE ("; </code>

    OR change it to the product_attribute table name in your system.

    Hope it works and you understand what I'm talking about...
    Perfect - cheers for that, Worked perfectly!

    Such a simple thing to miss.

    And for people who installed Zen using fantastico.. you may have to change the table prefix to 'zen_' as fantastico can add it automaticly to your tables.

    To find out what the table prefix is.. open cpanel

    http://www.yourdomain.com/cpanel

    scroll down to phpMyAdmin and click it.

    Find the database your zencart is using.

    you will see at the start of each table a prefex ie: 'zen_'


    copy the prefix and change the prefix in the header_php.php supplied with this addon

    Find this line

    Code:
    $where_str .= " AND ((pa.products_id In (SELECT pa.products_id FROM zs_products_attributes pa WHERE (";
    and change zs_products_attributes to zen_products_attributes (or what ever your database prefix is)


    Hope this is of some help....

    DB
    Last edited by dropbop; 14 Jun 2009 at 01:03 AM. Reason: typo

 

 

Similar Threads

  1. Product filter Module: Advanced search results page not working
    By WWRepair in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Mar 2013, 11:51 PM
  2. v139h 1064 SQL error in product filter addon?
    By 4jDesigns in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 17 Jan 2013, 07:59 PM
  3. Product Filter Module - 1109:Unknown table 'p' in field list
    By moesoap in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 28 May 2012, 01:40 PM
  4. modified product filter / alpha filter help please
    By bn17311 in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2011, 09:43 PM
  5. SQL problem with filter by attributes addon
    By daparky in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Jan 2010, 10:16 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