I'm trying to hide the products price and add to cart button from woocommerce pages on specific countries.
i've found Turn Woocommerce shop into catalog for geolocated countries? but it works only for one country
I couldn't find a solution to change this code to be able to target more than 1 country. I made an array with all the countries I needed
$countries = array("IT","DE","FR","AT","BE","BG","CY","HR","DK","EE","FI","EL","IE","LV","LT","LU","MT","NL","PL","PT","CZ","RO","SK","SI","ES","SE","HU");
If someone could help me it would be great