• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Custom PHP Code

Custom PHP Code 8 years 11 months ago #30877

Hi, I need to use Advanced Customization Tab of a Membership. How can I get the UserId created after a new subscription or after email sent on this Custom PHP Code TAB.
The administrator has disabled public write access.

Custom PHP Code 8 years 11 months ago #30883

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You can grab the user's id from the following variable:

$transaction->user_id

The accepted transaction PHP section offers 4 variables that you can take advantage of:


$membership - containing the membership's details
$user_data - containing the user's details
$user_email - containing the user's email
$transaction - containing the transaction's details

You can find more information here:
https://www.rsjoomla.com/support/documentation/view-article/316-memberships.html#advancedcustomization
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Custom PHP Code 8 years 11 months ago #30902

Thanks a lot, just what I needed.

Now, which attributes can be used with variable $membership. Is there any detail of these variables?
The administrator has disabled public write access.

Custom PHP Code 8 years 11 months ago #30926

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
just use:
print_r($membership);die();

to display available information from the $membership variable. This will occur after you accept the transaction.
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 8 years 11 months ago by cosmin.cristea.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!