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
- WooCommerce: How to edit the get_price_html
- Get woocommerce product price by id [closed]
- Woocommerce: How to remove page-title at the home/shop page but not category pages
- Password change when the user login first time
- How do you add a custom function to add / update product?
- How to unhook a function in Woocommerce Template?
- Woocommerce and Pricing deals plugin total price update with AJAX
- Send a value to woocommerce with a button type submit
- Modify SKU for display on product page
- Permalinks contain unwanted space resulting in broken links
- Woocommerce : How to automatically input the same email for every order?
- Woocommerce – Change order of products in Confirmed Order
- echo product parent category
- How to edit wc_get_template_part for archive products
- Display WooCommerce product attribute on shop page
- Custom account page that accepts a query parameter
- Custom WooCommerce template for product
- Checkout fr Woocommerce – load default WooCommerce checkout template on the fly
- Two types of product categories on shop page
- Woocommerce login to specific page or referrer
- WooCommerce – Adding Product Attributes to CSV Export
- Woocommerce | I want to the button ‘Add to Cart’ on the (all) product-page changed by just ‘open product’ button
- Adding line breaks in WooCommerce order processing emails