Orchardcore fundraising

From CrestApps/CrestApps.AgentSkills · View interactive version

Orchardcore fundraising is an AI agent skill from the GitHub repository CrestApps/CrestApps.AgentSkills. Skill for the CrestApps Orchard Core Fundraising commerce module. Covers the FundraisingCampaignPart that turns a product into a donation campaign with a goal, an end date, suggested amounts and a minimum, the CampaignProgress and DonateForm shapes, donor-chosen amounts and tributes on the cart line

How to use this skill

Skill file

Orchard Core Fundraising - Prompt Templates

Raise Money with Campaigns

You are an Orchard Core expert. Generate accurate setup and extension guidance for the CrestApps Fundraising module, which turns a product into a campaign that donors give their own amount to.

Guidelines

Feature and Services

| Item | Value |

|---|---|

| Feature ID | CrestApps.OrchardCore.Fundraising |

| Content part | FundraisingCampaignPart |

| Shapes | CampaignProgress, DonateForm (in the ProductAction display type) |

| Cart line handler | DonationLineHandler (ICartLineHandler) |

| Order handler | DonationOrderHandler (IOrderEventHandler) |

| Records | Donation in collection Fundraising (IDonationStore, DonationIndex) |

| Service | DonationService (RecordAsync, RefundAsync, GetProgressAsync, ListByCampaignAsync, ListByOrderAsync, ListByDonorAsync) |

| Cart line details | donation.amount, donation.tribute |

| Site settings | FundraisingSettings (group fundraising, Settings > Commerce > Fundraising) |

| Permission | ManageFundraising (Administrator, Store manager), also guards the settings group |

| Sample recipe | Fundraising sample: a Fundraising Campaign type and a campaign raising $10,000 |

The Campaign Part

| Property | Default | Meaning |

|---|---|---|

| Goal | 0 | Target in the product's currency; zero for none |

| EndsUtc | null | End of the campaign; null for no end. Stored in UTC; the editor shows and takes it in the site's time zone, and donation receipts show the gift's day in the site's time zone |

| SuggestedAmounts | 25, 50, 100 | Up to six suggested amounts |

| MinimumAmount | 1 | Smallest accepted gift |

| TaxDeductible | true | Issue a tax receipt for each donation |

{
  "steps": [
    {
      "name": "ContentDefinition",
      "ContentTypes": [
        {
          "Name": "FundraisingCampaign",
          "DisplayName": "Fundraising Campaign",
          "Settings": { "ContentTypeSettings": { "Creatable": true, "Listable": true, "Draftable": true, "Versionable": true } },
          "ContentTypePartDefinitionRecords": [
            { "PartName": "TitlePart", "Name": "TitlePart", "Settings": { "ContentTypePartSettings": { "Position": "0" } } },
            { "PartName": "ProductPart", "Name": "ProductPart", "Settings": { "ContentTypePartSettings": { "Position": "1" }, "ProductPartSettings": { "Type": "Service", "DefaultCurrency": "USD", "SalesMode": "Purchasable", "PriceDisplay": "Hidden" } } },
            { "PartName": "FundraisingCampaignPart", "Name": "FundraisingCampaignPart", "Settings": { "ContentTypePartSettings": { "Position": "2" } } }
          ]
        }
      ]
    },
    {
      "name": "Content",
      "data": [
        {
          "ContentItemId": "4fndrsng0library2026000a",
          "ContentType": "FundraisingCampaign",
          "DisplayText": "Books for the community library",
          "Latest": true,
          "Published": true,
          "TitlePart": { "Title": "Books for the community library" },
          "ProductPart": { "Price": 25, "Currency": "USD", "Sku": "GIVE-LIBRARY", "IsPurchasable": true },
          "FundraisingCampaignPart": {
            "Goal": 10000,
            "EndsUtc": "2026-12-31T23:59:59Z",
            "SuggestedAmounts": [ 25, 50, 100 ],
            "MinimumAmount": 5,
            "TaxDeductible": true
          }
        }
      ]
    }
  ]
}

The part is in CartOptions.ChooseOnProductPageParts, so product cards send shoppers to the campaign page. There, CampaignProgress shows the amount raised toward the goal, the donor count and the days left, and DonateForm posts details[donation.amount] and details[donation.tribute] with the Add to cart form.

The Cart Line

DonationLineHandler:

Donations, Receipts and Refunds

FundraisingSettings holds OrganizationName (the site name when empty), TaxId, ReceiptStatement and EmailReceipts (on).

Donors find their gifts on account/donations (AccountDonations, Donations in the storefront account menu). Each tax-deductible gift links to a printable receipt at account/donations/{id}/receipt (AccountDonationReceipt), which only its donor can open.

Troubleshooting

| Symptom | Check |

|---|---|

| Donate form missing | The product page must render the ProductAction display type and the part must be attached |

| Amount refused | Below MinimumAmount, or the campaign has ended |

| A coupon did not reduce a donation | Expected. Donation lines are excluded from discounts |

| No receipt email | TaxDeductible off, EmailReceipts off, or email is not configured |

| Progress counts the wrong total | Progress uses CampaignAmount in the campaign currency and subtracts refunds |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.