Hey guys.
I have a page that lists countries by a repeat region that takes the list of countries from the bank and shows it with a checkbox. I can filter by a single country when I click on the checkbox or choose in select and the URL looks like this: journeys-teste?country=BRA
What I need is to filter the products by more than one country separated by a comma in the URL. Example: journeys-teste?country=BRA,CHI,ITA. It then returns products that have related country codes in the COUNTRIES field array.
In the database I saved the countries as ARRAY [“BRA”,“CHI”] through tagify.
I already tried to do a server connect with the condition {{$_GET.country.split(’,’)}} to get the URL separated by a comma but I couldn’t. I have also transformed the GET field in server connect into ARRAY.
What am I missing here?
2024-02-16