In the standard component of the component Virtuemart there is a product display module (Displays Recommended products, Bestsellers, Random products or New items) there is filtering by category, but there is no filtering by manufacturer. To solve the problem, I used the output template (product.php), used the Footer textbox (text after the module). In this field I will write the name of the manufacturer or any other search criteria in the name bar (for children, sleds, bars). I prescribe such a condition in the cycle
if( stripos($product->product_name,$footerText) ) {} if the $ footerText Latin works fine, but if it is Cyrillic, then there will be no product hits. As I found out, my encoding is UTF-8. And the comparison on the occurrence of the substring in the string should pass. But no.
And the iconv function does not solve the problem. What is the problem?