Hi there,
Thank you for reaching out and for your patience as we investigated the issue you’re experiencing. After a thorough review by our development team, we’ve identified a potential bug related to new order creation and new user registration occurring simultaneously. This bug has been addressed and will pushed with the 3.7 release that is currently being tested.
This update should resolve the core issue you’re facing. However, there are a few additional points and suggestions to consider, based on the code you’ve provided and your specific use case:
- Code Review: It appears that there might be some inconsistencies with the quotation marks used in your code. Incorrect quotation marks can sometimes lead to errors. We suggest reviewing your code to ensure that all quotation marks are correctly used.
- Filter Application: The filter you mentioned is designed to trigger only under specific conditions – either when a customer profile is updated or when a new order is placed with the “register new account” option enabled. It’s important to consider whether this behavior aligns with your desired workflow. If the double hook firing is not intentional or does not meet your needs, adjustments may be required.
- Checkout Page Rendering: You have options for rendering the frontend checkout page, either through a shortcode or a Gutenberg block. The recent fix was specifically for issues related to the Gutenberg block. If you are using Gutenberg for your checkout page, we highly recommend updating to the newest version of our plugin to benefit from these fixes.
- Language Field: Lastly, please ensure that the “LANGUAGE” field is correctly added to your MailChimp (MC) Audience fields. This is essential for ensuring that data flows correctly between your site and MailChimp, especially if you are utilizing language-specific functionalities.
Our goal is to ensure your setup works smoothly and efficiently. If you have any further questions or need additional assistance, please do not hesitate to reach out. We’re here to help!