Carlos, does this code return if a 'code' is defined, regardless of whether it matches or not, without checking 'EAN13' or 'name'?
Example:
A product with code = '1111', no EAN13, and name = 'product 1', and search query = 'product'.
Expected behovior: match on name.
What will your code do after the mismatch on the 'code' field?
Carlos, does this code return if a 'code' is defined, regardless of whether it matches or not, without checking 'EAN13' or 'name'?
Example:
A product with code = '1111', no EAN13, and name = 'product 1', and search query = 'product'.
Expected behovior: match on name.
What will your code do after the mismatch on the 'code' field?