• Resolved rhaenys

    (@rhaenys)


    Hi,

    On earlier version of the plugin, there used to be a debug section on the header that specifically displays the detected country which used to be on (.ab-label)

    We were using it to get the country and do some additional functionalities

    var country = jQuery(‘.ab-label’)[1].innerHTML.substring(25);
    if(!(country==’United States (US’)) {
    }

    Is there a replacement/workaround to this with the recent versions?

    Or if possible, request the earlier version of the plugin that does this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, enable the debug mode, the country detection was moved to the admin bar

    Thread Starter rhaenys

    (@rhaenys)

    Hi,

    Debug mode has always been enabled. What’s the best way to get the detected country now even on non logged-in users?

    Plugin Author Zorem

    (@zorem)

    Hi, you can download here from WP older versions, the debug mode was meant for admins only and we moved the debug mode to be in the admin toolbar. In the Country Restrictions pro version, you have the option to display country detection shortcode/widget to customers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.ab-label – Country Output through Debug’ is closed to new replies.