News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Bug in VM Search plugin

Started by man.of.earth, February 18, 2019, 22:04:45 PM

Previous topic - Next topic

man.of.earth

Hello everyone,

The VM Search plugin had a bug, i.e. it also displayed the unpublished products.
The bug was in the query; simply put a pair of parentheses on lines 192 and respectively 194:
before:
" WHERE {$where} " .
" {$shopper_group_condition} " .
" {$uncategorized_products_condition} " .
" AND p.published = 1" .

after:
" WHERE ({$where} " .
" {$shopper_group_condition} " .
" {$uncategorized_products_condition}) " .
" AND p.published = 1" .


Regards,
George
www.proxima-mundi.ro