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

Latest Blogs

Fan Speak !

  • This extension is a must-have in my opinion and works great.

    A professionally looking mail is a must nowadays when setting up a commercial website and with this extensions you have all the power as if you were launching a page for the web. The installation was quick and easy and I had my HTML-system-mails up and running within a couple of minutes.

    Support is available and providing professional and fast help including quick updates of the software if needed. In total the low price is more than reasonable.

    Thanks to the team of Techjoomla, I will certainly keep an eye on your extensions in the future!