Page 34 of 81 FirstFirst ... 24323334353644 ... LastLast
Results 331 to 340 of 809
  1. #331
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Dynamic Filter - PHP Warning: trim() expects parameter 1 to be string

    Quote Originally Posted by su35 View Post
    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

  2. #332
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Dynamic Filter - PHP Warning: trim() expects parameter 1 to be string

    Quote Originally Posted by Design75 View Post
    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.
    Code:
    zen_draw_hidden_field() H:\onlinestore\includes\modules\sideboxes\currencies.php:33
    Name:  temp.JPG
Views: 272
Size:  29.9 KB

  3. #333
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Dynamic Filter - PHP Warning: trim() expects parameter 1 to be string

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

  4. #334
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Dynamic Filter - PHP Warning: trim() expects parameter 1 to be string

    Quote Originally Posted by su35 View Post
    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

  5. #335
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Dynamic Filter - Left Col Boxes Misaligned

    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
    www.feerol.com

  6. #336
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,300
    Plugin Contributions
    1

    Default Re: Dynamic Filter - with sorter

    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?

  7. #337
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,300
    Plugin Contributions
    1

    Default Re: Dynamic Filter - with sorter

    Quote Originally Posted by simon1066 View Post
    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

  8. #338
    Join Date
    Dec 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Dynamic Filter - with sorter

    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:

    PHP Code:
      function zen_parse_input_field_data($data$parse) {
        return 
    strtr(trim($data), $parse);
      } 
    Does anyone have a solution for this?

  9. #339
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,300
    Plugin Contributions
    1

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Design75 View Post
    Very nice !

    but it can be written as:

    PHP Code:
              $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
    Last edited by simon1066; 1 Sep 2013 at 11:29 AM. Reason: space added to html spec. char.

  10. #340
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,300
    Plugin Contributions
    1

    Default Re: Help with Dynamic filter 1.1

    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

 

 
Page 34 of 81 FirstFirst ... 24323334353644 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. Empty Dynamic Filter
    By LadyoftheCave in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Jun 2016, 12:47 PM
  3. v150 Dynamic filter
    By Dinoleix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Aug 2013, 10:23 AM
  4. v150 Dynamic filter - All pages
    By Okkwebmedia in forum Addon Sideboxes
    Replies: 0
    Last Post: 8 Jul 2013, 08:52 AM
  5. v138a Dynamic Filter
    By SoftCorpse in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 18 Jun 2012, 01:32 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR