Searchable Customfield don't work if Language Constant are used

Started by Darko F., October 16, 2022, 19:37:22 PM

Previous topic - Next topic

Darko F.

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
There in no problem if you fall. Problem is if you don't get up

Darko F.

I must to add that, all constant have their respective Language override in Joomla.
There in no problem if you fall. Problem is if you don't get up

hazael

Make sure you have added products in a different language

Darko F.

There in no problem if you fall. Problem is if you don't get up

Milbo

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

Darko F.


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
There in no problem if you fall. Problem is if you don't get up

Darko F.

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.
There in no problem if you fall. Problem is if you don't get up

Milbo

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

Darko F.

There in no problem if you fall. Problem is if you don't get up