Custom fields values

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago - 10 years 1 month ago #59860 by reiyo
Custom fields values was created by reiyo
Hi,
I want to get the value of the custom fields I am creating what I need is how to get the subscriber->id using the membership api
All I want is to get a welcome msg using some values

Thanks in advance :)
Last edit: 10 years 1 month ago by reiyo.

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

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago - 10 years 1 month ago #59862 by reiyo
Replied by reiyo on topic Custom fields values
nevermind I solved it :) just seen the table where it holds custom fields values ty
Last edit: 10 years 1 month ago by reiyo.

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

More
10 years 1 month ago #59880 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields values
Yes. It is stored in #__osmembership_field_values table as you figured out :)

Tuan

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

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago - 10 years 1 month ago #59881 by reiyo
Replied by reiyo on topic Custom fields values
Thank you for this great extension but I need one thing please :)
How do I hide net amount and net gross from registered users in the profile tabs in profile subscription history thats number one
number two I need to disable these fields from backend admins too if possible
coz users will only be added from backend there is no nothing like payment

thank you very much :)
Last edit: 10 years 1 month ago by reiyo.

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

More
10 years 1 month ago #59903 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields values
Hi

You will need to edit the code in this case. Look at the file components/com_osmembership/views/profile/tmpl/default.php and you should be able to edit the code to remove the fields you don't want

Tuan

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

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 1 month ago #59979 by reiyo
Replied by reiyo on topic Custom fields values
Thank you I was already editing things on this file but just wondered if there is any option in the component instead of hacking it!
Thanks very much :)

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

More
10 years 1 month ago #59997 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields values
Unfortunately, there is no config options in the extension to allow doing that, so hack the code is the only way. Also, you should use template override so that the modification won't be lost in future release. See docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core to understand how to create template override for one view

Regards,

Tuan

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

More
9 years 5 months ago #72127 by ensigcom
Replied by ensigcom on topic Custom fields values
I am reviving an older post here but i would like to request the same thing, at least as a consideration if easy enough to make. Showing the subscription history can be a bad business decision for many reasons (in some cases, not all of course, but every site and business model is different). Imagine that it can unintentionally over-exaggerate the total cost of services to date, when actually the month-to-month cost is very reasonable.

Also, since my site requires registered users but only some of them belong to the active subscription group, if i show the "edit profile" tab then they will have two places for editing their profile. The joomla profile editing is still required for those registered users that do NOT have any subscription yet, but when they buy a subscription they can see both profile editing pages. Additional to this, have in mind that editing the profile via joomla does NOT update the membership profile (only the membership profile edit updates joomla profile) so this can create chaos if both are shown.

It is very beneficial to be able to select/deselect tabs, from within administrator, depending on website needs. Editing code and creating overrides is not suitable for everyone. So what i am suggesting is, IF it is easy enough to add this option, please add it. If it requires too much effort and coding/testing, then i guess i can live without the modification (i.e. i would have to remove the entire membership view from my menus). Basically i wanted to remove the edit profile and the subscription history tabs, and only keep the "My subscriptions" tab which shows the expiration date/length of the subscription. Not a huge problem, but would be nice to have (if easy to add the option)

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