Zen Cart Logo
Forums / Addon Sideboxes / Dynamic Filter [Support Thread]

Dynamic Filter [Support Thread]

Views: 652,517

Results 321 to 340 of 809
17 Jul 2013, 10:51
#321
design75 avatar

design75

Totally Zenned

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

Dynamic Filter [Support Thread]

dharrison:

Hi

Going through this, the whole site falls over with the core overrides in functions_general.php

I am doing this on a fresh install and there is no mention of

if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) )
{
// die ('here');
$get_url .= $key . '/' . rawurlencode(stripslashes($value)) . '/';
}
else
{

> In the changes between the end of section 1 and beginning of section 2
> 
> Log file displays the following:
> 
> ```
[17-Jul-2013 09:23:52 UTC] PHP Fatal error:  Cannot redeclare zen_create_random_value() (previously declared in ...........\includes\functions\functions_general.php:626) in ...........\includes\functions\password_funcs.php on line 86

Realistically you have to copy from the bof 1 of 3 section until just before

////
// Wrapper function for round()

> 
> I hope this helps.  I personally am still trying it.

to which zc version are you referring?
17 Jul 2013, 11:00
#322
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

As I originally mentioned, this is on a version 1.5.1. I used the updates on github

And now everything would work all except for the box isn't listed in Layout > Boxes Controller

17 Jul 2013, 11:04
#323
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

dharrison:

As I originally mentioned, this is on a version 1.5.1. I used the updates on github

And now everything would work all except for the box isn't listed in Layout > Boxes Controller

Ok, I will check on that.

17 Jul 2013, 11:27
#324
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Glad to be of help. ;)

The seach box is there. That was an error on my part.

However, it seems to ignore the option id on the one attribute that I have added (age)

17 Jul 2013, 12:15
#325
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Also its not just the issue I have with the filter not showing my attribute option for Age. How can I enable this to work on the home page as well?

Please advise.

04 Aug 2013, 20:42
#326
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

DannyVarley:

  1. Ability to turn on/off product price sorter in config

This option has been added to the latest version on github

05 Aug 2013, 22:10
#327
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I got a warning message in the log file as following:

 PHP Warning:  trim() expects parameter 1 to be string, array given in H:\onlinestore\includes\functions\functions_general.php on line 63

 PHP Stack trace:

   1. {main}() H:\onlinestore\index.php:0

   2. require() H:\onlinestore\index.php:97

   3. require() H:\onlinestore\includes\templates\CPE02\common\tpl_main_page.php:74

   4. require() H:\onlinestore\includes\templates\CPE02\common\tpl_header.php:58

   5. zen_draw_hidden_field() H:\onlinestore\includes\templates\CPE02\templates\tpl_header_currencies.php:20

   6. zen_output_string() H:\onlinestore\includes\functions\html_output.php:469

   7. zen_parse_input_field_data() H:\onlinestore\includes\functions\functions_general.php:77

   8. trim() H:\onlinestore\includes\functions\functions_general.php:63

I set 5 attributes as 5 filters. On the categories pages, the warning message repeated 5 times. On new products, all products and featured products, there is a extra filler - Categories, the message repeated 6 times.

Is anyone can help?, or suggestion?

05 Aug 2013, 22:26
#328
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

su35:

I got a warning message in the log file as following:

PHP Warning: trim() expects parameter 1 to be string, array given in H:\onlinestore\includes\functions\functions_general.php on line 63

PHP Stack trace:

  1. {main}() H:\onlinestore\index.php:0

  2. require() H:\onlinestore\index.php:97

  3. require() H:\onlinestore\includes\templates\CPE02\common\tpl_main_page.php:74

  4. require() H:\onlinestore\includes\templates\CPE02\common\tpl_header.php:58

  5. zen_draw_hidden_field() H:\onlinestore\includes\templates\CPE02\templates\tpl_header_currencies.php:20

  6. zen_output_string() H:\onlinestore\includes\functions\html_output.php:469

  7. zen_parse_input_field_data() H:\onlinestore\includes\functions\functions_general.php:77

  8. trim() H:\onlinestore\includes\functions\functions_general.php:63

> 
> I set 5 attributes as 5 filters. On the categories pages, the warning message repeated 5 times. On new products, all products and featured products, there is a extra filler - Categories, the message repeated 6 times.
> 
> Is anyone can help?, or suggestion?

can't help without having a lot more information, like ZC version, php version, module version etc
05 Aug 2013, 23:38
#329
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hi Design75

Thanks for you replay. The zen-cart version is 1.5.1, php version is 5.4.7 and the DF version is 1.2

09 Aug 2013, 16:37
#330
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hi Design75

I track back to tpl_header_currencies.php:20 and dump the $value, which should be a string, to the screen. There are exactly some non string element here.

Attachment 12872

09 Aug 2013, 18:46
#331
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

su35:

Hi Design75

I track back to tpl_header_currencies.php:20 and dump the $value, which should be a string, to the screen. There are exactly some non string element here.

Attachment 12872
That file is not a file standard to ZC, or this mod, it comes with some templates. Like the Pure series

10 Aug 2013, 00:25
#332
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Design75:

That file is not a file standard to ZC, or this mod, it comes with some templates. Like the Pure series

This file is formed by combining the modules\sideboxes\currencies.php and templates\template_default\sideboxes\tpl_currencies.php to display the currencies selection on other place. Now, I had removed those code, turned on the currencies sidebox and got the same warning message.

zen_draw_hidden_field() H:\onlinestore\includes\modules\sideboxes\currencies.php:33

Attachment 12878

10 Aug 2013, 15:43
#333
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

It looks like that, instead of one element of a array, a array was passed on as a parameter some where.

10 Aug 2013, 16:56
#334
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

su35:

It looks like that, instead of one element of a array, a array was passed on as a parameter some where.

Not that I do not want to help, but I still fail to see what this has to do with Dynamic Filter

13 Aug 2013, 15:30
#335
dinoleix avatar

dinoleix

New Zenner

Join Date:
Aug 2012
Posts:
17
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

HI , I am trying to add lots of filter to my products ( color, size, type , material, etc ) so that customers can filter their desired choices

All filters shows up on the side box filter list AND ALSO in the product info page

I don;t want all these filters to come up on my product info page ( except for color and size attribute)

I have see the flexible attribute plugin also but not able to go forward , also the read only attribute is not working

Experts , could you please advice , how to achieve this
https://www.feerol.com

29 Aug 2013, 12:04
#336
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

On v1.51, I have replaced my installed 'product_filter_by_attribute_and_price_range_0-7' with the 'Dynamic_Attribute_filter-Version-1.2' from Design75's github page (thanks very much for this, it's great) and is working on local dev server - so sorry no live site to see.

I need to know whether the following behaviour is normal:

To replace the stock alpha dropdown I have installed both 'product_filter_module_for_zencart_1-1' and 'product_listing_sorter_v2' (not at the same time!) both of which do a similar sort of thing, then

if I filter with the dynamic mod and THEN sort with either of the above mods the filtered products get reset and display all

but, if I FIRST sort the products, say by price high-low and then filter, the sort remains in place on the filtered products.

So basically - sorting after filtering resets the filter

Pretty sure this isn't normal does anyone have an suggestions bearing in mind you can't see the site?

31 Aug 2013, 06:45
#337
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

simon1066:

On v1.51, I have replaced my installed 'product_filter_by_attribute_and_price_range_0-7' with the 'Dynamic_Attribute_filter-Version-1.2' from Design75's github page (thanks very much for this, it's great) and is working on local dev server - so sorry no live site to see.

I need to know whether the following behaviour is normal:

To replace the stock alpha dropdown I have installed both 'product_filter_module_for_zencart_1-1' and 'product_listing_sorter_v2' (not at the same time!) both of which do a similar sort of thing, then

if I filter with the dynamic mod and THEN sort with either of the above mods the filtered products get reset and display all

but, if I FIRST sort the products, say by price high-low and then filter, the sort remains in place on the filtered products.

So basically - sorting after filtering resets the filter

Pretty sure this isn't normal does anyone have an suggestions bearing in mind you can't see the site?

I managed to find a workaround for this

31 Aug 2013, 07:15
#338
long_john avatar

long_john

New Zenner

Join Date:
Dec 2011
Posts:
19
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Anyone knows why would this mod throw an error on php 5.3, but does not on php 5.2?
I have tested this and error "trim() expects parameter 1 to be string, array given in functions_general.php on line 63" only shows up on php 5.3.

Line 63 is part of:

  function zen_parse_input_field_data($data, $parse) {
    return strtr(trim($data), $parse);
  }

Does anyone have a solution for this?

01 Sep 2013, 10:22
#339
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Design75:

Very nice !

but it can be written as:

      $having .= ' FIND_IN_SET("' . $key . addslashes($value) . '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))';

Do you think you could explain how this works, which special characters does it escape? Looks like it might be just ["]. If so how would I amend the code to escape other characters? (I have html code in products_options_values_name so there may be more characters to address)

I'm also having trouble getting products to display when characters such as comma and decimal point are in products_options_values_name (no html code in these)

How would I amend the code to convert, I guess

,  to & #44;
.  to & #46;
(spaces added after &)

Thanks
02 Sep 2013, 06:55
#340
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Whilst looking at this further it seems that although there was definitely an issue with using a comma, the no show of some products may be related to the number of characters in products_options_values_name.

It all seems a bit odd, so I'm off to check that file merging was done properly