• Resolved andreeapomirleanu

    (@andreeapomirleanu)


    Hello! I am using EDD and the multicurrency add-on in order to sell products in 3 currencies. I have discovered that due to Stripe limitations (or at least that’s how I understand it), if a client has an active subscription in USD they are unable to purchase another subscription in EUR/GBP since Stripe can only handle concurrent active subscriptions in only 1 currency.

    This sometimes creates a problem for our users as we have a geolocation feature active that switches the shop currency to the local one. If they have a subscription that they activated before we introduced the geolocation feature or just simply manage to buy a subscription in USD then they cannot purchase one in EUR/GBP via Stripe.

    We have opted to not display a currency switcher since the geolocator automatically switches it. But this means that our clients get the EDD error saying “Unable to complete your purchase. Your order must be completed in USD.” but no way to get past this situation. They can switch to PayPal, however we want to offer them a chance to switch to USD and pay with Stripe.

    I tried altering the EDD error message and I wanted to include a simple link “Click here” that would simply refresh the checkout page with /checkout?currency=USD. But it seems the error message is not able to display HTML tags, I assume it’s a security issue.

    What do you advise to do in this situation? How can we add a simple link, when this situation arises, for the user to click and have their shop currency switched to the one of the active subscription? As I mentioned before, we would like to not show currency switch buttons anywhere on the website.

    Any advice is greatly appreciated, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hi @andreeapomirleanu

    It does seem that there is no easy way to achieve that by modifying the text. What you can look at is the Multi Currency plugin and your IP location code.

    Our multicurrency extension does an EDD()->session->set( 'currency' ); to set the active currency to whatever the customer used for their last purchase. it seems like your geolocation feature is overriding that so you could perhaps look at adjusting your code to not overwrite that call or call our code again in certain conditions to set the currency back correctly.

    Thread Starter andreeapomirleanu

    (@andreeapomirleanu)

    Hi @misulicus

    Thank you so much for your answer. I understand, however I feel like showing the customer one currency on the sales page and then switching their cart to another currency with no explanation would just confuse and irritate them. That’s why I thought a custom message allowing the user to switch currency when they try to purchase (and fail) would have been very useful.

    I will try to use the function you suggested to trigger the currency change and if that happens then perhaps show a message at the top telling them the currency was forcefully changed.

    Thanks again for looking into this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert link in error message or alternative solution?’ is closed to new replies.