Support

  1. jimmywiddle
  2. Bug Report
  3. Sunday, July 24 2016, 12:21 PM
Hi, I have a mailchimp account and am using the CMC Mailchimp for Joomla component which adds a tickbox to the Joomla registration form, and if ticked with auto subscribe the user to the mailchimp mailing list. Also there is an option/tickbox for the user to subscribe/unsubscribe within Edit Profile.

https://compojoom.com/joomla-extensions/cmc-mailchimp-for-joomla

Unfortunetly its not working, but ive tested a CMC module that works independently of the registration and this works fine, therefore currently it seems the issue is easyprofile, you can see the ticket below:

https://compojoom.com/forum/cmc-mailchimp-for-joomla/21527-user-not-subscribed-subscribe-failed-error

Im currently waiting for a response from the developers of the CMC component, but wanted to make you aware of the situation and ask if there is anything that you can think of that might be causing issues or that might help them.

Ive posted a link to the registration form in the 'Site Details' tab, so you can see exactly what i mean.

Many many thanks in advance!
jimmywiddle Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
Hi,
in your form you not have any field with id like cmc_groups_FNAME, cmc_groups_LNAME or cmc_groups_EMAIL, all these input have following ids:
- jform_cmc_groups_FNAME
- jform_cmc_groups_LNAME
- jform_cmc_groups_EMAIL

so you need to add "jform_" before id like

document.getElementById('jform_cmc_groups_FNAME').value = jQuery('input[name="jform[firstname]"]').val();
document.getElementById('jform_cmc_groups_LNAME').value = jQuery('input[name="jform[lastname]"]').val();
document.getElementById('jform_cmc_groups_EMAIL').value = jQuery('input[name="jform[email1]"]').val();

or in order to use jQuery framework like this:

jQuery('#jform_cmc_groups_FNAME').val(jQuery('input[name="jform[firstname]"]').val());
jQuery('#jform_cmc_groups_LNAME').val(jQuery('input[name="jform[lastname]"]').val());
jQuery('#jform_cmc_groups_EMAIL').val(jQuery('input[name="jform[email1]"]').val());


Another Important Tip:
to fill these fields you use event like $('#jform_password2').click(), this cause 2 problems:
1. "$" var can be some other framework, so we recommend to use "jQuery"
2. event is triggered only when you "click" on password2 field, but this not works when you use keyboard
3. this event is not attacked to password field because it is not loaded when your code execute, you need to include this into some events like jQuery(document).ready
4. if you fill password2 and after email,name and lastname this code not fill informations, because when you fill password2 all others fields are empty, the best way is to attach events when you click submit button


Solution can be to use some code like this

jQuery(document).ready(function(){
jQuery('#member-registration [type="submit"]').click(function(){
jQuery('#jform_cmc_groups_FNAME').val(jQuery('input[name="jform[firstname]"]').val());
jQuery('#jform_cmc_groups_LNAME').val(jQuery('input[name="jform[lastname]"]').val());
jQuery('#jform_cmc_groups_EMAIL').val(jQuery('input[name="jform[email1]"]').val());
});
});
  1. more than a month ago
  2. Bug Report
  3. # 2
jimmywiddle Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 3
admin Accepted Answer
Admin
Hi,
javascript like "jQuery('input[name="jform[firstname]"]').val();" return firstname (I have tested this), but unfortunately I do not know how to works this plugin.
  1. more than a month ago
  2. Bug Report
  3. # 4
jimmywiddle Accepted Answer
Hi, Many thanks for your time/help!

Id love to say it worked!!! But unfortunetly not, I made the correction on the cmc_groups_ as per below, but still no joy ....I dont suppose you have any further thoughts?

Many thanks in advance!


document.getElementById('cmc_groups_FNAME').value = jQuery('input[name="jform[firstname]"]').val();
document.getElementById('cmc_groups_LNAME').value = jQuery('input[name="jform[lastname]"]').val();
document.getElementById('cmc_groups_EMAIL').value = jQuery('input[name="jform[email1]"]').val();
  1. more than a month ago
  2. Bug Report
  3. # 5
admin Accepted Answer
Admin
try ti use something like this

document.getElementById('cmc_groups_FNAME').value = jQuery('input[name="jform[firstname]"]').val();
document.getElementById('cmc_groups_FNAME').value = jQuery('input[name="jform[lastname]"]').val();
document.getElementById('cmc_groups_FNAME').value = jQuery('input[name="jform[email1]"]').val();
  1. more than a month ago
  2. Bug Report
  3. # 6
jimmywiddle Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 7
jimmywiddle Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 8
admin Accepted Answer
Admin
Hi,
cmc-mailchimp-for-joomla adds a hidden field with name jform[cmc][listid], the value of this field is empty, so I think you have some wrong configuration in this component. Anyway, you can simply try if the problem come from Easy Profile by disabling our plugins and try with normal Joomla Registration.

Plugins to disable to try with normal Joomla registration
- Easy Profile - System Plugin
- Easy Profile - Users Plugin

With this plugins disabled Easy Profile will do nothing and you can try with normal Joomla registration.
  1. more than a month ago
  2. Bug Report
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.