- Posts: 93
- Thank you received: 1
Membership Options - Custom Fields
- Bill
-
Topic Author
- Offline
- Premium Member
-
Less
More
3 years 6 months ago #150309
by Bill
Membership Options - Custom Fields was created 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
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
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
Less
More
- Posts: 93
- Thank you received: 1
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
Less
More
- Posts: 93
- Thank you received: 1
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
All sorted now.
Thanks for your help, as always.
Regards,
Bill
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.