When performing checkout (add product to cart > enter shipping info > enter billing info > preview order > place order) in In-Commerce on Front-End, then following warning happens, when going from shipping to billing step:
In some cases (and shipping step is that case) form can contain non-scalar type fields (e.g. arrays). When these fields are checked with "strlen" (or any other string-only function), then this results in above displayed warning.
Make the following changes to "
- move detection of value length to top of the method
- always use "
- when field has non-scalar value (checked by "
is_scalar" function call), then consider value length as 0