Button Appears for Non EU Customers
-
Hello
The button appears for all customers, not just customers in the EU, though when I click on it to test, it doesn’t appear to do anything and I am not receiving a request or email
-
Hello @diabolikjn666,
Thank you for reaching out.
At the moment, the withdrawal button is displayed to all customers regardless of their location. We appreciate your feedback regarding region-based visibility, and we’ve noted it as a feature request for consideration in future updates.
Regarding the withdrawal request button, could you please verify the following:
- Ensure that the Withdrawal Request page has been created on your site.
- Navigate to WooCommerce > Withdrawals > Settings > General and confirm that the Withdrawal page setting is assigned to the Withdrawal Request page.
If these settings are already configured, please let us know whether any errors appear in your browser’s developer console when the button is clicked.
To help us investigate this further, you can share your site URL here. If you prefer not to post it publicly, feel free to share the details privately through this link.
Thank you! I had this set MY ACCOUNT page because I thought it was asking me where I wanted this button to occur
As far as the regional setting goes, It would be wonderful to at least be able to set it off for certain countries (like the US). I am having customers from all over clicking it like they are going to cancel !
Also, I put in a test and a customer who clicked the button yesterday received the email confirmation from the site FOR MY PERSONAL TEST REQUEST !
-
This reply was modified 3 weeks, 4 days ago by
diabolikjn666.
Actually it looks like everyone that clicked on the link yesterday is getting the email notifications for everyone
Update. I don’t know what happened other than I submitted a test order and then used the button to test the plugin and I have gotten dozens of emails already from people that received my test submission email.
-
This reply was modified 3 weeks, 4 days ago by
diabolikjn666.
I think I figured out what happened here and it was only by chance that I realized the email address that it was sending the email to was associated with a mailing list from last year that I built for certain customers so when it was sending that, it hit the email list and also send the email to all of those people. Sorry for the false alarm. I tried to delete these other posts but couldn’t
Hello @diabolikjn666,
Thank you for the update. We’re glad to hear that you were able to identify and resolve the issue with the email notifications.
Regarding your initial requirement to restrict the visibility of the withdrawal button to EU customers only, we have a workaround that you can use. You can use this code snippet to ensure that the button is displayed only for logged-in EU customers and guest users.
Before adding the code snippet, please follow these steps:
- Navigate to WooCommerce > Withdrawals > Settings > General.
- Disable the “Embed footer link” option.
- Once disabled, add the code snippet to your child theme’s
functions.phpfile or use a code snippets plugin.
We have also noted your feedback regarding region-based visibility and plan to add this functionality directly to the plugin in a future update.
If you are satisfied with the plugin, we would greatly appreciate it if you could take a moment to leave us a review here.
Unfortunately this fix isn’t working. It is still showing up for all customers.
Hi @diabolikjn666,
You can filter the $eligible status via the plugin’s publicwbte_ewb_order_eligiblefilter. Here’s a snippet you can add to your functions.php or theme’s includes.
See: https://gist.github.com/pingram3541/548f7fa2542d017b74e4d52b5cd53908-
This reply was modified 2 weeks, 5 days ago by
pingram.
Hello @diabolikjn666,
Thank you, @pingram3541, for sharing the snippet.
The snippet shared by @pingram3541 restricts withdrawal eligibility based on the order billing country. This should hide the Request Withdrawal button on the My Account → Orders page for non-EU customers and prevent non-EU orders from being submitted for withdrawal.
If you would also like to hide the footer link and the
[wt_eu_order_withdrawal]shortcode button for non-EU customers, please add the additional code snippet here.Please give it a try and let us know how it goes.
Excellent, both the link and the button are verified working for me, thanks Jeff!
You must be logged in to reply to this topic.