VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vmfyelloq19 on September 01, 2025, 13:36:53 PM

Title: Bug in search plugin - not searching custom fields
Post by: vmfyelloq19 on September 01, 2025, 13:36:53 PM
Friends,
for plugin/search/virtuemart  the plugin configuration says for IDs of Custom:  "Enter the IDs of the fields you want to search (comma-separated). Leave blank to search all fields."

If I leave the field empty, the plugin will NOT search custom fields.

Either the code or the field description is wrong:
if ($search_customfields) {
    $value = trim($this->params->get('customfields', ""));
    if (!empty($value)){
        // [...]
        } else {
            $search_customfields = false;
        }
Title: Re: Bug in search plugin - not searching custom fields
Post by: Milbo on October 29, 2025, 08:37:47 AM
Quote from: vmfyelloq19 on September 01, 2025, 13:36:53 PMfor plugin/search/virtuemart  the plugin configuration says for IDs of Custom:  "Enter the IDs of the fields you want to search (comma-separated). Leave blank to search all fields."

Erhm, which plugin? Do you mean the core search plugin? I am not aware of this text. Hmm, okey found it.

I think it should work removing $search_customfields = false;

Thank you for your report.