• Resolved kraeMit

    (@kraemit)


    Hi,
    thanks for developing this plugin. It starts very well, imports all the sales from my woocommerce shop into the MailChimp mailinglist without any additional affords! Cool!

    I have a website using ‘WooCommerce’ and ‘Mailchimp for WooCommerce’ and of rcourse I’m running a MC list, runs all fine.
    Everytime someone buys something in the shop some of the attributes in MailChimp database are populated (e.g. name, email, sum of shopping etc.).

    Most of my MailChimp database is populated by different forms from my website using ‘Contact Form 7’.

    I’d like to populate a field in MailChimp which shows that this entry is from the shop from a sale. So where can I add a value in ‘Mailchimp for WooCommerce’ which populates a field in MailChimp during a shop action?

    Thanks for a tip!

    All the best!
    kraeMit

    • This topic was modified 4 years, 4 months ago by kraeMit.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    Hi @kraemit sorry for the delay here – hope that this will help you get things done. Please visit our wiki and you’ll see a few different things there that might help you.

    1. Alter the merge tags on the user.

    2. Alter the merge tags when someone places an order.

    3. Add or remove “tags” on a user.

    These 3 things are most likely what you’re looking for and are highly customizable.

    Thanks for writing in, and if you have a minute please leave us a fair review on the plugin. It’s very helpful for the community ??

    Thread Starter kraeMit

    (@kraemit)

    Thanks for your answer, very interesting!

    This reads good:

    Update Merge Tags During Order Submissions

    /**
     * @param array $merge_tags
     * @param MailChimp_WooCommerce_Order $order
     * @return array
     */
    function mailchimp_custom_order_merge_tags($merge_tags, $order) {
        /// add whatever you want to the merge tags
        $merge_tags['WHATEVER'] = 'value you want';
    
        return $merge_tags;
    }
    
    add_filter('mailchimp_get_ecommerce_merge_tags', 'mailchimp_custom_order_merge_tags', 10, 2);

    WHATEVER seems to be a MailChimp merge tag, which format do I have to use?
    MMERGE9 ?
    *|MERGE9|* ?
    I’d like to try this further more.

    Also I did this : By playing, trying around and checking plugin settings I noticed a setting in the MailChimp plugin configuration:
    Campaign and messaging settings –> Audience –> Subscriber Settings –> Tags :

    Tags
    Add a comma-separated list of tags to apply to a subscriber in Mailchimp after a transaction occurs

    I added the value ‘from_shop’ and it does exactly what I want : The result is an entry in the customers data in the row ‘Tags’ with value ‘from_shop’.

    Thanks for your support!

    All the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to send additional attributes to MailChimp list?’ is closed to new replies.