Hi Brittani,
You have a challenging task here. I have a few questions and comments:
-
It sounds like there is no problem with the VIN decoder returning reliable results. Is that correct?
-
You say you want ‘to connect the data from my “results” text element with a product from my Wix Store’, but you are attempting to filter one of your collections called “batteryfitment”. You will need to link batteryfitment to the stores product collection somehow, preferabley via ID, to be able to show the corresponding battery from your Wix Store.
-
The filter statement, as constructed, will not work. The first argument should be a field name (field key) from the batteryfitment collection. However, that’s a secondary matter. According to the documentation on the filter command , the VIN decoder results are not “filterable” anyway using the filter command. It can only be used on a dataset.
It would be good for you to show a screen shot of console.log(VINInfo) after clicking on the three dot button, so we can see how the results are constructed. Also, a screen shot showing the key fields in the batteryfitment collection would be helpful.