Server region

Hi,
I’ve developed a wordpress plugin that helps my affiliate website to keep the product prices updated.
It works by parsing the product page by its url.
The problem is that I get the wrong currency from the target site (vaposhop.com), dollars instead of pounds.
My question: is the server geolocated in england? or in the us?
Do the http call that I make possibly fools the remote server so it shows my prices in dollars?
Thanks.

  • Kris
    • Support

    Hi luigi

    Hope you are doing good today.

    My question: is the server geolocated in england? or in the us?

    From what I see droplet for this site is located in United Kingdom.

    Do the http call that I make possibly fools the remote server so it shows my prices in dollars?

    Plugins settings or general settings do not rely on server’s location, so this is not possible to show other currency base on server location. It could be possibly in case if shop plugins settings allow to recognize browser language or location.

    The problem is that I get the wrong currency from the target site (vaposhop.com), dollars instead of pounds.

    Could you clarify this one a little bit more or share url example?
    I review some pages on this site and I found this page:
    https://myweedvaporizers.co.uk/best-portable-dry-herb-vaporizers/
    which shows me currency in pounds, and I’m from Poland.

    Kind Regards,
    Kris

  • luigi
    • Flash Drive

    Hi,
    thanks for the quick answer.
    I forget to explain some details:
    the page that your looking at (https://myweedvaporizers.co.uk/best-portable-dry-herb-vaporizers/) shows the prices parsed from another domain, which is https://www.namastevaporizers.co.uk/, and it works ok.
    But if you look at this producat here https://myweedvaporizers.co.uk/best-desktop-weed-vaporizers/#herb, you will see the price showed in dollars, cause the page parsed is on vaposhop.com domain.

    Plugins settings or general settings do not rely on server’s location, so this is not possible to show other currency base on server location.

    True, but I think that the http calls it makes inherit the loation from the hosting server, am I right?

  • Kris
    • Support

    Hi,

    if I understand this correct pages:
    https://myweedvaporizers.co.uk/best-portable-dry-herb-vaporizers/
    https://myweedvaporizers.co.uk/best-desktop-weed-vaporizers/#herb
    use this part:

    I’ve developed a wordpress plugin that helps my affiliate website to keep the product prices updated.

    This mean this is custom plugin. Is there any part of code which recognizes price and convert to pounds? Because from what I see on vaposhop.com in “Change currency” section in header and for product price currency is always in euro (I test via VPN from different locations and euro is the one which always show).

    So this os more strange that it take dollars instead of default value which is euro.

    Could you grant support access for both sites:
    vaposhop.com
    myweedvaporizers.co.uk
    so I could take a closer look on this.
    Also is there a possibility that on myweedvaporizers.co.uk theme editor is ON and you could point me to your custom plugin name so I could consult this with our devs?

    You can grant support access for both sites via WPMU DEV > Support > Support Access
    https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-5

    Please don’t share any sensitive information (i.e credentials) in the Support Forum, it has public visibility and everyone will have access to it.

    Kind Regards,
    Kris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.