PHP Scripting Plugin on Plans

  • Alan Bennett
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
8 years 3 months ago #74227 by Alan Bennett
PHP Scripting Plugin on Plans was created by Alan Bennett
How do I reference custom fields on the plan (those not part of the subscriber table) in the PHP script as $row->first_name, etc are the only examples and $row->osm_xxx doesnt work?

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #74246 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PHP Scripting Plugin on Plans
Unfortunately, the value of the extra custom fields which you created is not accessible via $row object. You can only get id of the subscription record via $row->id

Then read data from #__osmembership_field_value to get the data of the fields you want

Tuan
The following user(s) said Thank You: Alan Bennett

Please Log in or Create an account to join the conversation.