CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Adding attribute to MembershipBlock
Pages: [1]

Author Topic: Adding attribute to MembershipBlock  (Read 973 times)

john_rosswvsu

  • Guest
Adding attribute to MembershipBlock
March 10, 2009, 09:00:38 pm
Hi everyone!

I am new to civicrm but I already found it very great. The thing is I have been bugged by this issue. I wanted to add an attribute, example "onclick" on the radio button of the MembershipBlock (showing the membership types with minimum contribution). Now I don't know how to do it, or on what file should I make the changes.

Thanks a lot.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Adding attribute to MembershipBlock
March 11, 2009, 08:00:09 am
hi

I assume you are running CiviCRM 2.1.6 ( latest stable release ), It would be good if you update your forum profile with CiviCRM, CMS, MySql, PHP versions.

You might want to take a look for Customizing CiviCRM Screens

Quote
what file should I make the changes.
CRM/Contribute/Form/Contribution/Main.php line around 225
here we called CRM_Member_BAO_Membership::buildMembershipBlock( ); which build membership block.

(caveat : make sure to take backup of code files)


kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Adding attribute to MembershipBlock

This forum was archived on 2017-11-26.