Home › Forums › Newsletter Plugin Support › Adding subscribers to list by language
- This topic has 6 replies, 2 voices, and was last updated 5 hours, 28 minutes ago by Michael.
-
AuthorPosts
-
September 25, 2018 at 5:37 pm #122323danielle_newsletterParticipant
Hi,
I'm using WPML and newsletter plugin and followed the steps in this article
to add a subscriber to a certain list by language.
But this doesn't seem to work? Is this a bug or am I doing something wrong?
Kind regards,
DanielleSeptember 25, 2018 at 5:49 pm #122335StefanoKeymasterHi, it should work. How did you check it? Have you started a subscription from the language X view of the fronted and the subscriber has not be added to the selected list?
Stefano.
September 25, 2018 at 5:56 pm #122339danielle_newsletterParticipantHi Stefano,
I'm using the Woocommerce addon. In our Webshop we have 4 languages. When the subscriber is in language NL he/she should be added to list A, for all other languages the subscriber should be added to language B.
I managed to set the settings as described in the article, but the subscriber does not get added to any list.
Kind regards,
DanielleSeptember 25, 2018 at 6:29 pm #122352danielle_newsletterParticipantI tested by placing an order and then then subcribed to the newsletter. I do receive the confirmation e-mail, just not added to the list.
Danielle
September 26, 2018 at 9:16 pm #122552danielle_newsletterParticipantThe reason I think it might be a bug in the newsletter plugin is because I also had issues with the right e-mail content being sent. After user subscribed he'd always get the default e-mail content belonging to all languages and not the e-mail content I had set per language.
After debugging this issue I found out that in includes/module.php there is a function get_user_language that wasn't working correctly.
if ($user && $this->is_multilanguage()) {
return $user->language;
}After logging $user->language it turned out to be empty.
I had to change $user->language into a line of code from wpml to get the current language and that worked for me. The e-mails are now sent out in the correct language.
But the issue with the lists I haven't been able to resolve. Would be nice if you could take a look at it Stefano.
Gr. Danielle
January 23, 2025 at 10:08 am #338917GGParticipantHi Danielle,
Did you manage to get a resolution to these issues? If so, I would be very interested to hear it. I also have issues with my multilanguage site (paid Newsletter Plugin subscription, using Polylang).
I have set up Newsletter pages (a default "All languages fall back" page, along with "Newsletter EN" and "Newsletter FR" pages) but the Activation message when a new member signs up always defaults to the English and subscribers aren't assigned a language.
I would appreciate any help anyone can provide.
Thanks!
January 23, 2025 at 10:09 am #338918MichaelKeymasterHello GG,
if you have a paid license with us, please open a ticket from your account page, so our dedicated team can reach out.
Thanks,
Michael -
AuthorPosts
- You must be logged in to reply to this topic.