I am trying to use the API available at https://www.carqueryapi.com/ to create a vehicle search function similar to this:
The dropdown "Year" selection filters the "Make" selections to only manufacturers in production that year. Similarly, the "Make" filters the "Model", which then filters the "Trim".
There is a ton of documentation on the CarQueryAPI website about how to integrate and call their API, however it does not appear the work well with WIX (at least with my limited coding knowledge).
Next it says to add the following code, also to the <head> but after the previosu scripts:
However, unless I am missing something, I can not add anything directly to the <head> of my wixsite.
Next is adding the elements named to work with the script"
<select name="car-years" id="car-years"></select> <select name="car-makes" id="car-makes"></select> <select name="car-models" id="car-models"></select> <select name="car-model-trims" id="car-model-trims"></select>
I can not figure out how to make this work within a wixsite, they offer a wordpress plugin, but I do not want to use wordpress.
I require the user to select Year, Make, Model, and Trim levels within an extended contact form. This information is then submitted via email along with many other variables.
I did manage to find a way to work this by manually collecting all the data contained within the API and creating Wix collections... this is very time consuming however and I have not completed all the entries. I compiled the years easy enough, and then I even made the list of Makes per year for 1990-2018, but for models and trim I have only completed Acura 1990-2018 and it took way too long!
There must be a better way to directly call the CarQueryAPI without all these extra database collections and data entry.