News:

Support the VirtueMart project and become a member

Main Menu

Bug in search plugin - not searching custom fields

Started by vmfyelloq19, September 01, 2025, 13:36:53 PM

Previous topic - Next topic

vmfyelloq19

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;
        }

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/