Support Forum

Content of the article

You need to log-in to create request (topic) to the support

Search different combinations of words

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Добрый день
Пользуюсь вашим плагином и он супер но возникла проблема почему-то в магазине находит товар если набрать “black matte” но не находит тот же товар если набрать “matte black”.
Пробовал добавить ваш сниппет:

add_filter(‘woof_main_query_tax_relations’, ‘my_woof_main_query_tax_relations’);

function my_woof_main_query_tax_relations()
{
return array(
‘product_cat’ => ‘AND’,
‘product_tag’ => ‘AND’,
‘pa_color’ => ‘AND’
);
}

но увы это не помогло

Здравствуйте

Да  этот код  не  имеет отношение  к  текстовому  поиску.

К сожалению  сейчас текстовый  поиск   зависит от порядка слов.

Попробуйте в  файле - wp-content\plugins\woocommerce-products-filter\ext\by_text\index.php  изменить  код - https://c2n.me/42SeI9V.png

$woof_text = trim(urldecode($request['woof_text']));
$woof_text = trim(WOOF_HELPER::strtolower($woof_text));
$woof_text = preg_replace('/\s+/', ' ', $woof_text);
//$woof_text = str_replace(' ', '?(.*)', $woof_text);
//http://dev.mysql.com/doc/refman/5.7/en/regexp.html
$text_array = explode(" ", $woof_text);
$woof_t = str_replace(' ', '|', $woof_text);
$woof_text="";
foreach($text_array as $text ){
$woof_text.= '([[:<:]]'.$woof_t . '[[:>:]])+(.*)';
}