Answers.Body: <p>Do you mean the code that uses the template?  If so, look at CRM/Contribute/BAO/ContributionPage.php and look for 'contribution_online_receipt' which is the template name for 'Contributions - Receipt (on-line)'.</p>
  <p>Unless you want to pass different data to the template, you should just need to edit the template at <code>Administer &gt; Communications &gt; Message Templates &gt; System Workflow Messages</code></p>
  <p>If you change the templates you might find this extension useful when you need to reconcile future core changes with your changes: <a href="https://lab.civicrm.org/extensions/msgtplhelper" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/msgtplhelper</a></p>
  <p>And if you're making your templates look better, try this: <a href="https://lab.civicrm.org/extensions/prettyworkflowmessages" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/prettyworkflowmessages</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-14T13:26:06.233Z
Answers.LastActivityDate: 2021-04-14T13:26:06.233Z
Answers.UserDisplayName: Aidan
Body: <p>I want to customise on line receipts, but am struggling to make a start. I can see the on line receipt in the Message Templates - 'Contributions - Receipt (on-line)' but can't find where the other files associated with this template are located. The documentation doesn't seem to explain this at all. <br> I want to make the receipt look very different from the default.  Also if any one has some customised receipt templates they can share, that would be great too.  Thanks!</p>
  
Tags: <civicontribute><receipts>
Title: Where are the 'Contributions - Receipt (on-line) templates stored?
ThreadText: # Where are the 'Contributions - Receipt (on-line) templates stored?
  
  (Asked by: username_0 on 2021-04-14)
  
  I want to customise on line receipts, but am struggling to make a start. I can see the on line receipt in the Message Templates - 'Contributions - Receipt (on-line)' but can't find where the other files associated with this template are located. The documentation doesn't seem to explain this at all.   
   I want to make the receipt look very different from the default. Also if any one has some customised receipt templates they can share, that would be great too. Thanks!
  
  **Tags:** civicontribute, receipts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-04-14. Score: 2 | Accepted answer
  
  Do you mean the code that uses the template? If so, look at CRM/Contribute/BAO/ContributionPage.php and look for 'contribution\_online\_receipt' which is the template name for 'Contributions - Receipt (on-line)'.
  
  Unless you want to pass different data to the template, you should just need to edit the template at `Administer > Communications > Message Templates > System Workflow Messages`
  
  If you change the templates you might find this extension useful when you need to reconcile future core changes with your changes: <https://lab.civicrm.org/extensions/msgtplhelper>
  
  And if you're making your templates look better, try this: <https://lab.civicrm.org/extensions/prettyworkflowmessages>
  
  
  ---
  
  