The most important tool in every online store is the filter. It helps customers find the right product. And well-tuned filters help the buyer come to a purchase faster. The "Logic AND for filter" add-on will help you with this.
The standard logic of the filters is as follows: products are shown that correspond to AT LEAST ONE of the selected variants within one filter.
The "Logic AND for filter" add-on allows you to assign another logic to specific filters. Products are shown that correspond to EACH of the selected options within one filter.
The screenshots clearly show the difference using the add-on.
For cs-cart version 4.15.2 and below, add the following line to the fn_generate_feature_conditions function (file fn.filters.php) after the first foreach:
fn_set_hook('generate_feature_conditions_with_variants', $items, $selected_items, $join, $condition, $lang_code, $params, $variant_features, $value_features, $valueint_features, $conditions);
CS-Commerce Software Solutions is the official partner of CS-Cart. The company was founded in 2013 for developing only for online stores with CMS CS-Cart. Our specialists have grown along with the platform and have gained a lot of experience working exclusively with Cs-Cart.
Our team has participated in the development of over 200 projects and created over 70 addons.