Campaigns

[TOC]

What a campaign does

A campaign gives a donation a named purpose. It can provide a title and description, a goal and progress information, its own suggested amounts, donation type, payment methods and messages. The campaign ID is stored on the donation, so administrators can report donations for each campaign.

Campaigns are optional. A Donation Form menu item with Choose campaign left at its empty value is a general form. In that form, the donor can select a published, public campaign from the Campaign list, or leave the selection empty. If no campaign is selected when the donation is processed, Joom Donation assigns the first published campaign by ordering; therefore, use a general form without campaigns only when this fallback is acceptable.

Creating or publishing a campaign does not publish a page automatically. Put it on the site using one or more of these supported methods:

  • Create a Campaigns List menu item. It lists published campaigns that are not marked Private campaign and have an access level visible to the visitor. The visitor chooses Donate Now on a campaign card.
  • Create a Donation Form menu item. Leave Choose campaign empty for a general form with a campaign selector, or select a campaign for a form dedicated to that campaign. A dedicated form stores that campaign ID in the donation and does not ask the visitor to choose another campaign.
  • Publish the Donation Campaigns module in a module position. The module creates a Donate Now link for each campaign it lists. Its parameters can limit the list by category, campaign IDs or parent campaign, and control the title, dates, goal, raised amount, percentage, donor count, days left and button.
  • Use the campaign link generated by the campaign list, module or donation form when a campaign is private. Private campaigns are excluded from public lists, but the donation view loads a published campaign by its ID, so a person with its direct link can open its form.

On a dedicated campaign form, the campaign title and message are shown and the form uses that campaign's settings. A general form shows a campaign selector and applies the selected campaign's settings after the selection changes. The campaign's Private campaign setting controls listing, not whether a published campaign ID can be used in a direct donation URL.

What changes the donation experience

These settings affect the form or the information shown to donors:

  • Donation Type is Both, One-time only or Recurring only. Both lets the donor choose; the campaign can force one-time or recurring donations. Recurring donations still require recurring donations to be enabled globally and a payment plugin that supports recurring payments.
  • Recurring Frequencies limits the frequencies available for this campaign when it has its own value. Leaving it empty inherits the global setting.
  • Display amount textbox controls whether the donor can enter an amount. Show pre-defined amount and Pre-defined amount control suggested amount choices. If campaign amounts are empty, the global predefined amounts are used. Amounts explanation supplies the text displayed with those choices.
  • Minimum donation amount and Maximum donation amount override the corresponding global values when non-zero. A zero value inherits the global setting.
  • Payment Methods limits the payment methods available on this campaign's form. The payment plugins themselves must be published and configured.
  • Goal is a target used for progress and goal displays. Show campaign info can inherit the global choice or explicitly show or hide campaign progress information. Reaching the goal does not automatically unpublish the campaign or close donations.
  • Disable donation when this campaign has ... donations sets a campaign donation-count limit. Leave it at zero or empty to inherit the global option.
  • Start Date and End Date are displayed as campaign dates. The code does not filter the campaign list by Start Date. An expired End Date can stop the donation form when the global setting to allow donations for expired campaigns is disabled; it does not by itself unpublish the campaign. Check the global configuration before relying on an end date to close donations.
  • Published controls availability. Unpublished campaigns are not shown in frontend campaign lists, and opening their donation form redirects the visitor away with a campaign-unavailable message.
  • Private campaign hides a campaign from public campaign lists and the campaign selector. It does not prevent a direct link to the form for a published campaign.

Goal, raised amount, percentage and donor count are display values. They do not themselves select a campaign or close its form. The raised amount is calculated from published donation records linked to the campaign.

Open Campaigns in the Administrator

In Joomla Administrator, go to Components → Joom Donation → Campaigns.

The list provides search, pagination and filters for Category, Status, Type and Parent Campaign. Columns include title, start and end dates, goal, donated amount, donation type, the Parent and Child columns, access, published state and ID. Use the title to edit a campaign, the toolbar actions to create, publish, unpublish or delete selected campaigns, and the ordering handle to change ordering when ordering is enabled. Deleting a campaign is a destructive administrator action; confirm the result in your own backup and data-retention policy before using it with existing donations.

Create or edit a campaign

  1. Open Components → Joom Donation → Campaigns and select New, or select a campaign title to edit it.
  2. In the General tab, enter Title. Optionally select Category, Parent Campaign, add a Photo, and enter Short Description and Description. The Parent Campaign list contains only published campaigns that are not themselves children and have Enable Peer-to-Peer Fundraising set to Yes. See Parent and Child Campaigns before using it.
  3. In Other Information, set Start Date, End Date, Goal, Donation Type, and any campaign-specific donation limits. Select an Owner if required. Choose Show campaign info, set Private campaign, select Access, and set Published to Yes when the campaign is ready. Enable Peer-to-Peer Fundraising marks a campaign as a parent that can have child campaigns. Child campaigns copy some of the parent's payment settings when they are created; they do not follow later changes (see Parent and Child Campaigns).
  4. To customize the campaign page metadata, use Inherit menu metadata, Meta Keywords, Meta Description and Browser Page Title. When inheritance is enabled, the donation page uses the active menu metadata where applicable.
  5. In Messages, configure Display amount textbox, Show pre-defined amount, Pre-defined amount and Amounts explanation. The same tab contains notification and reply email addresses, donor email subjects and bodies, Donation Page Message, and Thank you message. An empty campaign email or message value falls back to the global configuration where the field supports inheritance.
  6. In Payment, select Payment Methods. If multiple currencies are active, select the campaign Currency and set its Currency symbol. Payment-specific fields such as PayPal Email, PayPal redirection message, API Login and Transaction Key are available here. Do not enter credentials unless the corresponding payment plugin is configured for this campaign.
  7. If enabled by the installation, review Certificates and its certificate template, email and download options. If multilingual content is enabled, use Translation for translated title, alias, descriptions, amount explanation, email text and messages.
  8. Select Save & Close. From the list, confirm the Published badge and the expected dates, goal and donated amount.

Verify the visitor view

Open the exact frontend menu item or module position used for the campaign. For a list or module, confirm that the campaign appears and that Donate Now opens the expected form. For a dedicated Donation Form, confirm that the campaign is already selected and that the form shows the expected suggested amounts, amount entry, donation type, payment methods and campaign information. Submit a test donation only with a configured test/offline payment method, then verify that the donation record has the expected campaign.

Parent and Child Campaigns

What parent and child campaigns do

A parent campaign groups child campaigns. Each child is a normal campaign record with its own title, goal, dates, amounts, donation form and donation records.

Back to School            (Parent: Enable Peer-to-Peer Fundraising = Yes)
├── School Supplies       (Child)
└── Travel Support        (Child)

What the relationship does:

  • It adds a Child Campaigns tab to the parent's donation form page, listing its published children with their raised amount, goal, donor count and a Donate button. The parent's card in a Campaigns List also shows up to three published children.
  • In Campaigns, a parent's Donated value includes its own donations plus donations whose campaign is one of its direct children.
  • It provides the Type and Parent Campaign filters in Components → Joom Donation → Campaigns, and a Parent Campaign filter in Manage Donors.

What it does not do:

  • It does not create a menu item. Use a Campaigns List or Donation Form menu item, or the Donation Campaigns module, as described above.
  • It does not move donations. A donation belongs to the campaign whose form was used.
  • It does not copy the parent's goal, dates, amounts or Custom Fields to a child, and it does not set the parent's goal from the children's goals.
  • It supports one level only. A child has one parent and cannot be a parent.

When to use this structure

Approach Use it when Practical benefit Trade-off
Parent–Child Campaigns One program has several separate destinations that each need their own form, goal and donation records. The parent page lists its children, the Campaigns list can show a combined total for the parent, and Manage Donors can filter by parent. One level only. Children have separate settings to maintain. Totals differ by screen (see below).
Independent campaigns The funds are unrelated, or you do not want any program-level total. Nothing links them, so changes to one do not affect another. You must create your own navigation, for example a Campaigns List menu item. No parent total.
Categories You only want to group campaigns for filtering. Category is a filter in the Campaigns list and in the Donation Campaigns module. A category has no donation page or total of its own. It does not create a parent page.

Set up a parent campaign and its children

  1. Go to Components → Joom Donation → Campaigns. Open an existing campaign or select New for the parent. In General, enter Title. In Other Information, set Enable Peer-to-Peer Fundraising to Yes and Published to Yes. Set Goal, dates and the Payment tab (payment methods, currency and payment fields) first, because a new child is pre-filled from the parent's payment values. Select Save.
  2. Reopen the parent and select Create Fundraiser in the toolbar. The form opens with the title "Create a Fundraiser for " and Parent Campaign preselected. Enter a Title for the child (for example "School Supplies"), then set its own Goal, dates, Donation Type, amounts and messages. Its Payment tab fields are read-only and copied from the parent.
  3. Select Save & Close. Repeat for each child.
  4. Check the relationship in the Campaigns list: the parent shows Parent in the Type column and the child shows Child, with the parent's name. Use the Type or Parent Campaign filter to list only the children of one parent. Important: the Parent Campaign select is disabled on this form, and the form has no hidden field that sends its value. Browsers do not submit disabled fields. The administrator save code stores whatever parent_id it receives, defaulting to 0. If the child does not show as Child after saving, the relationship was not stored; do not rely on it until you have confirmed it in the list. A child can also be created from the frontend, covered below, and that form sends the parent explicitly.
  5. To make the structure visible, publish a Campaigns List menu item (the parent card shows its children) or a Donation Form menu item with Choose campaign set to the parent (the page shows the Donate and Child Campaigns tabs). The Child Campaigns tab appears only when the parent has at least one published child. A logged-in visitor who has permission to create campaigns also sees Create Child Campaign there when the parent has Enable Peer-to-Peer Fundraising set to Yes.
  6. Open the parent's page, then each child's own Donate link or Donation Form URL, and check that the correct campaign is selected on the form.

Notes verified in the code:

  • The Parent Campaign list excludes unpublished campaigns, campaigns that are already children, and campaigns without Enable Peer-to-Peer Fundraising. This is the only restriction on the administrator form. On save, the administrator code does not check that the parent exists, that it is published or that it is not the campaign itself. Do not rely on the save to catch these mistakes.
  • The administrator form hides Parent Campaign until Enable Peer-to-Peer Fundraising is set to Yes. This is a browser-side toggle, not a save check.
  • The frontend child form (Create Child Campaign) refuses a parent that is unpublished or lacks the Enable setting, and requires a logged-in user with campaign permissions. On save it copies the parent's payment methods, recurring flag, PayPal email and Authorize.Net credentials into the child, and clears the child's category.
  • Copying is a one-time copy at creation. Changing the parent's payment methods later does not update existing children.

Understand donation attribution and progress

Each donation is stored with the ID of the campaign whose form was used. The Donate button on a child opens the donation form with the child's ID, and the form posts that ID as a hidden field when it is a dedicated campaign form. The parent's own Donate tab opens a form for the parent, so a parent can receive direct donations.

Example: School Supplies receives 300, Travel Support receives 200, and Back to School receives a direct 50. All three are confirmed donations (published).

Where you look Back to School School Supplies Travel Support
Manage Donors Campaign column one record (50) one record (300) one record (200)
Campaigns list Donated and Donors (administrator) 550 300 200
Public Campaigns List card for the parent 550
Child card on the Child Campaigns tab 300 200
Donation form page of the parent (progress block and goal check) 50

Points to read from this table:

  • The 300 and 200 stay on the child records. Nothing moves them to the parent. The parent's total of 550 is calculated when the screen loads.
  • Only donations that are confirmed (published) count. Pending or unpaid records are not counted. A child's own published state is not checked when adding children's donations to the parent in the Campaigns list and in the public Campaigns List.
  • Totals are added for one level only: the parent plus its direct children.
  • The donation form page of a campaign uses a different calculation. It adds the campaign's own donations and any donation whose Parent Campaign field (parent_campaign_id) equals the campaign. The public donation flow in this code does not set that field. It appears only on the donor record in the administrator, so on the parent's own form page the progress usually shows only direct donations (50 here), and the goal-reached and donor-limit checks use that smaller figure. Compare screens before announcing a combined total.
  • The administrator Campaigns list adds donor records that have the Parent Campaign value to the parent total, on top of the children total. If you set that value on donor records of a child, the parent total in that column can count them twice.
  • The percentage is the displayed total divided by that campaign's own Goal. The parent's goal is not calculated from its children. If the goal is empty, the public list uses 100 as the divisor.
  • The campaign statistics PDF (Download Report in the campaign toolbar) includes the parent and its published children.
  • In Manage Donors, the Parent Campaign filter shows records whose campaign is a child of the selected parent. Direct donations to the parent do not appear under that filter. To see them, filter by Campaign and select the parent.

Manage a live campaign hierarchy

Before changing anything, note the parent's and each child's Donated value in Campaigns, and count the records in Manage Donors for each campaign.

  • Change a child's parent: on an existing child the Parent Campaign select is disabled and the form has no hidden field for it, so the administrator form is not a supported way to move a child. Check the code path in your installation before trying, and test it on a copy first.
  • Unpublish a child (Published = No): the child disappears from the Child Campaigns tab, the parent card, public lists and the selector. Its direct URL redirects the visitor to the site root with the message "Campaign is unavailable", so it cannot receive donations. Existing donation records keep their campaign. The parent's total in the Campaigns list and public list still includes the child's confirmed donations, because the child's published state is not part of that calculation. Make a note of this before reporting totals.
  • Make a child private (Private campaign = Yes): it leaves the public lists and the selector, but the parent's Child Campaigns tab and card still list it, and its form remains reachable by its link. Use unpublish to stop donations.
  • Unpublish the parent: the parent's own form redirects with "Campaign is unavailable". The code does not unpublish its children, and a child can still be opened by its own URL. Unpublish each child that should also stop. The parent also leaves the Parent Campaign list for new children.
  • Expiry: an End Date only blocks the form when the global setting that allows donations for expired campaigns is off. It has no effect on the parent–child link.
  • Delete a campaign: the delete action removes the campaign record only. The code does not check for children or donations, does not reassign them, and the delete is not blocked. Existing donor records keep the old campaign ID. Warning: deleting a parent leaves its children with a parent ID that no longer exists, and deleting any campaign can break the campaign names shown in Manage Donors and reports. Unpublish instead of deleting once donations exist.
  • Menu items: a Donation Form menu item that selects a campaign still points to it. If the campaign is unpublished, the menu item opens the "Campaign is unavailable" redirect. Review such menu items when ending a branch.

After the change, repeat the same checks as before and compare the numbers.

Scenario 1: One program with several items (Back to School)

Goal: accept donations for "School Supplies" and "Travel Support" under one "Back to School" program and see each item's total.

Why parent–child: each item needs its own goal and records, and the program page should list both. A category has no page, and independent campaigns have no program page.

Steps:

  1. Create "Back to School" with Enable Peer-to-Peer Fundraising = Yes, Published = Yes, and the payment methods you want.
  2. Open it and use Create Fundraiser to create "School Supplies" (goal 3,000) and "Travel Support" (goal 2,000). Confirm both show Child in Campaigns.
  3. Create a Donation Form menu item with Choose campaign = "Back to School", or a Campaigns List menu item.

Visitor view: on the program page the visitor sees the Donate tab for the program and the Child Campaigns tab with two cards. Each card's Donate button opens that item's own form.

Recorded where: a gift made from the "School Supplies" card is stored with the School Supplies campaign. In Manage Donors, the Campaign column shows School Supplies. Filter by Parent Campaign = "Back to School" to list the item-level gifts.

Check: use a test or offline payment method with a dummy donor. The Campaigns list should show the gift on School Supplies and add it to Back to School. The Child Campaigns tab should show it on the School Supplies card.

Limits: the parent's goal is entered by hand, not added up from the children. Different screens use different totals (see above).

Scenario 2: One fundraising week with several teams (Community Fundraising Week)

Goal: give each local team its own donation page and progress.

Why parent–child: teams need separate destinations and separate goals under one event.

Steps:

  1. Create "Community Fundraising Week" as a parent (Enable Peer-to-Peer Fundraising = Yes).
  2. Create "Team North" and "Team South" with Create Fundraiser. Give each its own Goal, photo and descriptions.
  3. Publish a Campaigns List menu item. Share each team's Donate link or Donation Form URL.

Visitor view: each team's form shows only that team. The parent's card in the list shows the combined figure and up to three child cards.

Recorded where: each team's gift is stored on that team campaign.

Check: in Campaigns, filter Parent Campaign = "Community Fundraising Week" to compare Donated and the goal progress of the two teams. The parent's Donated value is the event total in this list.

Limits: the combined page progress is only as accurate as the screen that shows it. The code has no dedicated leaderboard. Do not promise one; use the Campaigns list or the PDF report.

Scenario 3: End one item while the program continues

Goal: stop "Travel Support" from taking gifts while "Back to School" continues.

Steps:

  1. Record the totals of the parent and both children and the Travel Support record count in Manage Donors.
  2. In Campaigns, open "Travel Support", set Published to No and save. (Do not delete it.)
  3. Check the parent's page, the direct URL for Travel Support, a Donation Form menu item that selects it, and Manage Donors.

Expected result: Travel Support is gone from the Child Campaigns tab and public list. Its direct URL redirects with "Campaign is unavailable". Existing Travel Support records still show Travel Support in Manage Donors. The parent's total still includes Travel Support's confirmed gifts.

Limits: unpublishing stops new gifts but does not remove past ones from totals. If the donor record also has the parent ID set, it stays counted as well. There is no tool here to move past gifts to another campaign.

Checklist

Use only dummy data and a test or sandbox payment method. Never process a real transaction.

  • [ ] The parent shows Parent and each child shows Child with the right parent in Campaigns.
  • [ ] The parent's page shows the Child Campaigns tab with only the published children you expect.
  • [ ] Each child's direct URL opens the right form; an unpublished child redirects.
  • [ ] The campaign shown on each donation form (child and parent) is correct.
  • [ ] After a test gift, Manage Donors shows it under the correct Campaign.
  • [ ] Compare Donated for the parent and child in Campaigns, the public list and the form page before and after the test gift, and write down any differences.

Common Setup Scenarios

General donations without campaign selection

Goal: receive donations without requiring a donor to choose a campaign.

Set up: Create a Donation Form menu item and leave Choose campaign empty. Review the global donation configuration because an unassigned submission is assigned the first published campaign by ordering when it is processed.

Frontend: Publish the menu item. The visitor starts on the general form and can see the campaign selector; leaving it empty is supported, but it does not create a permanently campaign-free donation record if a published campaign exists.

A page for one fundraising drive

Goal: send visitors directly to one campaign.

Set up: Create and publish the campaign, configure its Donation Type, amounts, limits, payment methods and messages, then create a Donation Form menu item and select that campaign in Choose campaign.

Frontend: The visitor opens the menu item, sees the campaign form, and cannot switch to another campaign on that dedicated form. A private campaign can instead be shared through its generated direct link.

A page where donors choose the campaign

Goal: offer several public campaigns from one form.

Set up: Publish the campaigns and keep Private campaign set to No. Create a Donation Form menu item with no campaign selected.

Frontend: The visitor starts on the general form, selects a published public campaign, and the form changes to that campaign's settings. Alternatively, publish a Campaigns List menu item so each campaign has its own Donate Now link.

Different suggested amounts for different campaigns

Goal: tailor amount choices to each fundraising drive.

Set up: In each campaign's Messages tab, enable Show pre-defined amount, enter Pre-defined amount values and their Amounts explanation, and decide whether Display amount textbox permits another amount. Leave the campaign values empty to inherit global predefined amounts.

Frontend: A dedicated form or a selected campaign shows that campaign's amount choices. Verify the form rather than the campaign list, because amount settings belong to the donation form.

Show a goal and progress

Goal: show fundraising progress without making the goal a hard stop.

Set up: Set Goal above zero and choose Show campaign info in the campaign. Also configure the global campaign-progress option when using the inherited value. For a list or module, enable its goal, donated amount and percentage display options.

Frontend: The campaign form and, where enabled, the campaign list/module show the goal and progress calculated from published donations linked to the campaign. Reaching the goal does not close the form.

Offer recurring donations

Goal: let donors start a recurring payment for a campaign.

Set up: Enable recurring donations in the component Configuration, configure and publish a payment plugin that supports recurring payments, then set the campaign Donation Type to Recurring only or Both. Configure Recurring Frequencies on the campaign or leave it empty to inherit the global frequencies.

Frontend: The donation form offers the supported recurring choice and frequencies. The actual recurring transaction is processed by the selected payment plugin; campaign settings alone do not make an unsupported plugin recurring.

Source-verified scope

This page describes the behavior implemented in the current repository for the Joomla 5/6 administrator interface. It was checked against the campaign administrator form, view, model and list; the campaign list model; the donation view, model and layouts; the frontend campaign form; the helper that calculates donated amounts; the statistics helper; and the Campaigns List, Donation Form and Donation Campaigns module files.

  • Verified by reading source code: the saving and listing of the parent relationship (admin/model/campaign.php, admin/view/campaign/html.php, admin/model/campaigns.php, site/model/campaign.php); frontend display (site/view/donation/html.php, site/view/donation/tmpl/default.php, site/view/campaigns/tmpl/default.php, site/controller/controller.php loadChildCampaigns); donation recording (site/model/donation.php processDonation, admin/libraries/osf/payment/payment.php onPaymentSuccess); progress calculation (DonationHelper::getTotalDonatedAmount, DonationHelper::getTotalDonor, DonationModelCampaigns::buildQueryColumns, DonationModelCampaign::loadData, DonationStatisticsHelper::getCampaignIds).
  • Tested on a live site: nothing. The extension was not installed or tested on a Joomla 5 or Joomla 6 site for this page.
  • Not verified: whether a browser saves the Parent Campaign value from the administrator form when its select is disabled (the code suggests it does not); the behavior of payment plugins, template overrides and third-party plugins; and any report not named above.