Change/edit organization individual type field

This field code contain in two files: 

You can find field render code in default_campaignform.php file & it's language constant in "en-GB.com_jgive.ini" language file

1.  YOUR_SITE/components/com_jgive/models/forms/campaign.xml

<field name="org_ind_type" type="list" default="non_profit" label="COM_JGIVE_TYPE_ORG_INDIVIDUALS" description="COM_JGIVE_TYPE_ORG_INDIVIDUALS_TOOLTIP">
<option value="non_profit">COM_JGIVE_ORG_NON_PROFIT</option>
<option value="self_help">COM_JGIVE_SELF_HELP</option>
<option value="individuals">COM_JGIVE_SELF_INDIVIDUALS</option>
</field>

2.  YOUR_SITE/components/com_jgive/helpers/campaign.php

// Function to add the organization/individual type field Individuals
function organization_individual_type()
{
    $options=array();
    $app = JFactory::getApplication();
    if($app->isSite())
      $options[]=JHtml::_('select.option','',JText::_('COM_JGIVE_SELECT_TYPE_ORG_INDIVIDUALS'));
      $options[]=JHtml::_('select.option','non_profit',JText::_('COM_JGIVE_ORG_NON_PROFIT'));
      $options[]=JHtml::_('select.option','self_help',JText::_('COM_JGIVE_SELF_HELP'));
      $options[]=JHtml::_('select.option','individuals',JText::_('COM_JGIVE_SELF_INDIVIDUALS'));
      return $options;
}

 

 

Subscribe to Newsletter





Marketing permission: I give my consent to to be in touch with me via email using the information I have provided in this form for the purpose of news, updates and marketing.

What to expect: Jump on to our Newsletter & stay updated on news on our extensions, new releases & offers! 

* If you wish to withdraw your consent and stop hearing from us, simply click the unsubscribe link at the bottom of every email we send. 


Latest Blogs

Fan Speak !

  • simple to use and very usefull for exemple to display the content of a catalog inside the website. Thank you for this good job.