- Posts: 2
- Thank you received: 0
Relocate Campaign Field
- awilliams009
- Topic Author
- Offline
- New Member
-
Less
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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 :
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
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
-
Less
More
- Posts: 2
- Thank you received: 0
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!!
That's exactly what I needed!!
You totally rock!!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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.
- Erin Fernandez
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 0
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?
Am I using the wrong version?
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc Dam, Dang Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.