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

Make Custom Fields values case insensitive on VM2.6.x

Started by Kintaro Oe, April 26, 2016, 10:47:16 AM

Previous topic - Next topic

Kintaro Oe

Hello,

before upgrade to 3.x I need to fix my problem with custom fields value.

I have custom fields values list with all UPPER case.

I use a sync system and only after some monthes I noticed that custom fields values at some point started to be inserted (from who use it) with only the first letter as upper-case.

So I have the list in the VM configuration like this:

VALUE1;VALUE2;VALUE3;VALUE4;VALUE5;VALUE6

And products in the DB with values like:

Value1
Value2
Value3
Value4
Value5
Value5

I noticed that in VM2.6.x. custom fields values are case sensitive.
In the backend if I look at a product that in the DB have lower-case values the custom fields are not recognized and are inserted with the first value of the list.

Example:

if in the DB I have Value4 in the backend I see VALUE1.
...and if a user change/save the product changing price or the quantity available, custom fields Values in the DB are overwritten with wrong VALUES!

What I have to change in the code to make VM2 custom fields values case insenstitive?
 

PRO

are you sure about this?

I think there might be some other problem.

or, I am just not understanding

so you are using standard native custom fields?