• Resolved Lemontec

    (@lemontec)


    Hello,

    is it possible to override the country which is detected by geolocation with a country parameter in the product url?
    I would like to add url parameter usr_country=de to the product url and if this parameter exists use this country instead of the geolocation detection.
    If its not present, geolocation should be used.

    Is there a filter which can be used to modify this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Use the parameter wcpbc_manual_country :

    ?wcpbc_manual_country=DE

    Note that this paramenter changes the customer’s country.

    Thread Starter Lemontec

    (@lemontec)

    Hi,

    thanks for the quick response.
    Unfortunately the parameter does not work on our site. Is this available only in the pro version?
    Does this work with WP Rocket active and geolocate with cache option which loads prices via ajax call?
    The url looks currently like {producturl}/?wcpbc_manual_country=DE&v=fa868488740a

    Thread Starter Lemontec

    (@lemontec)

    Hello Oscar,

    do you have any idea, why the prices for the other country are not loaded with this parameter?
    If you could contact me here ([email protected]), I could share more details or send you a link to the website.

    Plugin Author Oscar Gare

    (@oscargare)

    Sorry, the paramenter is wcpbc-manual-country

    ?wcpbc-manual-country=DE

    Thread Starter Lemontec

    (@lemontec)

    Thank you very much, it works like a charm

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using optional url parameter for user country’ is closed to new replies.