• Hi,
    I would like to know if it is possible to know the value of the checkboxes selected to automatically send (with mailchimp) an email based on the options selected.
    For example:
    1) in woocommerce I have 10 dates;
    2) the customer selects 3 dates;
    3) mailchimp sends a different email according to the 3 selected dates (in this case a different code for each date).
    Is it a feasible thing?
    Thanks in advance,
    Gianni

Viewing 1 replies (of 1 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    After the order is complete the selected values are saved with function:

    wc_add_order_item_meta($item_id, $value[‘name’], $value[‘value’]);

    in the file:
    wp-content/plugins/product_options_for_woocommerce/Model/Observer.php

    So you can get the selected value with function:

    $optionValue = wc_get_order_item_meta($item_id, ‘option title here’);

    Then you can use the selected value to send a different mailchimp email.

    Stanislav

Viewing 1 replies (of 1 total)
  • The topic ‘How to know the ??selected values to send a segmented email with mailchimp’ is closed to new replies.