J4 with VirtueMart 4.0.7 10720
Php 8.0
Searchable Customfield configured as is described here:
https://docs.virtuemart.net/tutorials/administration-configuration-vm-2/225-searchable-customfield-usecase.html
Don't work Any more IF is Language Constant used in Default value of Custom field
Before somebody ask, I using constants because I have multi language site,
Here is Example of my Default value in Custom Field:
VM_TAG_TX;VM_TAG_LETEV;VM_TAG_A_REZ;TEST
If I Sort by TEST work OK and product with custom field set on TEST is shown up, If I sort by - VM_TAG_TX - you don't get any product
I must to add that, all constant have their respective Language override in Joomla.
Make sure you have added products in a different language
I make double check and product they are in translated
It should work, if you use the language tags consequently, anywhere. Do I understand you right, that you used that already and it worked before? So the problem cannot be a misconfiguration.
I find Problem is that when you write in custom field constant u using ____ underline, and for some reason underlain in custom fields don't work as filters, is not mater wich language.
So when you write in custom field constant COM_XX_YY because underlines __ will not work.
Tested with com_virtuemart.4.0.7.10730_package_or_extract.zip J4 and J3
I noticed in J4
com_virtuemart.4.0.7.10730_package_or_extract.zip
you can't any more use let say - "" S - squire; "" in custom field list still you can use CONSTANT_SOMETHING
S squire without "" - "" works
I find this strange, and if you use constant filters don't work.
The db escape is doing that. I think the reason that it does not work, is strictCustomfieldTags. Just disable it in the new admin template. It was accidently enabled for new installs in the new template.
It's, worked yea :)
Thank you Milbo