Forums / Addon Sideboxes / Dynamic Filter [Support Thread]

Dynamic Filter [Support Thread]

Views: 653,483

Results 701 to 720 of 809
16 Feb 2017, 5:56 PM
#701
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Dynamic Filter [Support Thread]

soxophoneplayer:

I don't use 'all products' on my site, but the filters do work on new, featured, and specials. Maybe not coded in on the dev site?

Looking over my notes, I recall empty categories generated an error and would mangle the page style. Solution was simple - no empty categories.

Also noted from notes that using this mod with the Responsive Sheffield Blue 2.0 generated log errors that traced to the currencies mod that was part of the template. Didn't seem to affect function of the site, but to be safe I stripped out the currencies files and replaced with R Barbour currencies mod. No errors generated.

A bit of a tweak I did with the filters - the filtered attribute names of a product showed up on the 'add to cart' box on the product page. Some products had more or fewer attributes which affected the look/size of the page. Rather than just display:none them, I cut out the code that generated this feature and pasted it in one the the product description tabs resident in the template (that I previously had turned off as I wasn't using it). With a little css tweaking I think it came out as a nice lateral feature of the filters mod.

I am working on those filters,they should be back later this evening or tomorrow :cool:.

23 Mar 2017, 8:17 PM
#702
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I attempted to install this mod and hit a snag once I tried to run the SQL install.

Upon inspecting it with my weak programming skills I have to ask, is the SQL install still correct?

For example all the lines in the INSERT INTO configuration VALUES section appear...off (incorrect NULL at beginning, extra "", etc.)

The first two lines are:
INSERT INTO configuration VALUES
(NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"),

If I change it to the following it works:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
('Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', NULL, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),

24 Mar 2017, 6:57 AM
#703
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

Using NULL is/was the standard way when populating auto increment fields. But if it is not working for you, your solution is also fine.> lindasdd:

I attempted to install this mod and hit a snag once I tried to run the SQL install.

Upon inspecting it with my weak programming skills I have to ask, is the SQL install still correct?

For example all the lines in the INSERT INTO configuration VALUES section appear...off (incorrect NULL at beginning, extra "", etc.)

The first two lines are:
INSERT INTO configuration VALUES
(NULL, 'Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),"),

If I change it to the following it works:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
('Enable on Category Pages', 'FILTER_CATEGORY', 'Yes', 'Enable the filter on category pages?', @cid, '10', NULL, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),

10 Apr 2017, 5:23 PM
#704
monkeyjr47906 avatar

monkeyjr47906

New Zenner

Join Date:
Nov 2007
Posts:
72
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Any chance you can point me in the right direction with this mod? https://www.zen-cart.com/downloads.php?do=file&id=2038

I installed it and it ordered my products perfectly but it breaks the dynamic filter with this error message in my logs.

PHP Fatal error: 1054:Unknown column 'in_name' in 'order clause' :: SELECT p.products_id, p.products_price_sorter, p.master_categories_id, p.manufacturers_id FROM products p LEFT JOIN manufacturers m USING(manufacturers_id) LEFT JOIN products_description pd on p.products_id = pd.products_id JOIN products_to_categories p2c on p.products_id = p2c.products_id JOIN categories c on p2c.categories_id = c.categories_id LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1
AND pd.language_id = 1 AND ((pd.products_name LIKE '%mighty%'
OR p.products_model
LIKE '%mighty%'
OR m.manufacturers_name
LIKE '%mighty%' OR (mtpd.metatags_keywords
LIKE '%mighty%'
AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description
LIKE '%mighty%'
AND mtpd.metatags_description !='') OR pd.products_description
LIKE '%mighty%') )) GROUP BY p.products_id order by in_name DESC, p.products_sort_order, pd.products_name ==> (as called by) /home/account/public_html/includes/templates/template1/sideboxes/tpl_dynamic_filter.php on line 63 <== in /home/account/public_html/includes/classes/db/mysql/query_factory.php on line 167

10 Apr 2017, 5:38 PM
#705
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Dynamic Filter [Support Thread]

monkeyjr47906:

Any chance you can point me in the right direction with this mod? https://www.zen-cart.com/downloads.php?do=file&id=2038

I installed it and it ordered my products perfectly but it breaks the dynamic filter with this error message in my logs.

PHP Fatal error: 1054:Unknown column 'in_name' in 'order clause' :: SELECT p.products_id, p.products_price_sorter, p.master_categories_id, p.manufacturers_id FROM products p LEFT JOIN manufacturers m USING(manufacturers_id) LEFT JOIN products_description pd on p.products_id = pd.products_id JOIN products_to_categories p2c on p.products_id = p2c.products_id JOIN categories c on p2c.categories_id = c.categories_id LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1
AND pd.language_id = 1 AND ((pd.products_name LIKE '%mighty%'
OR p.products_model
LIKE '%mighty%'
OR m.manufacturers_name
LIKE '%mighty%' OR (mtpd.metatags_keywords
LIKE '%mighty%'
AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description
LIKE '%mighty%'
AND mtpd.metatags_description !='') OR pd.products_description
LIKE '%mighty%') )) GROUP BY p.products_id order by in_name DESC, p.products_sort_order, pd.products_name ==> (as called by) /home/account/public_html/includes/templates/template1/sideboxes/tpl_dynamic_filter.php on line 63 <== in /home/account/public_html/includes/classes/db/mysql/query_factory.php on line 167
FWIW, the referenced plugin uses the advanced_search_result page's notifiers to set the various elements of the database query. It appears that the Dynamic Filter is removing the portion that's added to the select clause by the "Search: Prioritize Matching Names" processing.

19 Apr 2017, 12:17 AM
#706
kane102535 avatar

kane102535

New Zenner

Join Date:
Apr 2017
Posts:
1
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

hi. what can i do the dynamic filter add Categories breadcrumb?
now is Home > Categories
but i want Home > red Categories > Categories
the red is selected. pls help me .thanks.

zen cart 1.51

10 May 2017, 4:24 PM
#707
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

If someone could shed some light or offer some opinion on the following I would be grateful.

I use this mod, it works, I love it.

But something, somewhere, at some time, has occurred because,
I want to filter on newly added options but when I add an option name & values, add these to products, filtering on them returns no results.

Ie. working perfectly on old options, returns zero results on new ones.

I can only assume that having installed this mod on an older version of Zencart (1.3...), something to do with upgrading the cart itself (currently 1.54) is causing an issue because I can't imagine why else some would work and some wouldn't.

I have reinstalled the latest version of this mod as per the instructions in this thread. I also built a 1.55 site from scratch and added some products/filters to check it (or I) was installing correctly, they work fine.

So basically, what would/could prevent a newer option from filtering, something database related? I don't really know where to start looking.

10 May 2017, 4:34 PM
#708
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I should add, that the number in brackets on the filter suggests that valid options are being counted, they just aren't returned when selected.

12 May 2017, 9:54 AM
#709
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I really need to get this working. It's been bugging me for ages and preventing me from moving forward. And I would be happy to pay for a solution.

By what mechanism would this NOT work, (remove the spaces)
http://one stop glasses .co .uk/index.php?main_page=index&cPath=55&fltLens_Width[]=51

When this does,
http://one stop glasses .co. uk/index.php?main_page=index&cPath=55&fltColour[]=Black

I've spoken to to my web hosts/designers but they don't work with Zencart, there is a danger of the site being rebuilt with Opencart which would be a tragedy as the above is my only real problem.

12 May 2017, 11:01 AM
#710
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

Do you have any debug logs?

Justrimless:

I really need to get this working. It's been bugging me for ages and preventing me from moving forward. And I would be happy to pay for a solution.

By what mechanism would this NOT work, (remove the spaces)
http://one stop glasses .co .uk/index.php?main_page=index&cPath=55&fltLens_Width[]=51

When this does,
http://one stop glasses .co. uk/index.php?main_page=index&cPath=55&fltColour[]=Black

I've spoken to to my web hosts/designers but they don't work with Zencart, there is a danger of the site being rebuilt with Opencart which would be a tragedy as the above is my only real problem.

12 May 2017, 11:49 AM
#711
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

There's nothing in it since 2016. Do I need to enable it?

Last entry as below,
[01-Mar-2016 09:46:57 ....public_html/includes/functions/functions_general.php on line 63

12 May 2017, 12:41 PM
#712
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

No you do not have to, the debug logs for Zen Cart are always on (unless you did something to disable them).

Do you have an example of a product that uses the lens width?

Justrimless:

There's nothing in it since 2016. Do I need to enable it?

Last entry as below,
[01-Mar-2016 09:46:57 ....public_html/includes/functions/functions_general.php on line 63

12 May 2017, 12:50 PM
#713
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

The first 40 or so, up to around
http://one stopglasses.co.uk/index.php?main_page=product_info&cPath=55&products_id=998

12 May 2017, 1:06 PM
#714
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

Justrimless:

The first 40 or so, up to around
http://one stopglasses.co.uk/index.php?main_page=product_info&cPath=55&products_id=998

Is there any difference in how you set up this attribute as compared to for example the Head_size attribute?

12 May 2017, 1:11 PM
#715
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Apart from the fact that I set up Head Width filter a couple of years ago, no.

12 May 2017, 1:23 PM
#716
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Justrimless:

Apart from the fact that I set up Head Size filter a couple of years ago, no.

Head Size, sorry.

I set up the Head Size/Colour/Frame Type attributes some years ago, they filter fine. As will some other ones if I enable them (pupil distance for example)

Just no results on any newly added ones.

12 May 2017, 2:24 PM
#717
slf3 avatar

slf3

New Zenner

Join Date:
Apr 2011
Location:
England
Posts:
16
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hi

This is a brillant plugin - many thanks.

Summary: In my implementation the plugin only returns products with 32 or less products_attributes records.

Is this just me or has anyone else come across it? I've searched similar postings on this thread but not found any, so my apologies if this has already been covered and solved before.

Symptoms: go to a category and then 'narrow your results', say by selecting a colour. The result that comes back includes all matching products EXCEPT for those with more than 32 products_attributes.

Solving the problem: I deleted a few of the product_attributes from one of the products affected, taking the number down to 27, and it worked. That product now appears in the 'refine your results' page.

How I investigated: I spent three days, on and off, checking everything I could think of including the code, walking through the generated SQL, our data, and removing then re-installing the code, and couldn't find anything. Then I realised that this only happened to products with a large number of product_attributes.

Could it be a configuration issue? I couldn't see a maximum products_attributes variable but there may be one.

Any ideas welcome?

BTW (since some people may ask) we do need more than 32 variants for some of the products.

Zencart 1.5.5a
Database: MySQL 5.5.5-10.1.22-MariaDB
PHP Version: 5.6.30 (Zend: 2.6.0)
PHP Memory Limit: 128M

We have been running live on zencart since around 2010.

12 May 2017, 3:40 PM
#718
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Justrimless:

I set up the Head Size/Colour/Frame Type attributes some years ago, they filter fine. As will some other ones if I enable them (pupil distance for example)

Just no results on any newly added ones.

I have had a minor breakthrough. I think.
I noted that all my attributes up to option ID '35' filter fine, ones after that do not.

I have some missing options IDs where I have deleted old attributes, so in phpmyadmin I copied a row and gave it an id of '2', set up test products and attributes of that ID and it seems to search fine.

Whatever works eh?

13 May 2017, 11:58 AM
#719
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Dynamic Filter [Support Thread]

Can this mod filter on read only attributes as well?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions