28

Households can be disabled globally by disabling that contact type. This is not exposed to the UI but is still pretty easy to do: From the api explorer (Support -> Developer -> Api Explorer) make the following selections: With a direct sql query: UPDATE civicrm_contact_type SET is_active = 0 WHERE name = 'Household'; Note: there may be a few places left ...


10

To remove households from the interface completely: Delete any households that may have been created and any relationships involving households (shared addresses, Household members, etc). Update the civicrm_contact_type table in the CIVI database to set the active flag for 'Household' to 0 (as per Coleman's answer) Update the civicrm_relationship_type table ...


6

As I learned from @Nicholai in a previous (unrelated) thread, you can override these templates with some pretty easy logic to add something custom to a single page. For example: {if $contributionPageID == 20} {* whatever you need to do on this page *} {/if} I assume this would work in this case, too. If you try it and it works, let us know!


6

I dont think CiviCRM does this by default However, I do think this is a good idea and makes sense to include it in core for non-civimail mailings (which already have a header/footer) Might want to modify the core mailing functions: CRM_Core_BAO_MessageTemplate::sendTemplate to add a default header / footer Might want to allow this to be overridden both ...


6

How about link your two buttons to two different URLs (confirmation pages) "Thank you for voting yes"; "Thank you for voting no" and use the CiviMail track open/click through feature to see which Contacts clicked which buttons.


6

You can configure CiviCRM to use a customized "fatal error" screen by following the steps below. You may want to include specific site administrator contact information or other problem resolution instructions on the screen, as well as "theme" it for a more professional or consistent look. Save a copy of civicrm/templates/CRM/error.tpl Edit the text and ...


5

Please refer to this link https://civicrm.org/partners-contributors to get/contact a CiviCRM expert in your area


4

They are several places where you can use fonts (by order of complexity): 1) web pages (eg contributions) This one is simple, it's a matter of changing the css and possibly loading an extra bit of code (if you use google font for instance) It's easier to do it from the theme of the CMS around your civicrm 2) mails you can request to use a specific font (...


4

The current correct way to create a custom report is to use an extension, rather than the manual process linked to in the question. Updated documentation for creating a report extension is found here: https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-report The link in Donald Lobo's answer is now broken, but an old version of the document ...


4

The answer is "yes" but... Overriding an entire file means upgrades will become difficult, as you'll have to manually diff the contents of that file with the one in the new version, and reapply your changes. If possible, try accomplishing your goal using a hook.


4

This could potentially be done via Word Replacement - so check there too.


3

Your best option is to do what you were doing previously. However, you will need to modify your customized template to extract details from the $billingDetailsFields array rather than the hard coded fields. I suspect the names are the same, so the translation should be relatively simple. You can use smarty debug to get more details on the contents of the ...


3

I just learned how to use bVisible = false to suppress columns. I found what I needed at http://legacy.datatables.net/usage/columns, the columns documentation for datatable plugin.


3

I've handled this with a .extra.tpl file with some jQuery in it. I also used a template override for one or two customizations, but shied away from them because of the overhead of upgrading them. However, the project in question was in many ways a customized activity form, so I went ahead and did it.


3

A better approach might be to use an extension rather than the above. Documentation for report extensions here: http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Report-Template+Extension You might be able to borrow some code from other reports which show the groups a contact belongs to (not sure if any report does so)


3

The template ​templates/​CRM/​Contact/​Page/​Inline/ContactName.tpl does not contain any custom fields. Instead of adding smartyDebug=1 in the url, which dumps variables in the main template, try adding the smarty tag {debug} in this specific template to see the available local variables. At minimum you will probably find the contact id, and from there you ...


3

As ErikH stated it is always good practice to create a new extension or create a custom folder to override core files So In order to add a supplement address in the report you need to add a new column to the report first 'civicrm_address' => array( 'dao' => 'CRM_Core_DAO_Address', 'fields' => array( 'supplemental_address_1' =>...


3

Thanks for this - it helped me out. I believe the second part of your answer is no longer valid. The new place to reference your template seems to be in: uk.co.vedaconsulting.mosaico/CRM/Mosaico/BAO/MosaicoTemplate.php. Edit the findBaseTemplates() method to return another record with your new template's details and it should show up under the Mailings -&...


3

Can you please edit your question to add your CMS and CiviCRM version. Depending on your CMS there may be other options for customization. The yellow section only appears when a user is logged in to the site. It is designed to prevent a user from overwriting their information with another if they are entering a contribution on another person's behalf. I ...


3

In some CiviCRM pages/forms custom fields are loaded/reloaded via AJAX (you will notice that if you have a set of custom fields based on Activity type, the custom fields update/reload when changing the Activity type to show its correspondent set of custom field). With that in mind you should trigger you script on .ajaxComplete(), something along those lines:...


3

You might be able to do it with css but I might use jquery instead: {literal} <script type="text/javascript"> CRM.$(function($) { $('#s2id_groups').hide(); }); </script> {/literal} The problem with css might also be that you don't have a <style type="text/css"> tag around your css?


3

Welcome to SE, You can set contact type mandatory by using hook_civicrm_buildForm something like below function extension_civicrm_buildForm($formName, &$form) { if ('CRM_Contact_Form_Contact' == $formName && !($form->getVar('_action') & CRM_Core_Action::DELETE) ) { $form->addRule('contact_sub_type', ts('This field is ...


3

The feature you're looking for is called price sets - in combination with the "multiple register participants" feature. Set up the price set with Events menu » New Price Set. See screenshot 1 below. Once you save the price set, you'll new to create a price field. Configure it similarly to screenshot 2 below. If the annual meeting also has a cost, or there ...


2

Since you are trying to modify the way the contact's display name appears on the summary screen, there is actually a hook for that: hook_civicrm_contact_get_displayname. From within your hook you can use the api to fetch the value of the custom field, and append it to the display name.


2

You can disable contact-types directly in the db or with the api, but a word of caution: I've seen older sites where people have messed with the basic contact types, and they've had real problems. Based on other answers, this may be safer to do in current versions of CiviCRM, but I recommend thorough testing of any changes you make.


2

As with Howto hide/disable fields not needed, the best answer as of CiviCRM 5.7 is to use the Contact Summary Layout Editor extension, which enables an admin to create and rearrange arbitrary blocks of fields on the main view contact screen and to remove unwanted fields. In addition to handling core and custom fields, it includes a mechanism for managing ...


2

Most / All forms inherit the form code from: templates/CRM/Form/default.tpl I dont think you should modify that. However, the form tag also emits all attributes attached to the form. So your best bet will be to add an attribute to the form object in the buildForm hook for event registration. There is a method call on the form object to add an attribute: $...


2

We have a custom field called "Grade/Class" for the kids in our org. This field is part of the "Child" custom field set. The id for the custom field set is 4. The id for the custom field itself is 7. We needed the child's Grade/Class field in the Demographic section of the summary screen. So we added a row with the following code to CRM\Contact\Page\...


2

If this is a Drupal site, you can create a block that loads the user and the civi contact to acquire the class year field value and then use jQuery ($cj in CiviCRM) to append the field but the more I think about this, the more I think this requires a custom extension where the extension would acquire the field and use hook_civicrm_contact_get_displayname (as ...


2

I do something very similar with my church. the actual donation is credited to the individual who made it with a soft credit going to the household. This allows us to do reporting by either household or individual.


Only top voted, non community-wiki answers of a minimum length are eligible