Results 1 to 10 of 809

Hybrid View

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

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Kevin205 View Post
    Has anyone encountered similar errors with Dynamic Filter v1.0, when using ' for feet and " for inches and filtering for attribute size?
    Example Attribute Size: with value 1'-4" x 2'-6"
    I entered a the value in a testshop and getting the same error. Like explained to you in other threads it has to do with the ' and " in the value name. I think the only solution right now is to use inch and ft instead

  2. #2
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Design75 View Post
    I entered a the value in a testshop and getting the same error. Like explained to you in other threads it has to do with the ' and " in the value name. I think the only solution right now is to use inch and ft instead
    I cannot use inch and ft, as the owner is insisting in getting size attribute in that particular format. I am trying to use escape or special character codes to resolve the issue; as suggested in the other threads.

    Thank you for the reply and your solution.
    Using Zen Cart 1.5.1

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

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Kevin205 View Post
    I cannot use inch and ft, as the owner is insisting in getting size attribute in that particular format. I am trying to use escape or special character codes to resolve the issue; as suggested in the other threads.

    Thank you for the reply and your solution.
    I also tried using the escapes, and special character codes, but they are rewritten to the original character when saving the attribute name

  4. #4
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Design75 View Post
    I also tried using the escapes, and special character codes, but they are rewritten to the original character when saving the attribute name
    Thank you for confirming that.

    I think the error is getting from the following file at around line 54, I am trying to make sense out of it.
    includes/modules/MyTemplate/dynamic_filter.php
    Using Zen Cart 1.5.1

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

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Kevin205 View Post
    Thank you for confirming that.

    I think the error is getting from the following file at around line 54, I am trying to make sense out of it.
    Basically what happens is that the single and double are entered in to the query, and thus causing errors. We need to figure a way to tell the script to add an escape to certain characters before adding them to the query.
    It shouldn't be that difficult, but my skills are still limited, and am learning on the way :)

  6. #6
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Design75 View Post
    but my skills are still limited, and am learning on the way :)
    Same here.

    I tried escaping the " and or '. No luck.

    The only thing that does not produce an error, is the following format:
    1& #39;-2& #34; x 1& #39;-2& #34;
    But try to tell a shop owner to look at the following and do your additions, deletions, edits and audits and etc.

    5&# 39;-7& #34; x 3& #39;-11& #34;
    1& #39;-2& #34; x 1& #39;-2& #34;
    12& #39;-4& #34; x 6& #39;-6& #34;
    1&# 39;-2& #34; x 1& #39;-2& #34;
    2&# 39;-9& #34; x 5& #39;-3& #34;
    .
    .
    .
    How is that for head spin?

    I am trying to figure out a way also.

    Thanks.




    ps. Spaces between & and # are left out, so it displays here.
    Last edited by Kevin205; 26 May 2013 at 05:25 PM.
    Using Zen Cart 1.5.1

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

    Default Re: Help with Dynamic filter 1.1

    Quote Originally Posted by Kevin205 View Post
    Same here.

    I tried escaping the " and or '. No luck.

    The only thing that does not produce an error, is the following format:


    But try to tell a shop owner to look at the following and do your additions, deletions, edits and audits and etc.


    How is that for head spin?

    I am trying to figure out a way also.

    Thanks.




    ps. Spaces between & and # are left out, so it displays here.
    Here's a quick solution,

    find in includes/modules/YUOR_TEMPLATE/dynamic_filter.php

    PHP Code:
              $having .= ' FIND_IN_SET("' $key $value '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))'
    replace with:
    PHP Code:
              $value preg_replace('/"/','\\"',$value);
              
    $value preg_replace('/&acute/','\\&acute',$value);
              
    $having .= ' FIND_IN_SET("' $key $value '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))'
    more values can be added if needed

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 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

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