• I was wondering if there is a way to have certain registration fields show up on only certain pages.

    Reason being, we have memberships that use a bunch of different coupon codes but they also have an attached voucher code that we need to collect but the voucher code length is different for each coupon. I set it up to accept any combination of letters and characters which in theory should work but people aren’t putting the voucher code in so we have to make it mandatory with the correct allotted numbers required (just plain mandatory didn’t work either)

    Thanks for any help or direction, I’m lost

    https://wordpress.org/plugins/s2member/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Unfortunately, I am pretty sure what you’re asking isn’t possible out of the box, jaspud. It would make a great enhancement.

    Thread Starter jaspud

    (@jaspud)

    Definitely agree. Since you have a solid understanding of the program, any guess how intensive this custom coding might be/ heard of anyone doing it already?

    I don’t think the coding itself would be very hard for a real developer (i.e. not me) because there are a ton of hooks available in s2Member.

    I suspect that most of the time involved would be taken up with finding the relevant hook, especially if the person attempting this task was not so familiar with s2Member.

    I’d start by trying to Google for something similar, so as to provide you not only with a model of how to proceed but also with a suggestion of what the best hook might be.

    Well, I’ve just found a rather interesting resource that I don’t remember noticing before.

    It seems as though the basis of the capability we’re talking about might lie here, so that what you are looking for would just involve modifying a template rather than using a hook.

    What do you think?

    Have you checked here?

    Dashboard -> s2Member -> General Options -> Registration/Profile Fields & Options

    As linked – you can get rid of stuff. But the problem is that sometimes doing so will conflict with what s2member expects to get as input data. So you remove the field via filter – but then you cannot checkout as “please fill in XXX” will come up.

    So needs very careful checking. Trying to remove e.g. the zipcode / Postcode field from the tax settings this way, breaks checkout.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Requiring Custom Registration Fields on Certain Pages’ is closed to new replies.