Forums / Addon Sideboxes / Dynamic Filter [Support Thread]

Dynamic Filter [Support Thread]

Views: 653,483

Results 761 to 780 of 809
25 Jan 2019, 8:56 AM
#761
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Dynamic Filter [Support Thread]

Hello, yes:

SELECT @cid:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Dynamic Filter';
DELETE FROM configuration WHERE configuration_group_id = @cid;
DELETE FROM configuration_group WHERE configuration_group_id = @cid;
INSERT INTO configuration_group VALUES (NULL, 'Dynamic Filter', 'Dynamic Filter Settings', '1', '1');
SET @cid=last_insert_id();
UPDATE configuration_group SET sort_order = @cid WHERE configuration_group_id = @cid;

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'),NULL,"),
  (NULL, 'Enable on All Products Page', 'FILTER_ALL', 'Yes', 'Enable the filter on all products page?', @cid, '20', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"),
  (NULL, 'Enable on New Products Page', 'FILTER_NEW', 'Yes', 'Enable the filter on new products page?', @cid, '30', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"),
  (NULL, 'Enable on Featured Products Page', 'FILTER_FEATURED', 'Yes', 'Enable the filter on featured products page?', @cid, '40', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"),
  (NULL, 'Enable on Specials Page', 'FILTER_SPECIALS', 'Yes', 'Enable the filter on specials page?', @cid, '50', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"),
  (NULL, 'Enable on Search Page', 'FILTER_SEARCH', 'Yes', 'Enable the filter on advanced search page?', @cid, '60', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,"),
  (NULL, 'Filter Style', 'FILTER_STYLE', 'Link', 'How are the filters to be applied?<br /><br /><strong>Link</strong> - Each option is a link; Only one filter can be applied at a time.<br /><strong>Dropdown (Single)</strong> - Each option is part of a drop down list; Only one filter can be applied at a time.<br /><strong>Dropdown (Multi)</strong> - Each option is part of a drop down list; Multiple filters can be applied at a time.<br /><strong>Checkbox (Single)</strong> - Each option is a checkbox; Only one filter can be applied at a time.<br /><strong>Checkbox (Multi)</strong> - Each option is a checkbox; Multiple filters can be applied at a time.', @cid, '70', now(), now(), NULL, "zen_cfg_select_option(array('Link', 'Dropdown - Single', 'Dropdown - Multi', 'Checkbox - Single', 'Checkbox - Multi'),NULL,"),
  (NULL, 'Disabled Options Method', 'FILTER_METHOD', 'Greyed', 'How are the unavailable filter options to be disabled?<br /><br /><strong>Greyed</strong> - Grey out the unavailable options.<br /><strong>Hidden</strong> - Hide the unavailable options.', @cid, '80', now(), now(), NULL, "zen_cfg_select_option(array('Greyed', 'Hidden'),NULL,"),
  (NULL, 'Options Box Style', 'FILTER_OPTIONS_STYLE', 'Scroll', 'Which style of box should be used when the maximum number of options has been reached?<br /><br /><strong>Scroll</strong> - Scroll box.<br /><strong>Expand</strong> - Expanding box with More/Less link.<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '90', now(), now(), NULL, "zen_cfg_select_option(array('Scroll', 'Expand'),NULL,"),
  (NULL, 'Maximum Number of Options', 'FILTER_MAX_OPTIONS', '9', 'What is the maximum number of options to be displayed before scroll bar/More link is visible?<br /><br /><strong>Note: This option is only applicatble with Link or Checkbox filter styles.</strong>', @cid, '100', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Enable Price filter', 'SHOW_FILTER_BY_PRICE', 'Yes', 'Enable the price filter?', @cid, '105', now(), now(), NULL, "zen_cfg_select_option(array('Yes', 'No'),NULL,NULL,"),
  (NULL, 'Maximum Number of Price Ranges', 'FILTER_MAX_RANGES', '5', 'What is the maximum number of price range groups?<br /><br /><strong>Note: This can be overridden by the Maximum Price Range parameter</strong>', @cid, '110', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Minimum Price Range', 'FILTER_MIN_PRICE', '10', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '120', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Maximum Price Range', 'FILTER_MAX_PRICE', '25', 'What is the minimum gap in the price ranges?<br />Set as zero to deactivate.', @cid, '130', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Include Options', 'FILTER_OPTIONS_INCLUDE', '', 'Enter the list of option IDs to be included in the filter, separated by commas (i.e. 1,2,3)<br />Only the option numbers listed here will appear in the filter.<br />Leave blank to deactivate.', @cid, '140', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Exclude Options', 'FILTER_OPTIONS_EXCLUDE', '', 'Enter the list of option IDs to be excluded from the filter, separated by commas (i.e. 1,2,3)<br />The option numbers listed here will <strong>not</strong> appear in the filter.<br />Leave blank to deactivate.', @cid, '150', now(), now(), NULL, NULL,NULL,),
  (NULL, 'Google Event Tracking', 'FILTER_GOOGLE_TRACKING', 'No', 'Use Google Event Tracking?<br /><br /><strong>No</strong> - Do not use Google Event Tracking<br /><strong>ga.js</strong> - Use traditional ga.js Google Event Tracking method<br /><strong>Asynchronous</strong> - Use new asynchronous Google Event Tracking method<br /><br /><strong>Note: Requires Google Analytics Code</strong>', @cid, '160', now(), now(), NULL, "zen_cfg_select_option(array('No', 'ga.js', 'Asynchronous'),NULL,");

Indeed there is missing col, i investigated a litle. My older version of zencart has 11 cols and the new 1.5.6 has 12 cols.

I made an attemp with phpMyadmin and in some ways it was sucsesfull. I just added one more :

NULL,

at the end and, after imported the whole table with phpMyadmin, now everything works but in a ugly way :)...

On front end Dynamic Filter sidebox is present but all the text is messed, I mean there is no logical conection betwen the text and Attributes or said other way the names of attributes are not displayed.

What should i do does anybody have any idea?
Thanks.

My most recent work: magprom.net

25 Jan 2019, 3:11 PM
#762
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Dynamic Filter [Support Thread]

It sounds like perhaps your extra column wasn't entered in the right place to get the other columns to line up. You would need to look again to see where the missing column is instead of just adding one at the end. It is also possible it could be something else was installed incorrectly, can you show a screenshot of what is wrong?


Zen Cart and it's community are the best!!

25 Jan 2019, 3:40 PM
#763
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

That is what happens when you do not define the field names first. Maybe for a future update, it can be integrated into the query.

lankeeyankee:

It sounds like perhaps your extra column wasn't entered in the right place to get the other columns to line up. You would need to look again to see where the missing column is instead of just adding one at the end. It is also possible it could be something else was installed incorrectly, can you show a screenshot of what is wrong?

25 Jan 2019, 5:47 PM
#764
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

Design75:

That is what happens when you do not define the field names first. Maybe for a future update, it can be integrated into the query.

Its brand new zencart 1.5.6 with only Ceon URI mappings where again I had some problems but nothing that has to do with Dynamic Filter.
Everything works exept the attr. names.

Does anybody tried Dynamic Filter with zencart 1.5.6?

Kind regards.

My most recent work: magprom.net

28 Jan 2019, 9:12 AM
#765
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

Ok so where did I get with phpMyadmin:

Everything works exept for:

  • Dynamic Filter link in admin>configuration is missing but accessible if you type the configuration_id=NUMBER so not a big deal.

  • Filter by manufacturers is missing big deal

No errors and log files but still no manufacturer filter, any gueses?

My most recent work: magprom.net

28 Jan 2019, 9:24 AM
#766
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

I have found solution but not sure if its right to bypass it that way...

In Your Template/sideboxes/tpl_dynamic_filter.php

somewhere line 132

// Only display if standard zen cart category/manufacturer dropdown is disabled
  if (PRODUCT_LIST_FILTER == 0)

If you change it like this:

// Only display if standard zen cart category/manufacturer dropdown is disabled
  if (PRODUCT_LIST_FILTER == 1)

It works as it should work.

My most recent work: magprom.net

28 Jan 2019, 9:59 AM
#767
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

That should not be necessary, if you have the Standard zen cart manufacturers filter disabled.

perfumbg:

I have found solution but not sure if its right to bypass it that way...

In Your Template/sideboxes/tpl_dynamic_filter.php

somewhere line 132

// Only display if standard zen cart category/manufacturer dropdown is disabled
if (PRODUCT_LIST_FILTER == 0)

> 
> If you change it like this:
> 
> ```html
// Only display if standard zen cart category/manufacturer dropdown is disabled
  if (PRODUCT_LIST_FILTER == 1)

It works as it should work.

12 Feb 2019, 10:35 AM
#768
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

soxophoneplayer:

'Somewhere' I read that the filters would work with only a single stock by attribute used, but I was unable to accomplish this - the filters would behave in very strange ways and cause template to go whacky and adding a product with attributes to the cart would add 2 products instead. I ended up removing SbyA altogether as I didn't have many products using it anyway. Another thing I found with the filters - EVERY product had to have at least one read-only attribute assigned of the product listing page would go whacky.

To deal with the SbyA products I have I simply created new products - ie one product large, one product medium, one product small etc instead of a single product with the size attributes. But as I mentioned, I only have a few of such products so it wasn't a big deal. It would be a lot of work if many products.

I had to install the last ZC 1.5.6.a and also have the same issue, only one attribute, one price range, one manufacturer and no filtered result when hit filter.

I have this error:

[12-Feb-2019 12:30:17 Europe/Sofia] Request URI: /prahosmukachki, IP address: 94.190.193.162
#1  array_replace() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:626]
#2  queryFactoryResult->MoveNext() called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/sideboxes/tpl_dynamic_filter.php:96]
#3  require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/sideboxes/tpl_dynamic_filter.php) called at [/home/magpybbe/test.magprom.net/includes/modules/sideboxes/responsive_classic/dynamic_filter.php:12]
#4  require(/home/magpybbe/test.magprom.net/includes/modules/sideboxes/responsive_classic/dynamic_filter.php) called at [/home/magpybbe/test.magprom.net/includes/modules/column_right.php:29]
#5  require(/home/magpybbe/test.magprom.net/includes/modules/column_right.php) called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php:183]
#6  require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/magpybbe/test.magprom.net/index.php:97]
--> PHP Warning: array_replace(): Argument #2 is not an array in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 626.

any ideas?

My most recent work: magprom.net

12 Feb 2019, 11:03 AM
#769
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

perfumbg:

I had to install the last ZC 1.5.6.a and also have the same issue, only one attribute, one price range, one manufacturer and no filtered result when hit filter.

I have this error:

[12-Feb-2019 12:30:17 Europe/Sofia] Request URI: /prahosmukachki, IP address: 94.190.193.162
#1 array_replace() called at [/home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php:626]
#2 queryFactoryResult->MoveNext() called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/sideboxes/tpl_dynamic_filter.php:96]
#3 require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/sideboxes/tpl_dynamic_filter.php) called at [/home/magpybbe/test.magprom.net/includes/modules/sideboxes/responsive_classic/dynamic_filter.php:12]
#4 require(/home/magpybbe/test.magprom.net/includes/modules/sideboxes/responsive_classic/dynamic_filter.php) called at [/home/magpybbe/test.magprom.net/includes/modules/column_right.php:29]
#5 require(/home/magpybbe/test.magprom.net/includes/modules/column_right.php) called at [/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php:183]
#6 require(/home/magpybbe/test.magprom.net/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/magpybbe/test.magprom.net/index.php:97]
--> PHP Warning: array_replace(): Argument #2 is not an array in /home/magpybbe/test.magprom.net/includes/classes/db/mysql/query_factory.php on line 626.

> 
> any ideas?
which version of the module are you using?
12 Feb 2019, 11:30 AM
#770
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

I had used Version 1.3 on zc1.5.6 and it worked but now i'm using it on 1.5.6.a and I have this issue.

My most recent work: magprom.net

12 Feb 2019, 12:15 PM
#771
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Dynamic Filter [Support Thread]

I found the problem if somebody ever have this issue:

I didn't renamed /includes/index_filters/YOUR_TEMPLATE and this caused the error.

Kind regards.

My most recent work: magprom.net

12 Feb 2019, 1:04 PM
#772
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

Happens to the best :cool:. Thanks for reporting back

perfumbg:

I found the problem if somebody ever have this issue:

I didn't renamed /includes/index_filters/YOUR_TEMPLATE and this caused the error.

Kind regards.

18 Feb 2019, 10:52 AM
#773
echexxxxxxxx10 avatar

echexxxxxxxx10

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

hello, I found the filter in the theme that I bought, but I can not make it work, when I try to set the price range to be filtered, it does not work and in the log file I receive this error:

[18-Feb-2019 11:49:37 Europe/Rome] PHP Warning:  in_array() expects parameter 2 to be array, string given in /home/zenplan4.domain.com/includes/templates/alto/sideboxes/tpl_dynamic_filter.php on line 347
[18-Feb-2019 11:49:37 Europe/Rome] Request URI: /quarzo-c-2_3/?sort=3a&fltPrezzo=Array, IP address: 5.000.232.000
#1  array_filter() called at [/home/zenplan4.domain.com/includes/templates/alto/sideboxes/tpl_dynamic_filter.php:360]
#2  require(/home/zenplan4.domain.com/includes/templates/alto/sideboxes/tpl_dynamic_filter.php) called at [/home/zenplan4.domain.com/includes/modules/sideboxes/alto/dynamic_filter.php:12]
#3  require(/home/zenplan4.domain.com/includes/modules/sideboxes/alto/dynamic_filter.php) called at [/home/zenplan4.domain.com/includes/modules/column_left.php:28]
#4  require(/home/zenplan4.domain.com/includes/modules/column_left.php) called at [/home/zenplan4.domain.com/includes/templates/alto/common/tpl_main_page.php:254]
#5  require(/home/zenplan4.domain.com/includes/templates/alto/common/tpl_main_page.php) called at [/home/zenplan4.domain.com/index.php:97]

[18-Feb-2019 11:49:37 Europe/Rome] PHP Warning:  array_filter() expects parameter 1 to be array, string given in /home/zenplan4.domain.com/includes/templates/alto/sideboxes/tpl_dynamic_filter.php on line 360

can someone help me?
thank you

5 Mar 2019, 9:19 PM
#774
gwynwyffar avatar

gwynwyffar

New Zenner

Join Date:
Dec 2006
Location:
Hudson Valley, New York USA
Posts:
93
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I'm having the same issue. Plugin was pre-installed in my template as well. I've contacted template author and will update here when I get a solution.

9 Mar 2019, 11:51 AM
#775
echexxxxxxxx10 avatar

echexxxxxxxx10

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

gwynwyffar:

I'm having the same issue. Plugin was pre-installed in my template as well. I've contacted template author and will update here when I get a solution.

hello, it's a problem with Ultimate URLs
setting: Enable automatic redirects? false
I solved that

9 Jul 2019, 3:42 PM
#776
pingfah avatar

pingfah

New Zenner

Join Date:
Mar 2019
Location:
Cornwall
Posts:
33
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hello all.

It was mentioned some years ago in this thread that the counts in brackets after the attributes remain constant rather than changing to reflect how many products remain as the options are narrowed down. I just wondered if there has been any movement on implementing this since then? It would really finish off what is an excellent piece of work.

9 Jul 2019, 4:58 PM
#777
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

Pingfah:

Hello all.

It was mentioned some years ago in this thread that the counts in brackets after the attributes remain constant rather than changing to reflect how many products remain as the options are narrowed down. I just wondered if there has been any movement on implementing this since then? It would really finish off what is an excellent piece of work.

Short answer is no. I have not had the time to finish this,so if anyone else wants to, please do.

31 Aug 2019, 12:32 AM
#778
noernberg avatar

noernberg

New Zenner

Join Date:
Dec 2013
Location:
O
Posts:
7
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I read a warning on this mod that you should be sure to use only the correct one for your Zen Cart version. I am using 1.5.1, which has no specific mod to download. Can anyone advise as to whether any of the mods would likely work with 1.5.1, or am I stuck having to upgrade (which makes me nervous)?

7 Sep 2019, 11:31 PM
#779
noernberg avatar

noernberg

New Zenner

Join Date:
Dec 2013
Location:
O
Posts:
7
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Sorry, I got past the issue above and implemented it successfully. Right in front of my face. It's a terrific addition!

But I am having one problem I can't seem to solve. When I click "filter", it works well from the categories and from search pages, but it does not work when I filter from the 'Specials', 'New Products', 'Featured Products', or 'All Products' pages/queries. When filtering from these pages, it simply reloads my main page (with no products at all), even though the URL in the browser shows the SQL call.

Here are some example resulting URLs where I try the same filter from the different locations, all of which should return some matching results. The Filter is for 'Format' = 'Single'

From the "Specials" page - does not work, just shows/returns the main index page. But it keeps the URL, so it's not a redirect.
https://noernbergstamps.com/?fltFormat%5B%5D=Single&x=25&y=12

From the "New Products" page - does not work, just shows the main index page
https://noernbergstamps.com/?disp_order=6&fltFormat%5B%5D=Single&x=20&y=2

From a page of search results: - works as expected
https://www.noernbergstamps.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=britain&inc_subcat=0&sort=4a&fltFormat%5B%5D=Single&x=24&y=7

The first thing I notice is that URL on the Non-Working URLs are missing the index.php?main_page=(whatever). If I manually add it to the URL, then it works. Example is:
https://noernbergstamps.com/index.php?main_page=specials&fltFormat%5B%5D=Single&x=24&y=7

So, where is the code at that I can get this resulting URL to be fixed permanently?

Possibly relevant things I am using:
ZenCart 1.5.1
Ceon URL Mapping 4.4.3
Dynamic Filtering 2

26 Sep 2019, 5:53 PM
#780
antontomov avatar

antontomov

New Zenner

Join Date:
Jul 2017
Location:
United Kingdom
Posts:
12
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hello,

I have a problem with price filter in the Dynamic Attribute Filter Plugin version 1.3 installed on Zen Cart v1.5.5e. After choosing a price range and click on the filter it opens a blank page with error 403(Forbidden). The other filters are working fine(category and attributes), just the price not working. I tried with a brand new installation of Zen Cart and 1.5.5e and still the price filter not working. I know that the plugin is for 1.5.4 but I read that for some people it works with higher versions. The problem doesn't generate any errors in the log folder.

If someone had the same issue and somehow resolved it, please give me the solution.

Here you can see/test the problem in brand new Zen Cart 1.5.5e installation: http://knigianglia.co.uk/CLEAN/index.php?main_page=products_new