• Resolved hollosipeter

    (@hollosipeter)


    Hi! I’m asking your help about this case:

    I have a registration form where people can register to dance class – the last few days you helped me a lot with this what thank you again.
    I now that you have a github where lot of mu-plugins exist but I didn’t why what can do this:
    When somebody registering to my dance classes, they have an option (with conditional rules) that “deleting the registration.
    I’m looking for something what is making an ‘inspection’ when somebody tries to submit a form with check “delete registration” and if the e-mail address or the phone number is exist on an existing form, they get a message about “Sorry, but you didn’t have existing registration”?

    When somebody registering, I’m using “email-1′ and ‘phone-1’ as fields Where somebody tries to delete and they are checking “deleting existing registration” checkbox, I’m using “email-2” and “phone-2”. I like to be that checking that “email-2” or “phone-2” has an existing registration.

    So technically I need when somebody fills email-2 or phone-2, field that checks that e-mail-1 or phone-1 data is already exist in the submissions or not and if yes, this message has to come for the user.
    I know that this is 2 mu-plugins, one for the e-mail check, one for the phone number because maybe somebody using another e-mail when ask the deletion or mistype the phone number, so this two field not need to consist the two fields.

    Thank you!
    Peter

    • This topic was modified 1 year, 8 months ago by hollosipeter.
    • This topic was modified 1 year, 8 months ago by hollosipeter.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 31 through 34 (of 34 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello Peter,

    After reviewing the code, the devs suggested the following modifications for making the two snippets work with each other:

    1. Change this part (line 24) in the 1st mu-plugin (used for preventing duplications):

    22246 => array('phone-1', 'phone-2', 'email-1', 'email-2')

    to:

    22246 => array('phone-1', 'email-1')

    2. In the 2nd script (used for the cancellation requests), please replace this (line 40):

    10, 3

    with:

    9999, 3

    I hope this helps. Let us know if there’s still any issue!

    Best Regards,
    Dmytro

    Thread Starter hollosipeter

    (@hollosipeter)

    Hello Guys!
    Thank you for all, now this is working. The prevention of duplication and the checking if no registraton, that not allowed to delete.
    Of course, in this case deletion can be make twice or more, because phone-2 and email-2 not in the prevention checklist, but I know somehow need to create a logic. I don’t think that somebody 100x times submit a deletion. So this is perfect!

    Thank you so much for your energy and getting help! ??

    Best regards,
    Peter

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    HI @hollosipeter

    That’s a great news, thank you of letting us know!

    As this is a super-long ticket, let me just make sure – can we consider the case closed and mark this as resolved or do you still need assistance with something that we may possibly missed here?

    Best regards,
    Adam

    Thread Starter hollosipeter

    (@hollosipeter)

    Hello Adam!

    Of course, I marked as resolved, thank you for your help!

    Best regards,
    Peter

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘New form based on existing registration’ is closed to new replies.