If you’re using SendGrid to process emails from WooCommerce and have click tracking enabled, links that use $_GET
vars will break. Sendgrid uses a URL sanitizer that converts the &id=
to &id=
and that creates an issue in WooCommerce…
The password reset form redirect looks for two get vars, $_GET['key']
and $_GET['id']
, and if they’re not present, it won’t show the password reset form, just the standard “Please enter your username or email address.” form. It feels like a redirect loop but it’s because of a malformed URL ( PHP parses that get var as $_GET['amp;id']
).
I didn’t realize the issue was coming from SendGrid, but after a ton of debugging and diving into WC’s source code I realized the conditional check was failing for seemingly no reason, and it was because the get var didn’t exist.
Easy Digital Downloads posted instructions to turn off SendGrid click tracking on their site in response to an EDD github issue and it works to solve this too.
Hope this helps!
Related Posts:
- How to change lost password email text using custom plugin wordpress?
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- How to check if is in cart page? [closed]
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- WooCommerce changes lost password reset link
- Remember page before login page, redirect to that page after login
- Preventing WooCommerce email sending only on particular conditions
- woocommerce fail to replace template string in email title [closed]
- Custom Redirect after registration in WooCommerce
- WooCommerce: display text instead of raw checkbox value email
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Woocommerce : How to attach an custom attachment with customer-processing-order.php email template [closed]
- Import products to WooCommerce by CSV page won’t open [closed]
- WooCommerce email text based on category && shipping zone && payment method [closed]
- WooCommerce: Email Notifications
- Woocommerce Login Redirect not working [closed]
- Redirect user after login through woocommerce login page to page with his/her username?
- woocommerce_email_attachments filter arguments [closed]
- WordPress ‘on behalf of’ email
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- Add custom order meta to Order Completed email
- Woocommerce: Prevent sending of email when order is “Completed”
- How to add a user custom field into Woocommerce emails?
- Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- WooCommerce order complete email logic
- Woocommerce – Want to block a user agent from accessing specific product pages
- woocommerce email template detect email recipient
- How to – proper WordPress 301 redirects?
- Adding extra email address who receives email like admin – woocommerce
- Woocommerce, prevent login after registration and redirect to custom URL
- Add shipping address to Woocommerce order emails [closed]
- Woocommerce password Reset
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- Woocommerce emails from gmail not being sent
- lost password link not working for my site
- Redirect no product url’s to static url
- WooCommerce Registration redirect based on page ID
- password_reset doesnt work
- Send admin new order email to logged in user as well
- Clients with empty username are not receiving request new password email
- wordpress/woocommerce login url not redirecting correctly
- Show password while you are typing it on the “my account” login page
- WooCommerce get_author_posts_url() – Author URL redirecting to shop base
- Create new email in WooCommerce
- How to check if woocommerce_order_item_name is use in email?
- WordPress woocommerce new order email not working
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Change password notification email
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- Is it ok to 301 redirect product-category pages to custom pages?
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- Using admin email in billing address
- WooCommerce and ACF: How to Redirect Upon Add to Cart – Partially Working Example
- Temporary access to page with URL sent to email
- Send a different “thank you” email based on payment method
- Customer Email Address
- wordpress site auto redirect to another site when I enable woocommerce
- Adding time of order to Admin email for new order
- how to add custom reviews button in woocommerce order complete generated mail
- How to add coupon expiry date into the followup emails?
- mydomain.com/wp-login redirects to wordpress.com/wp-login
- Change wp-login.php? Problem with .htaccess password protection and multi user shop
- Conditional email recipient based off Shipping Method [closed]
- Users credentials and syncing from third party with WooCommerce
- WooCommerce shop, my account, cart every page redirect to home page [closed]
- Manual Woocommerce Complete order Emails
- Turkish Character Problem on mailing
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- WooCommerce – How to add a custom field to only a specific email template [closed]
- Insert a custom field as a second email address to a completed order in WooCommerce
- Hide/show button for the password field in the Woocommerce My Account page
- Woocommerce admin order email customize – remove product short description
- Email Woocommerce customer a link to login and set a password for their automatically created account
- How to implement my product variations/attributes in my contact form 7 email?
- Woocommerce – How to Show product tags in shop page
- Using category and its sub-categories products attributes as filter in products pages
- Bulk edit orders to ‘wc-processing’ status
- Woocommerce section name? [closed]
- how to change value return by _stock_status
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- How to change “add to basket” button text in WooCommerce based on product category?
- The orders in WooCommerce admin are hidden (they have the “hidden” CSS class)
- Select all product woocommerce
- Woocommerce REST API: creating variations
- How to hide / remove duplicated Woocommerce products from Shop page
- WooCommerce one time checkout pop up
- How to add a special Woocommerce “Buy Now” button?
- Disable theme WooCommerce template [closed]
- WordPress user ID prefix
- WP All import sale price 0 [closed]
- How to add product variations for large number of products in WooCommerce?
- WooCommerce database upgrade behaviour
- WooCommerce: how to set stock per attribute on variable product
- How to display products in sidebar in 2 columns?
- Removing Product from Woocommerce checkout page using Ajax