• Resolved skaczmarek

    (@skaczmarek)


    So we have set a custom pricing based on GeoIP rules. For example in Poland we have EUR but in the UK we have GBP. Now, for example, our test product has prices set like this: for Poland – 199 EUR (default price and currency), for the UK – 119 GBP (custom GeoIP rule). And the prices and currencies are showing fine on the product pages. The problem arises once someone from the UK tries to buy something using PayPal. This is what’s happening:

    1. A user is from the UK and enters the test product page
    2. The price shows 119 GBP (as it should)
    3. The user hits “Buy now” and gets redirected to the checkout page (the price and currency is correct)
    4. The user selects the “PayPal” option for payment and gets redirected to the PayPal payment page
    5. The price on the PayPal payment page is showing now 199 EUR (wrong)

    As you can see, the price gets changed unexpectedly to the default value which causes our clients to abandon the product and not buy it (they see it as a scam).

    How can we debug this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    What version of the plugin are you using? Looks like you customized the plugin code

    Thread Starter skaczmarek

    (@skaczmarek)

    Hello, thanks for your reply.

    We haven’t customized the plugin code.

    Our env:
    WP: Version 5.3.2
    WOOCS: Version 2.2.3

    As an additional note, I can tell that we also use W3TC plugin for caching and we have enabled the “I am using cache plugin on my site” option in the plugin settings. And it seems to work because on the product page/cart/checkout the currencies and prices are correctly changed via AJAX. The problem is that during payment it gets changed back to default values. Do you have any idea what could be a problem? Do you need any additional info about our server setup?

    Side note: we used to have issues with this plugin in the past – showing the wrong currency and price because of poor IP detection (we have moved our WWW server on another machine and it caused WOOCS to detect IP of the WWW server instead of the real client IP. We have checked that all necessary headers are sent but it still didn’t work so we had to move the server back. REMOTE_ADDR is not enough to get the right IP so I guess it’s something you could consider improving in the next updates -> https://stackoverflow.com/questions/1634782/).

    • This reply was modified 4 years, 9 months ago by skaczmarek.
    Plugin Support mediawebster

    (@mediawebster)

    Thread Starter skaczmarek

    (@skaczmarek)

    Oh, thanks for redirecting me. Will close this one then. Thanks.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Welcome;)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The price and currency is changing to default after redirecting to PayPal’ is closed to new replies.