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: Dynamic Filter [Support Thread]

    Quote Originally Posted by Kevin205 View Post
    Is there a way to control the display of prices in the filter,
    instead of
    Name:  Capture5.GIF
Views: 446
Size:  1.8 KB

    to the following,
    $25 -- $50
    $51 -- $75
    $76 -- $100
    $100 and over
    Not that I know of. It would be useful :)
    Also keep in mind that the price used/shown in the filter is the one without tax/vat.

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Dynamic Filter [Support Thread]

    Quote Originally Posted by Design75 View Post
    Not that I know of. It would be useful :)
    Also keep in mind that the price used/shown in the filter is the one without tax/vat.
    cant you set the price limits in the admin settings for dynamic filter?
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Dynamic Filter [Support Thread]

    I don't think you can.
    Using Zen Cart 1.5.1

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Dynamic Filter [Support Thread]

    Quote Originally Posted by Kevin205 View Post
    I don't think you can.
    Maximum Number of Price Ranges ??
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Dynamic Filter [Support Thread]

    Quote Originally Posted by philip937 View Post
    Maximum Number of Price Ranges ??
    Yes you can, but on the front end the box is showing the ranges in prices excluding tax. So you get price ranges that make no sense.

  6. #6
    Join Date
    Mar 2013
    Posts
    32
    Plugin Contributions
    0

    Default Re: Dynamic Filter [Support Thread]

    Hi ,
    I've just noticed after introducing manufacturers the following error for dynamic filter:
    [05-Apr-2013 20:37:49 UTC] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM manufacturers WHERE manufacturers_id IN (1,2) ORDER BY' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM manufacturers WHERE manufacturers_id IN (1,2) ORDER BY manufacturers_name in C:\xampp\htdocs\zencart\includes\classes\db\mysql\query_factory.php on line 120

    Anyone knows how to fix it?
    The code is here:
    $manufacturers = $db->Execute("SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(" . implode(',', $filteredManufacturers) . "), 'Y', 'N') as flag" .
    " FROM " . TABLE_MANUFACTURERS .
    " WHERE manufacturers_id IN (" . implode(',', $unfilteredManufacturers) . ")" .
    " ORDER BY manufacturers_name");

  7. #7
    Join Date
    Jan 2013
    Location
    Harlingen / The Netherlands
    Posts
    8
    Plugin Contributions
    0

    Default Re: Dynamic Filter [Support Thread]

    My appologizes for my maybe incorrect English, i hope you will understand me.

    I have a problem with the dynamic filter. As i understand, you made this filter.

    The search by price option, are prices excluding VAT/TAX.

    So with a search from 10 till 20, products above 20 (we have 21% tax). So a product with a price of 24 will be shown in the list 10 till 20.
    We have been scripting a while now, but can't figure out how we can get to filter for prices including tax.
    Is there a way to solve this problem?

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

    Default Re: Dynamic Filter [Support Thread]

    Quote Originally Posted by Kevin205 View Post
    Is there a way to control the display of prices in the filter,
    instead of
    Name:  Capture5.GIF
Views: 446
Size:  1.8 KB

    to the following,
    $25 -- $50
    $51 -- $75
    $76 -- $100
    $100 and over
    Quote Originally Posted by Design75 View Post
    Not that I know of. It would be useful :)
    Also keep in mind that the price used/shown in the filter is the one without tax/vat.
    Has anyone resolved or addressed this issue?
    Using Zen Cart 1.5.1

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

    Default Re: Dynamic Filter [Support Thread]

    Quote Originally Posted by Kevin205 View Post
    Has anyone resolved or addressed this issue?
    I think I solved the tax problem

    In includes/templates/YOUR_TEMPLATE/sideboxes/tpl_dynamic_filter.php find

    PHP Code:
                if ($end $max$text $currency_symbol round($start $conversion_rate) . ' -- ' $currency_symbol round($end $conversion_rate);
                else 
    $text $currency_symbol round($start $conversion_rate) . ' and over'
    and replace with
    PHP Code:
        if ($end $max)
        {
          
    $text $currency_symbol round((zen_add_tax($start$products_tax)) * $conversion_rate) . ' -- ' $currency_symbol round((zen_add_tax($end$products_tax)) * $conversion_rate);
        }
        else
        {
          
    $text $currency_symbol round((zen_add_tax($start$products_tax)) * $conversion_rate) . ' and over';
        } 
    It works for me, but some further testing is needed, before releasing an update for this module

    If this works, the next step is to replace the hard-coded text for language defines, to make this mod multilingual

 

 

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