Hi there. Thanks for your inquiry.
However, I would like to have the additional fields to be displayed in the pro form both when users are logged-in and logged-out. Im using the additional fields to record productinformation for customizing the product that Im selling, and I want (logged-in) members to be able to order the same product again with different customizations. I hope this did not add to the confusion.. Is there a way to achieve this?
This will require some custom tweaks because it’s not something s2Member does by default.
You can open this file in your installation:
/s2member-pro/includes/separates/gateways/paypal/paypal.js
At line #623 find this line:
}) ();
Replace with:
});
Now save paypal.js as paypal-min.js in the same directory, overriding the existing copy.
That will prevent s2Member Pro from hiding the fields to logged-in users upon checkout for a second or third time. However, this does NOT change anything in the way s2Member processes the form submission. Any data that is collected from an existing customer for Custom Registration/Profile Fields will be ignored by s2Member. So, if you need to use this information again, you would need to hack that in with Hooks/Filters of your own perhaps.
Please note that s2Member stores Profile Fields for each User/Member, and those cannot be duplicated in storage across multiple purchases. In other words, the Custom Registration/Profile Fields that you create, are filled once for each User/Member, during the initial checkout experience.
Of course, a User/Member can update their Profile Fields in the future, but they can’t add new Profile Fields, or have multiple values for the same Profile Fields (e.g. they only have one Profile).
Suggestion: I would recommend that you customize the Pro Form templates and perhaps add some of your own form processing routines to handle anything that goes above & beyond what Custom Registration/Profile fields can handle.
Please see this FAQ article for instructions on how to customize Pro Form templates:
http://www.s2member.com/faqs/#s2-faqs-pro-form-template-mods