Relocate Campaign Field

  • awilliams009
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 6 months ago #8106 by awilliams009
Relocate Campaign Field was created by awilliams009
Is there any way to move the "Campaign" field to be in the "Donation" section? It's really more germane to the donation and not the donor.

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

More
14 years 6 months ago #8109 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Relocate Campaign Field
Hi

In this case, you will need to modify the code of the layout alitle . Please open the file components/com_jdonation/views/donation/tmpl/default.php, the code for rendering campaign section is :
Code:
if ($this->config->use_campaign) { if (!$this->fromMenu) { ?> <tr> <td class="title_cell"> <?php echo JText::_('JD_CAMPAIGN');?><span class="required">*</span> </td> <td class="field_cell"> <?php echo $this->lists['campaign_id'] ; ?> </td> </tr> <?php } else { ?> <tr> <td class="title_cell"> <?php echo JText::_('JD_CAMPAIGN');?> </td> <td class="field_cell"> <?php echo $this->campaignTitle ; ?> </td> </tr> <?php } }


I made change to the file for you so that the campaign selection is moved down to donation information . You can simply get this file, unzip it and upload to folder components/com_jdonation/views/donation/tmpl . After that, It should works as expected .

Thanks,

Tuan

Attachment default-20110311.zip not found

  • awilliams009
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 6 months ago #8111 by awilliams009
Replied by awilliams009 on topic Re: Relocate Campaign Field
Thanks Tuan!!

That's exactly what I needed!!

You totally rock!!

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

More
14 years 6 months ago #8112 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Relocate Campaign Field
Great !

If you have some minutes, please help me by giving the extension a 5 stars rating and a nice review at extensions.joomla.org/extensions/e-commerce/donations/7094 to support my development .

Regards,

Tuan

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

More
14 years 5 months ago #8220 by Erin Fernandez
Replied by Erin Fernandez on topic Re: Relocate Campaign Field
I uploaded the file to do the same thing but it did not move the campaign.
Am I using the wrong version?

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

Moderators: Dang Thuc DamDang Dam