By Ahmad Arshad on Wednesday, 14 October 2020
Posted in General Issues
Replies 5
Likes 0
Views 627
Votes 0
Dear Stackideas,

I know that we can use Custom Detail https://stackideas.com/docs/payplans/administrators/users/custom-details to get more information from the user during registration process.

1. Is there a way to save it in USERS CUSTOM FIELDS?
2. How do we access this outside of the payplans component?
3. How do we show it in the front end to the user to view and edit?

Manythanks
Hey Ahmad,

1. Is there a way to save it in USERS CUSTOM FIELDS?

What do you mean by this, where you want to store these details.

2. How do we access this outside of the payplans component?

Do you mean by database table which save these details or you want to use PayPlans API.

3. How do we show it in the front end to the user to view and edit?

these detail will show on user dashboard under preferences section.
https://tinyurl.com/y2boltzv
https://tinyurl.com/y4xerps6

Update us with response.
·
Wednesday, 14 October 2020 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
1. Is there a way to save it in USERS CUSTOM FIELDS?

What do you mean by this, where you want to store these details.

* Custom "user fields" is a feature of joomla ... Check User->Fields in administrator menu . It is a much better way of getting extra details and saving them in core tables than dabbling in html which we have to do with "custom details" functionality in payplans

2. How do we access this outside of the payplans component?

Do you mean by database table which save these details or you want to use PayPlans API.

* Either way, but API is preferred to get access to the "custom Details" data

3. How do we show it in the front end to the user to view and edit?
these detail will show on user dashboard under preferences section.
https://tinyurl.com/y2boltzv
https://tinyurl.com/y4xerps6

* Thank you for this
·
Thursday, 15 October 2020 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ahmad,

* Custom "user fields" is a feature of joomla ... Check User->Fields in administrator menu . It is a much better way of getting extra details and saving them in core tables than dabbling in html which we have to do with "custom details" functionality in payplans

Payplans custom details saved in payplans_user table itself.

* Either way, but API is preferred to get access to the "custom Details" data

If you want to see in database table then , these details saved in #__payplans_user, params column.

To use PayPlans API, refer below mentioned code.

require_once(JPATH_ADMINISTRATOR . '/components/com_payplans/includes/payplans.php');

$userId = 1; // here need to use the user id
$user = PP::user($userId);
$params = $user->getParams();


Update us if you have any query.
·
Thursday, 15 October 2020 13:00
·
0 Likes
·
0 Votes
·
0 Comments
·
many thanks
·
Wednesday, 11 November 2020 09:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ahmad,

Your most welcome.
·
Wednesday, 11 November 2020 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post