Answers.Body: <p>This is actually easy, but totally hidden...</p>
  
  <ol>
  <li><p>At the very end of the code for your widget, find the last <code>&lt;script&gt;</code> tag, which looks something like this: </p>
  
  <pre><code>&lt;script type="text/javascript" src=""&gt;&lt;/script&gt;
  </code></pre>
  
  <p>where <code></code> is a very long URL.</p></li>
  <li><p>Modify this URL by adding <code>&amp;includePending=1</code> to the end.</p></li>
  <li><p>Paste your modified widget code over the old widget code wherever you are using the widget.</p></li>
  <li><p>Observe that pending contributions now affect the thermometer total, even contributions which have already been made.</p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-13T05:47:26.280Z
Answers.LastActivityDate: 2017-09-13T05:47:26.280Z
Answers.UserDisplayName: Sean
Answers.Body: <p>This is probably included in a later upgrade that I haven't done yet, but I had to add the following to <code>/sites/all/modules/civicrm/extern/widget.php</code> to get this @sean-colsen's answer to work:</p>
  
  <pre><code>$includePending = isset( $_GET['includePending'] ) ? true : false;
  $data = CRM_Contribute_BAO_Widget::getContributionPageData($cpageId, $widgetId, $includePending);
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-01T22:36:39.547Z
Answers.LastActivityDate: 2019-05-01T22:36:39.547Z
Answers.UserDisplayName: squarecandy
Body: <p>I have a contribution page which is collecting live donations and pay-later contributions. </p>
  
  <p>I'm using the contribution page widget to display a thermometer with the total raised by this contribution page. </p>
  
  <p>The thermometer includes donations, but not pay-later contributions. </p>
  
  <p>What can I do to include pay-later contributions in the thermometer, too?</p>
  
Tags: <contribution-page><paylater>
Title: How can I include pay-later contributions in a widget thermometer?
ThreadText: # How can I include pay-later contributions in a widget thermometer?
  
  (Asked by: username_0 on 2017-09-13)
  
  I have a contribution page which is collecting live donations and pay-later contributions.
  
  I'm using the contribution page widget to display a thermometer with the total raised by this contribution page.
  
  The thermometer includes donations, but not pay-later contributions.
  
  What can I do to include pay-later contributions in the thermometer, too?
  
  **Tags:** contribution-page, paylater
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-09-13. Score: 3
  
  This is actually easy, but totally hidden...
  
  1. At the very end of the code for your widget, find the last `<script>` tag, which looks something like this:
  
     ```
     <script type="text/javascript" src=""></script>
  
     ```
  
     where  is a very long URL.
  2. Modify this URL by adding `&includePending=1` to the end.
  3. Paste your modified widget code over the old widget code wherever you are using the widget.
  4. Observe that pending contributions now affect the thermometer total, even contributions which have already been made.
  
  
  ---
  
  ### Answer by username_1 on 2019-05-01. Score: 1
  
  This is probably included in a later upgrade that I haven't done yet, but I had to add the following to `/sites/all/modules/civicrm/extern/widget.php` to get this @username_0-colsen's answer to work:
  
  ```
  $includePending = isset( $_GET['includePending'] ) ? true : false;
  $data = CRM_Contribute_BAO_Widget::getContributionPageData($cpageId, $widgetId, $includePending);
  
  ```
  
  
  ---
  
  