• Resolved fishouse

    (@fishouse)


    How cha I save a marge field on order creation? I try this code but it doesn’t work.

    function custom_user_merge_tags($merge_vars, $user) {
    $merge_vars[‘LANGUAGE’] = ICL_LANGUAGE_CODE;
    return $merge_vars;
    }
    add_filter(‘mailchimp_sync_user_mergetags’, ‘custom_user_merge_tags’, 100, 2);

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support khungate

    (@khungate)

    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:

    1. 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.
    2. 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.
    3. 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.
    4. 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!

    Plugin Support khungate

    (@khungate)

    Hello, we recently updated the plugin to version 3.7. It might be most effective to completely remove and then reinstall the plugin. If you still encounter any problems, please don’t hesitate to get in touch with us for further assistance and troubleshooting support.

    Plugin Support khungate

    (@khungate)

    Hi there, we’re going to close out this ticket for now since it’s been a few weeks since we’ve been in touch.

    Please let us know if you still need any help and we’ll be glad to reopen and troubleshoot further. Please note, that the best way to reach us is over at the GitHub plugin page: https://github.com/mailchimp/mc-woocommerce/. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘save a marge field on order creation’ is closed to new replies.