Addons and advice WPCA?
-
-
James OliverParticipant# il y a 1 année et 3 mois
Addons and advice
I’m looking at building a new project and wonder if I could use WP Customer Area,
Scenario 1
A user would create a login supplying First Name, Sur Name, CUSTOMER NUMBER, Email and password.
Once the account has been created, they could login to see if any PDF files have been uploaded to their account.
If no files have been uploaded, when a file has been uploaded, they would get an email to say that their account had been updated. They would then log back in to see the attached pdf files.
[Uploading PDF files]
I would need to upload the files to the users account by ftp or a simple admin web page and the files would need to be stored in a folder which would be their customer number (ftp_files\Customers\CustomerNumber).
Scenario 2
We would upload the customer pdf files to (ftp_files\Customers\CustomerNumber) as the customer hasn’t created an account yet. When they create an account using First Name, Sur Name, CUSTOMER NUMBER, Email and password and then login their files would have been already uploaded.
Hopefully this makes sense, is this possible with WP Customer Area.
-
ThomasMaître des clés# il y a 1 année et 3 mois
Hello,
A user would create a login supplying First Name, Sur Name, CUSTOMER NUMBER, Email and password.
WP Customer Area is using the WordPress’ user system. This is not exactly how registration works by default. An user would need to create an account on your site by choosing an username and email. Then an email will be sent to its mailbox with a link to confirm the email and then the user will be able to set its password. Such behaviors are sometimes changed by themes (if your theme provide others ways to create an account), or by using external third-party plugin that could let you customize the registration process. Our Authentication Forms add-on adds registration/login and lost-password pages to the frontend, but follows the process described above.
Once the account has been created, they could login to see if any PDF files have been uploaded to their account.
In order to create a private file post to an user, you first need him to create an account, then create the post and assign it to him.
However, you can programmatically attach a file already present on your server, by hooking into WordPress user_register hook. You could programmatically create functions that check the email of a newly registered user, check if a file actually exists into your ftp-uploads folder, including that email in the filename, and if yes, use our functions to automatically create a private file post and attach the relevant file(s).
That process require some coding knowledges, but any WP developer should be able to do that for you. We recommend in that case to hire one of them from your region.If no files have been uploaded, when a file has been uploaded, they would get an email to say that their account had been updated.
This is basically what the Notifications add-on is doing. If a new private content is created, an email will be sent to the assigned users and administrators.
I would need to upload the files to the users account by ftp or a simple admin web page
I recommend that you give a try to the free base plugin, and check our Getting Started tutorial. Those features are already available in the free version. That would help you to define if the process fits your needs.
the files would need to be stored in a folder which would be their customer number (ftp_files\Customers\CustomerNumber)
The files are stored in wp-content/customer-area/storage/[hash] where [hash] is a string based on user_id and such data. You won’t be able to determine yourself the name of the folder before the user creates its account, because you won’t be aware of the user_id he’ll get while registrating.
We would upload the customer pdf files to (ftp_files\Customers\CustomerNumber) as the customer hasn’t created an account yet.
Same as above, you won’t be able to create the storage folder for an user before he register.
When they create an account using First Name, Sur Name, CUSTOMER NUMBER, Email and password and then login their files would have been already uploaded.
Such a behavior is, as explained above, doable. But not that way. You would need to create functions hooked to WP user_register hook, which should scan a given folder on your server and check if a file actually exists for that customer.*
I hope that’ll help.
Best regards.
Want to help WP Customer Area? It only takes few seconds!
Rate & review the plugin on WordPress.org 🙂
-
The topic ‘Addons and advice WPCA?’ is closed to new replies.