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

Dynamic Filter [Support Thread]

Views: 652,529

Results 461 to 480 of 809
7 Aug 2014, 8:34 AM
#461
wrickspam avatar

wrickspam

New Zenner

Join Date:
Dec 2011
Location:
Emmen, The Netherlands
Posts:
85
Plugin Contributions:
0

Dynamic Filter [Support Thread]

mandolin:

Hi,

I installed the Dynamic Filter version 1.5.0 on my test zen cart version 1.5.1, according to the instructions, including the SQL install. I did not have any errors or conflicts on the files. After configuring the plugin in the Admin backend, the front-end display JUST a blank page with a 500 error. The front-end worked properly before I backed up the files/database and installed the plugin.

Anyone have any ideas on what the problem is or how I can troubleshoot it? Although I have programmed php and mysql for years, I am stuck right now.

Here is some more info:
PHP Version: 5.4.29 (Zend: 2.4.0) PHP Memory Limit: 256M
Database: MySQL 5.5.37-35.1

Thanks

You should check your logs directory for any logs being created so we can help you troubleshoot

7 Aug 2014, 12:06 PM
#462
mandolin avatar

mandolin

New Zenner

Join Date:
Aug 2014
Location:
United States
Posts:
9
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Thanks, but I did check the logs before I posted - to no avail. I did go through and re-install the plugin late last night - with partial success. My website front-end is now visible to me (not published for the world yet), but I do not see the sidebox, even though I enabled it by following the configuration instructions several times.

I checked the logs again - nothings. And there is nothing in the Firefox HTML console either, except for the sideboxes I already have that display properly - and no errors in the general console.

9 Aug 2014, 11:25 AM
#463
mandolin avatar

mandolin

New Zenner

Join Date:
Aug 2014
Location:
United States
Posts:
9
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I re-installed a vanilla zen cart and added dynamic filter back in. The admin section is okay and the front-end is displaying, but NO DYNAMIC FILTER!!!

And no log information!

Configuration Info:
Zen Cart 1.5.1
PHP Version: 5.4.29 (Zend: 2.4.0) PHP Memory Limit: 256M
Database: MySQL 5.5.37-35.1

Anyone have suggestions for fixes or the best debugging tool? Please help!

12 Aug 2014, 8:11 AM
#464
wrickspam avatar

wrickspam

New Zenner

Join Date:
Dec 2011
Location:
Emmen, The Netherlands
Posts:
85
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Are you sure you uploaded all the files correctly especially the files in the sidebox folder? What language is your webshop in ?

12 Aug 2014, 10:46 PM
#465
mandolin avatar

mandolin

New Zenner

Join Date:
Aug 2014
Location:
United States
Posts:
9
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

I did the install from scratch again and followed the instructions precisely again. I still had the white screen. After googling for the solution again and reading the suggestions, including the Dr Bytes fix (did not work), I copied the original functions_general.php file back to my server and now it works.

Now I need to figure out how to get it to display on the main or home page. Any ideas or pointers to other posts?

14 Aug 2014, 6:17 AM
#466
wrickspam avatar

wrickspam

New Zenner

Join Date:
Dec 2011
Location:
Emmen, The Netherlands
Posts:
85
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

from what i remember its not possible to add this on the main/frontpage

18 Aug 2014, 10:42 PM
#467
giftidea avatar

giftidea

New Zenner

Join Date:
Aug 2014
Location:
Florida
Posts:
1
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Love This Mod but when I updated to the latest version of Zen Cart the Dynamic Filter Crash my site leaving it with a white screen. Is anyone else having this problem?? I reverted back to my back up before I installed the dynamic filter and the site worked again. I tried 3 more times with the same result. Anyone else having the same problem?

19 Aug 2014, 12:10 AM
#468
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Giftidea:

Love This Mod but when I updated to the latest version of Zen Cart the Dynamic Filter Crash my site leaving it with a white screen. Is anyone else having this problem?? I reverted back to my back up before I installed the dynamic filter and the site worked again. I tried 3 more times with the same result. Anyone else having the same problem?

By 'latest version' do you mean Zen Cart 1.5.3? If so, this plugin has not been updated for that version yet (AFAIK).

19 Aug 2014, 6:52 AM
#469
wrickspam avatar

wrickspam

New Zenner

Join Date:
Dec 2011
Location:
Emmen, The Netherlands
Posts:
85
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

This plugin is allso not updated for 1.5.1 and needs a lot of custom edits to get it working on 1.5.1

19 Aug 2014, 1:09 PM
#470
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

wrickspam:

This plugin is allso not updated for 1.5.1 and needs a lot of custom edits to get it working on 1.5.1

As far as I remember, the only files that I had make changes to make it work with 1.51 was for split_pages_php and functions_general.php. Those were the ones that needed more careful attention as those core files has changed some since the last update mod. As far as the other files, it wasn't neccesary but I ended up merging them just so the files are updated with the appropriate headers. But so far, this mod has installed smoothly.

And for those who use the links method, you may want to add better categories and apply it to this mod. It makes for a much better visual for the customer.

21 Aug 2014, 12:10 PM
#471
vjef avatar

vjef

New Zenner

Join Date:
Jan 2010
Posts:
90
Plugin Contributions:
2

Re: Dynamic Filter [Support Thread]

jeking:

By 'latest version' do you mean Zen Cart 1.5.3? If so, this plugin has not been updated for that version yet (AFAIK).

Confirm, the module does not work with the latest Zen Cart 1.5.3. The error log says the following:
PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in W:\home\localhost\www\zen-cart-v153\includes\functions\functions_general.php:626) in W:\home\localhost\www\zen-cart-v153\includes\functions\password_funcs.php on line 75

So, blank page is under the store-front.

21 Aug 2014, 1:08 PM
#472
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

VJef:

Confirm, the module does not work with the latest Zen Cart 1.5.3. The error log says the following:
PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in W:\home\localhost\www\zen-cart-v153\includes\functions\functions_general.php:626) in W:\home\localhost\www\zen-cart-v153\includes\functions\password_funcs.php on line 75

So, blank page is under the store-front.

The mod does work with 1.5.3. But as you noted you cannot just blindly move all mod files to your store. Instead you have to compare the files and merge the codes accordingly. Functions general was 1 of the few files in this mod that has old code from previous versions. But the mod is documented well so merging is not an issue.

4 Sep 2014, 8:03 AM
#473
wrickspam avatar

wrickspam

New Zenner

Join Date:
Dec 2011
Location:
Emmen, The Netherlands
Posts:
85
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

VJef:

Confirm, the module does not work with the latest Zen Cart 1.5.3. The error log says the following:
PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in W:\home\localhost\www\zen-cart-v153\includes\functions\functions_general.php:626) in W:\home\localhost\www\zen-cart-v153\includes\functions\password_funcs.php on line 75

So, blank page is under the store-front.

search through this forum, in 1.5.1 this error allso was present, and there was a fix posted by dr blyte.. you might be able to get this plugin working by implementing that .. ( i havent tried)

13 Sep 2014, 6:17 PM
#474
desmat avatar

desmat

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hi,
any one to help me
The dynamic filter works as far as the listing page.
Once one of the filtered product is selected and the main product info is displayed, the filter fails to act on previous next navigation. the navigation goes back to the main category that the product belongs to

Thanks to all in advance

30 Sep 2014, 11:13 AM
#475
andreas1211 avatar

andreas1211

New Zenner

Join Date:
Sep 2012
Posts:
27
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Hi all,

Will there be an update for 1.5.3?

Also Is there a mod to make the attributes page easier? (I want to add attributes with 1 click like in prestashop.) If not can someone make such a mod and how much does it cost?

Can someone redesign the dinamic filter so it looks like on opticsplanet (with sliders).

Thanks for the answers in advance!

30 Sep 2014, 11:29 AM
#476
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

Andreas1211:

Hi all,

Will there be an update for 1.5.3?

Also Is there a mod to make the attributes page easier? (I want to add attributes with 1 click like in prestashop.) If not can someone make such a mod and how much does it cost?

Can someone redesign the dinamic filter so it looks like on opticsplanet (with sliders).

Thanks for the answers in advance!

I do not have a new update ready yet, but am working on it.
I already have this module running on a live 1.5.3 shop, and there seem to be no problems.

With a bit of luck I can round this one up at the en of this week

30 Sep 2014, 5:17 PM
#477
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Design75:

I do not have a new update ready yet, but am working on it.
I already have this module running on a live 1.5.3 shop, and there seem to be no problems.

With a bit of luck I can round this one up at the en of this week

Much appreciated Design75, :clap:

I'm looking forward to installing your updated version on 1.5.3!

Side question: How would one go about creating filters based on a sets of keywords (custom filters). Maybe include the meta tag data in the generation of the filters? or is this already part of this mod?

Thanks :D

30 Sep 2014, 7:28 PM
#478
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Filter [Support Thread]

kwright:

Much appreciated Design75, :clap:

I'm looking forward to installing your updated version on 1.5.3!

Side question: How would one go about creating filters based on a sets of keywords (custom filters). Maybe include the meta tag data in the generation of the filters? or is this already part of this mod?

Thanks :D

Your welcome :blush:, I have no idea about custom filters. Never considered it.
This module is for me also still a hard one to understand how it is exactly working.
The new release will at least contain the next changes:

  • backwards compatibility with versions < zc 1.5.3 will be dropped.
  • complete module will be multi lingual
  • did some code cleaning and moving from template files to module files
  • added an optional product count behind every option

I am trying to fix a tax problem, because now price-ranges are only shown/calculated without tax

30 Sep 2014, 10:24 PM
#479
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Re: Dynamic Filter [Support Thread]

Design75:

Your welcome :blush:, I have no idea about custom filters. Never considered it.
This module is for me also still a hard one to understand how it is exactly working.
The new release will at least contain the next changes:

  • backwards compatibility with versions < zc 1.5.3 will be dropped.
  • complete module will be multi lingual
  • did some code cleaning and moving from template files to module files
  • added an optional product count behind every option

I am trying to fix a tax problem, because now price-ranges are only shown/calculated without tax

Very nice. I'll be happy to test your combined updates on the 1.5.3 site I'm developing. Once you make the updates available, I'll try my hand at adding data from the meta tags product description table or maybe custom product fields as part of the filter options.

I have a few sites that could really use this functionality since the products don't have attributes, but could still benefit from filters.

1 Oct 2014, 2:59 PM
#480
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Dynamic Filter [Support Thread]

Design75:

I am trying to fix a tax problem, because now price-ranges are only shown/calculated without tax

This may help (changes in blue) :

// File /modules/custom/dynamic_filter.php

/ Price Range/Attribute filter
$manufacturerGroup = str_replace(' ', '', DYNAMIC_FILTER_MANUFACTURER_GROUP);
$categoryGroup = str_replace(' ', '', DYNAMIC_FILTER_CATEGORY_GROUP);
$priceGroup = str_replace(' ', '', DYNAMIC_FILTER_PRICE_GROUP);
$prvKey = '';
$prvHaving = '';
$filter = '';
$having = '';
$filter_attr = false;

reset($_GET);
while(list($key, $value) = each ($_GET)) {
// if(!is_array($value)) { // skip if not array // RodG

if(substr($key,0,strlen(DYNAMIC_FILTER_PREFIX)) == DYNAMIC_FILTER_PREFIX && array_filter($value)) {
  $key = str_replace(DYNAMIC_FILTER_PREFIX, '', $key);
  foreach ($value as $value) {
	
    if($key == $manufacturerGroup || $key == $categoryGroup || $key == $priceGroup) {
      if($key != $prvKey) {
        if($prvKey != '') {
          $filter .= ') and (';
        } else {
          $filter .= ' and (';
        }
      } else {
        $filter .= ' or ';
      }
  	}
	// manufacturer
    if($key == $manufacturerGroup) {
      $filter .= "m.manufacturers_id = '" . (int)$value . "'";
	  $prvKey = $key;
	// category
    } else if($key == $categoryGroup) {
      $filter .= "p2c.categories_id = '" . (int)$value . "'";
	  $prvKey = $key;
	// price range
    } else if($key == $priceGroup) {
      list($low,$high) = explode("--",$value);
      //          Updated to include GST by RodG

$filter .= 'p.products_price_sorter>=' . ($low - ($low / 11)) . ' and ' . 'p.products_price_sorter<=' . ($high - ($high / 11));
// $filter .= 'p.products_price_sorter>=' . $low . ' and ' . 'p.products_price_sorter<=' . $high; // original code //
$prvKey = $key;
// attributes
} else {
if($key != $prvHaving) {
if($prvHaving != '') {
$having .= ') and (';
} else {
$having .= 'HAVING (';
}
} else {
$having .= ' or ';
}
$having .= ' FIND_IN_SET("' . $key . $value . '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))';
$filter_attr = true;
$prvHaving = $key;
}
}
}
//}
}
if($filter != '') $filter .= ')';
if($having != '') $having .= ')';
if($filter_attr == true && defined('TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK')) $filter .= ' AND p2as.quantity > 0 AND FIND_IN_SET(p2a.products_attributes_id, p2as.stock_attributes)';


OK, so it isn't going to be exactly what you want. This was a quick n dirty fix I added to a customers site to account for a 10% GST.
It shouldn't be hard to replace these hard coded calculations with variables obtained from the Tax tables though.

Cheers
RodG