Home Forums Plugins WooCommerce Coupon Box Multiple lists/audiences with WPML

Multiple lists/audiences with WPML

  • Author
    Posts
  • #33343

    dragoeco
    Participant

    Hi, I’m building a multilingual WooCommerce website (with WPML). So I have 2 Mailchimp lists/audiences, one in English and one in French. I need help to allow french visitors to subscribe to the french list and English visitors to subscribe to the English list.

    WPML allows to detect de language displayed by the user with

    <?php if( ICL_LANGUAGE_CODE === 'fr' ) {
    	echo '';
    } else {
    	echo '';
    } ?>

    So I can echo the list/audience ID here but how to integrate this (function.php?).

    Or maybe you have a better idea?

    Thanks for your help.

You must be logged in to see replies to this topic. Click here to login or register