Membership Options - Custom Fields

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 6 months ago #150309 by Bill
HI Tuan,

I notice that the page that shows the membership options also shows the custom fields although I haven't used any of them and they are blank.  Please see the attached screen shot of what it looks like.  So, I have read your manual dealing with Custom Layouts,  and found the program file that populates that part of the page (/home/sapraorg/public_html/components/com_osmembership/view/common/tmpl/plan_custom_fields.php).  Line 24 has the following:if ($field->getAttribute('hide'))
{
continue;
}

That appears to look for an indicator called 'hide' and if true, it will skip past that field and not print it.  I cannot find that indicator anywhere so I have assumed that it doesn't exist and would default to false in the above code, and prints the field and contents.  So I have commented out lines 29 to 36 and that does the trick.  I will include the changed file in the common folder as you suggest, but I thought I would mention this to you in case this is a bug.

Regards,

Bill
 

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

More
3 years 6 months ago #150326 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Membership Options - Custom Fields
Hi Bill

Just want to be clear: You did not define these fields and don't want to use these fields yourself?

Or you want to use these fields, but only show it when there is value entered?

Tuan

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 6 months ago #150329 by Bill
Replied by Bill on topic Membership Options - Custom Fields
Hi Tuan,

I did not define these fields and don't need to use them.

Hope that helps.

Regards,

Bill

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

More
3 years 6 months ago #150330 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Membership Options - Custom Fields
Hello Bill

In this case, please delete the file components/com_osmembership/fields.xml and these information won't be displayed anymore

Maybe someone added that file by mistake

Tuan

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 6 months ago #150331 by Bill
Replied by Bill on topic Membership Options - Custom Fields
Thanks Tuan.

All sorted now.

Thanks for your help, as always.

Regards,

Bill

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

More
3 years 6 months ago #150351 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Membership Options - Custom Fields
OK Bill. Happy to hear that. Please continue using the extension, if you have questions or need help, please don't hesitate to ask us

Tuan

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