If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Plz someone help me (Product Filter by Attribute and price range)

Plz someone help me (Product Filter by Attribute and price range)

Locked

Started by shahram on 10 Aug 2009, 6:26 AM · Views: 1,890

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Aug 2009, 6:26 AM
#1
shahram avatar

shahram

Zen Follower

Join Date:
Jul 2009
Location:
New York
Posts:
122
Plugin Contributions:
1

Post #1 by shahram

Hi all i install the (Product Filter by Attribute and price range) but i m getting error on this is the error i m getting can some plz help me with this error i really need this for my website :(

( 1146 Table 'sneakerf_zc1.zs_products_attributes' doesn't exist
in:
[select count(distinct p.products_id) as total FROM zen_products p, zen_products_description pd, zen_products_to_categories p2c, zen_products_attributes pa, zen_products_options po , zen_products_options_values pov WHERE (p.products_status = 1 AND ((pa.products_id In (SELECT pa.products_id FROM zs_products_attributes pa WHERE ( pa.options_id = 1 AND pa.options_values_id = 9 )))) AND p.products_id = pa.products_id AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id) ] )

10 Aug 2009, 7:42 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Post #2 by tino_schlegel

Do you use the PREFIX zs_ for the database tables? If not than this is most likely the source of the error. Not sure where the PREFIX comes from. But when the rest is working, it should be in the module or whatever your have installed there.

11 Aug 2009, 11:56 AM
#3
dorba avatar

dorba

New Zenner

Join Date:
Mar 2009
Posts:
1
Plugin Contributions:
0

Post #3 by dorba

Tino is right, you have change the line 146 from

$where_str .= " AND ((pa.products_id In (SELECT pa.products_id FROM zs_products_attributes pa WHERE (";

to

$where_str .= " AND ((pa.products_id In (SELECT pa.products_id FROM products_attributes pa WHERE (";

in file /includes/modules/pages/product_filter_result/header_php.php

13 Aug 2009, 5:36 AM
#4
shahram avatar

shahram

Zen Follower

Join Date:
Jul 2009
Location:
New York
Posts:
122
Plugin Contributions:
1

Post #4 by shahram

Thank you very much i fix the error with your help thank again