وردپرس

Insert link in error message or alternative solution?


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!

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا