Re: Dynamic Filter - Left Col Boxes Misaligned
Quote:
Originally Posted by
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.
Re: Dynamic Filter - Left Col Boxes Misaligned
Quote:
Originally Posted by
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.
Re: Dynamic Filter - Left Col Boxes Misaligned
Quote:
Originally Posted by
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)
Re: Dynamic Filter - filter does not work on product listing
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
Re: Dynamic Filter - filter does not work on product listing
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!
Re: Dynamic Filter - filter does not work on product listing
Quote:
Originally Posted by
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
Re: Dynamic Filter - filter does not work on product listing
Quote:
Originally Posted by
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
Re: Dynamic Filter - filter does not work on product listing
Quote:
Originally Posted by
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
Re: Dynamic Filter - filter does not work on product listing
Quote:
Originally Posted by
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.
Re: Dynamic Filter - filter does not work on product listing
Quote:
Originally Posted by
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