UK Gif Aid

More
1 week 4 days ago #120036 by Trevor Smith
Replied by Trevor Smith on topic UK Gif Aid
I have a temporary solution using custom fields and some css:

Add a heading field title: 'Gift Aid'
Add a second header field title: 'Gift Aid Declaration' name: 'giftaid_declaration' css class: giftaid-declaration
Add a checkbox title: 'Gift Aid my donation' values: 'Yes, I am a UK taxpayer and wish to join the Gift Aid Scheme.' | 'No thank you.'

Add the following css:
#field_giftaid_declaration::after {
    content: ": In order to Gift Aid your donations, simply tick the box below. You’ll boost your donations by 25p for every £1 you donate. I confirm that I am a UK taxpayer and I understand that if I pay less Income Tax and/or Capital Gains Tax than the amount of Gift Aid claimed on all my donations in that tax year, it is my responsibility to pay any difference.";

}
#field_giftaid_declaration {

    font-size: 14px;
    line-height: 18px;
    font-weight: lighter;
    text-transform: none;

}

The result looks like this:


I just need a way of including the field in the report.

regards
Trevor
Attachments:

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

  • Fra Tabs
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 week 3 days ago #120077 by Fra Tabs
Replied by Fra Tabs on topic UK Gif Aid
That's excellent, exactly what's required

I've been struggling with adding any form of text to the donation.php file, doesn't seem to add normal html tags, such as <p>, they don't show up on the form, have even tried duplicating existing php tags to no avail, I'm not savvy with php.

Would I be right in thinning your code would go into the admin form rather than directly into donation.php?

It's a pity joom donation doesn't have a set of form templates that use current styles, that can be easily manipulated by css, maybe something to think about, as I dare say would exponentially increase it's popularity.

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

More
1 week 3 days ago #120079 by Trevor Smith
Replied by Trevor Smith on topic UK Gif Aid
No need to change any code.
Go to the admin area and click on Components | Joom Donation | Configuration
Click on the Custom CSS tab and enter the code there.
Attachments:

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

  • Fra Tabs
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 week 3 days ago #120085 by Fra Tabs
Replied by Fra Tabs on topic UK Gif Aid
Thanks that's worked really well, as you say would be good if it could be included in the final report

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

More
1 week 2 days ago - 1 week 2 days ago #120100 by Trevor Smith
Replied by Trevor Smith on topic UK Gif Aid
I have written a simple module to display a list of Gift Aid donations for a given period - last 28 days for example. The number of days and the percentage can be set from the module settings.

It only displays the results on the screen and there is no export facility - yet!

It relies on having a custom checkbox field called Gift_Aid_my_donation and the programme looks for a value containing the word 'Yes' and if found is included in the output.

It's a bit crude and not very elegant but serves a purpose.

File Attachment:

File Name: mod-ts-giftaid.zip
File Size:2 KB


Best regards
Trevor
Attachments:
Last edit: 1 week 2 days ago by Trevor Smith.
The following user(s) said Thank You: Fra Tabs

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

  • Fra Tabs
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 week 2 days ago #120120 by Fra Tabs
Replied by Fra Tabs on topic UK Gif Aid
Sorry but what folder do these files go into?

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

More
1 week 2 days ago #120125 by Trevor Smith
Replied by Trevor Smith on topic UK Gif Aid
Just install it like you would for other components/module/plugin:
Extensions | Manage | Install

regards
Trevor

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

Moderators: Mr. DamDũng Nguyễn Việt