Jump to content

Restricted Country Mode Issue


muumuulica

Recommended Posts

Hi,

 

I'm having a big big problem with this $restricted_country_mode functionality :)

I need to hide a certain menu item (I'm using mega menu) when Geolocation is enabled and access to a certain country is limited!

 

Is it possible to hide a certain CSS class when this $restricted_country_mode functionality is enabled?

Or... do you guys have any other solutions/ideas?

 

Thanks.

Have a nice day!

Link to comment
Share on other sites

Do you have any idea if this will work?

 

{if isset($restricted_country_mode) && $restricted_country_mode}
<script>
var divsToHide = document.getElementsByClassName("no-display-italy");
for(var i = 0; i < divsToHide.length; i++){
divsToHide[i].style.display = "none";
}
<script>
{/if}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...