Home › Forums › Community Forum › Mandatory custom field before upgrade
Tagged: custom fields, pro forms
This topic contains 14 replies, has 3 voices. Last updated by Cristián Lávaque 4 years, 8 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Apr 17th, 2012 at 1:55 pm #11023 | |
|
|
Hello there, How can I solve? Thanks
|
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Wednesday Apr 18th, 2012 at 6:06 am #11089 | |
|
|
Hi Christian. The thing is that the profile fields are only shown on registration or profile forms. The upgrade is a checkout form, neither of the others, that’s why the profile fields are not shown there. http://www.s2member.com/forums/topic/two-separate-registration-forms/#post-9871 We’re working on improving this, though. |
|
Posted: Friday Apr 20th, 2012 at 9:33 am #11373 | |
|
|
Thanks for your reply, it’ s quite easy with css to show the input I need. Is there anyway to check if that input is filled, before checking out? thanks |
|
Posted: Friday Apr 20th, 2012 at 11:58 am #11393 | |
|
|
I managed to check if it is filled, but the inserted value is not kept after the checkout. If there a way to force S2Members to save it? Thanks |
|
Posted: Friday Apr 20th, 2012 at 11:17 pm #11445 | |
|
|
Sorry, Christian, but I’m a bit confused. Did you add a field to the pro-form and now you’re trying to validate the input? What pro-form is it? How did you add the field? Thanks! |
|
Posted: Tuesday Apr 24th, 2012 at 2:24 pm #11722 | |
|
|
Hi Cristián, that one is the pro-form for level 1. If your user is logged, he can see the pro-form with all the field filled up, if you have a custom field that is mandatory just for the level 1, you can see that input in the code with a property: disabled= “disabled”. With javascript you can remove it so it will be displayed, and also with javascript you can set it as required. So everything seems working properly, because you cannot checkout until you don’ t fill every field, but then after the checkout my custom field is not updated. I just want to find a way to update it on the check out. Thanks |
|
Posted: Tuesday Apr 24th, 2012 at 6:53 pm #11770 | |
|
|
So you have a field that in the admin area is not set as required, but you changed it to required using JavaScript on the front? Did I understand correctly? |
|
Posted: Thursday Apr 26th, 2012 at 9:39 am #11934 | |
|
|
I have a custom field that is set as required in the admin area, but because it’ s a custom field, it’ s not displayed on the checkout to upgrade. It appears as disabled in the checkout page(when the user is already logged and wants to upgrade). It’ s displayed on the regular form, for a new user registration. |
|
Posted: Friday Apr 27th, 2012 at 3:45 am #12021 | |
|
|
Oh, ok. Yeah, that’s what I understood and I replied to first, but then I got confused by your next post and that’s why I asked for more details. Like I said, the upgrade pro-form doesn’t include custom profile fields, it’s just a checkout form. The signup pro-form, on the other hand, is checkout but also registration, which is why it includes the profile fields. But I took note of your request and I’m adding it to the features list to add to s2Member. Hopefully it’ll make it into a future release soon. :) |
|
Posted: Friday May 4th, 2012 at 5:35 pm #12611 | |
|
|
Request: Question: Since it is not possible right now can you please explain how you got this checkbox (single) with the content: “Yes, I want to receive updates from s2Member® via email!” under the “Checkout Now” section on this page? https://www.s2member.com/unlimited-site-co/?s2-ssl=yes You should see it when you are logged in & still do not have bought/upgrade it. That would be a nice workaround in the meantime if I could change it to: “Yes, I have read & agree to these Terms & Conditions”. ;) Thanks. |
|
Posted: Friday May 4th, 2012 at 11:53 pm #12627 | |
|
|
For the email opt-in you have a setting here: [hilite path]Dashboard -› s2Member® -› API / List Servers -› Registration Double Opt-In Box[/hilite] For the T&C agreement, this should help: http://www.primothemes.com/forums/viewtopic.php?f=36&t=2778 |
|
Posted: Saturday May 5th, 2012 at 7:24 am #12661 | |
|
|
Thanks for you quick reply. ;) In your mentioned thread s_d_p said:
This is exactly what I am trying too. Jason Caldwell answered to him:
( This Shortcode is abbreviated for clarity in this regard ) Is it possible to modify the PayPal® and/or Authorize.Net® Pro Form templates? So, in your case, take this file: — Ok I will follow this tip. Seems no problem. :) Then s_d_p asked this:
Jason Caldwell answered:
Question: Can you please give an example of the needed syntax of this mentioned “/* Run your conditional here. */” ? I guess the conditional logic I would need would be: if the user has not checked the Terms & Condition box >>> show the alert / else >>> do not show the alert Thanks. ;) |
|
Posted: Saturday May 5th, 2012 at 2:14 pm #12682 | |
|
|
I’m glad that helped. :) I don’t know JavaScript, so I can’t help you there, but basically you’d be checking if the T&C box is checked or not to decide whether to show the message or submit the form. |
|
Posted: Sunday May 6th, 2012 at 7:59 am #12755 | |
|
|
Finally I succeeded! :) Here is the code I modified of the file “paypal-sp-checkout-form.php” which I copied in the root folder of my theme:
|
|
Posted: Sunday May 6th, 2012 at 10:44 pm #12776 | |
|
|
That’s great! Thank you for the update. :) |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.