Answers.Body: <p>You're looking for the Confirm and ThankYou templates - they live here - for Contribution pages (and tree structure is very similar for Event):</p>
  
  <p><a href="https://i.sstatic.net/C1UbA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/C1UbA.png" alt="enter image description here"></a></p>
  
  <p>Two options to override them:</p>
  
  <ol>
  <li><p>add a custom_templates directory in the System Settings -> Directories - mimic this entire three.</p></li>
  <li><p>or yes put it into your extension! I like that option better as I tend to forget about custom_php and custom_tpl when I upgrade sites. Same thing - in your extension -> copy the entire tree starting with templates - of course rename everything. Perhaps you already used civix to create your extension? Then you should already have a templates/ directory ready to be used!</p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-11T04:09:00.640Z
Answers.Text: Karin, Turns out the table comes from templates/CRM/Price/Page/LineItem.tpl  - is very easy to remove the columns I do not want.  But I want them in some cases and not others. For example if it is an event AND they have ordered multiple tickets.  Is there a way to find what variables are available in Smarty? Thanks!
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-11T04:22:23.347Z
Answers.Text: add `&smartyDebug=1` to the url of your page; for a nested template (as in your case), add the tag `{debug}` in the template itself. You need permission "view debug output" to be able to see debug info.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-06T17:45:23.543Z
Answers.Text: Excellent - enjoy!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-06T16:46:15.840Z
Answers.LastActivityDate: 2016-07-06T16:55:10.173Z
Answers.LastEditDate: 2016-07-06T16:55:10.173Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I am trying to modify the confirmation and final page (not sure of the name) for  contributions and events. I want to modify the templates like described in this post - <a href="https://civicrm.stackexchange.com/questions/9075/why-does-the-contribution-page-amounts-appear-as-a-quanity">Why does the Contribution page amounts appear as a quanity?</a>.  </p>
  
  <p>A few questions:</p>
  
  <ol>
  <li>How do I find what template to modify?</li>
  <li>How do I know where to put the custom template?</li>
  <li>Is it best to just modify the template or to put this in an extension? I already have an extension with some simple JS.  </li>
  </ol>
  
  <p>I appreciate the help.  </p>
  
  <p>Thanks! </p>
  
Tags: <civievent><civicontribute><extension><templates><custom-templates>
Title: Modifying Contribution and Event Templates
ThreadText: # Modifying Contribution and Event Templates
  
  (Asked by: username_0 on 2016-07-06)
  
  I am trying to modify the confirmation and final page (not sure of the name) for contributions and events. I want to modify the templates like described in this post - [Why does the Contribution page amounts appear as a quanity?](https://civicrm.stackexchange.com/questions/9075/why-does-the-contribution-page-amounts-appear-as-a-quanity).
  
  A few questions:
  
  1. How do I find what template to modify?
  2. How do I know where to put the custom template?
  3. Is it best to just modify the template or to put this in an extension? I already have an extension with some simple JS.
  
  I appreciate the help.
  
  Thanks!
  
  **Tags:** civievent, civicontribute, extension, templates, custom-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-06. Score: 1
  
  You're looking for the Confirm and ThankYou templates - they live here - for Contribution pages (and tree structure is very similar for Event):
  
  [![enter image description here](https://i.sstatic.net/C1UbA.png)](https://i.sstatic.net/C1UbA.png)
  
  Two options to override them:
  
  1. add a custom\_templates directory in the System Settings -> Directories - mimic this entire three.
  2. or yes put it into your extension! I like that option better as I tend to forget about custom\_php and custom\_tpl when I upgrade sites. Same thing - in your extension -> copy the entire tree starting with templates - of course rename everything. Perhaps you already used civix to create your extension? Then you should already have a templates/ directory ready to be used!
  
  > **Comments:**
  > **username_1**: Excellent - enjoy!  
  > **username_0**: Karin, Turns out the table comes from templates/CRM/Price/Page/LineItem.tpl  - is very easy to remove the columns I do not want.  But I want them in some cases and not others. For example if it is an event AND they have ordered multiple tickets.  Is there a way to find what variables are available in Smarty? Thanks!  
  > **username_1**: add `&smartyDebug=1` to the url of your page; for a nested template (as in your case), add the tag `{debug}` in the template itself. You need permission "view debug output" to be able to see debug info.  
  
  ---
  
  