Corrected thankyou template, see RT#1286518
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / ThankYou.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26{if $action & 1024}
0913629c 27 {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
6a488035
TO
28{/if}
29
30{include file="CRM/common/TrackingFields.tpl"}
31
569df8ec 32<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-thankyou-form-block">
0913629c
EM
33 {if $thankyou_text}
34 <div id="thankyou_text" class="crm-section thankyou_text-section">
35 {$thankyou_text}
36 </div>
37 {/if}
6a488035 38
0913629c
EM
39 {* Show link to Tell a Friend (CRM-2153) *}
40 {if $friendText}
41 <div id="tell-a-friend" class="crm-section friend_link-section">
9e63fff0 42 <a href="{$friendURL}" title="{$friendText|escape:'html'}" class="button"><span>&raquo; {$friendText}</span></a>
0913629c
EM
43 </div>{if !$linkText}<br /><br />{/if}
44 {/if}
45 {* Add button for donor to create their own Personal Campaign page *}
46 {if $linkText}
47 <div class="crm-section create_pcp_link-section">
9e63fff0 48 <a href="{$linkTextUrl}" title="{$linkText|escape:'html'}" class="button"><span>&raquo; {$linkText}</span></a>
6a488035 49 </div><br /><br />
0913629c 50 {/if}
6a488035 51
f6eedce7 52 <div class="help">
0913629c
EM
53 {* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
54 {if $is_pay_later}
6a488035
TO
55 <div class="bold">{$pay_later_receipt}</div>
56 {if $is_email_receipt}
0913629c
EM
57 <div>
58 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
d5be719d 59 {ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and to %2.{/ts}
0913629c
EM
60 {else}
61 {ts 1=$email}An email confirmation with these payment instructions has been sent to %1.{/ts}
62 {/if}
63 </div>
64 {/if}
7a666802 65 {elseif $isPendingOutcome}
218a6dbd 66 <div>{ts 1=$paymentProcessor.name}Your contribution has been submitted for processing. Please print this page for your records.{/ts}</div>
0913629c
EM
67 {if $is_email_receipt}
68 <div>
6a488035 69 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
d5be719d 70 {ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed successfully.{/ts}
6a488035 71 {else}
0913629c 72 {ts 1=$email}An email receipt will be sent to %1 once the transaction is processed successfully.{/ts}
6a488035 73 {/if}
0913629c
EM
74 </div>
75 {/if}
76 {else}
2046da19 77 <div>{ts}Your transaction has been processed successfully.{/ts}</div>
0913629c
EM
78 {if $is_email_receipt}
79 <div>
80 {if $onBehalfEmail AND ($onBehalfEmail neq $email)}
81 {ts 1=$email 2=$onBehalfEmail}An email receipt has also been sent to %1 and to %2{/ts}
37e877b2 82 {elseif $email}
0913629c
EM
83 {ts 1=$email}An email receipt has also been sent to %1{/ts}
84 {/if}
85 </div>
86 {/if}
87 {/if}
88 </div>
89 <div class="spacer"></div>
6a488035 90
0913629c 91 {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="thankContribution"}
6a488035 92
f6de5cca 93 {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
6a488035 94 <div class="crm-group amount_display-group">
0913629c 95 {if !$useForMember}
6a488035 96 <div class="header-dark">
0913629c 97 {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if}
6a488035 98 </div>
0913629c
EM
99 {/if}
100 <div class="display-block">
101 {if !$useForMember}
102 {if $lineItem and $priceSetID}
103 {if !$amount}{assign var="amount" value=0}{/if}
6a488035
TO
104 {assign var="totalAmount" value=$amount}
105 {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
106 {elseif $membership_amount}
107 {$membership_name} {ts}Membership{/ts}: <strong>{$membership_amount|crmMoney}</strong><br />
108 {if $amount}
109 {if !$is_separate_payment}
110 {ts}Contribution Amount{/ts}: <strong>{$amount|crmMoney}</strong><br />
111 {else}
112 {ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
113 {/if}
114 {/if}
115 <strong> -------------------------------------------</strong><br />
116 {ts}Total{/ts}: <strong>{$amount+$membership_amount|crmMoney}</strong><br />
117 {else}
a32709be
PB
118 {if $totalTaxAmount}
119 {ts}Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney}</strong><br />
120 {/if}
4c030d33 121 {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: <strong>{$amount|crmMoney}{if $amount_level } &ndash; {$amount_level}{/if}</strong>
6a488035 122 {/if}
0913629c
EM
123 {/if}
124 {if $receive_date}
125 {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br />
126 {/if}
127 {if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id}
128 {ts}Transaction #{/ts}: {$trxn_id}<br />
129 {/if}
130 {if $membership_trx_id}
131 {ts}Membership Transaction #{/ts}: {$membership_trx_id}
132 {/if}
6a488035 133
0913629c
EM
134 {* Recurring contribution / pledge information *}
135 {if $is_recur}
9cc96227 136 {if !empty($auto_renew)} {* Auto-renew membership confirmation *}
0913629c
EM
137 {crmRegion name="contribution-thankyou-recur-membership"}
138 <br />
139 {if $frequency_interval > 1}
140 <strong>{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}</strong>
141 {else}
142 <strong>{ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts}</strong>
143 {/if}
144 <div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})</div>
145 {/crmRegion}
146 {else}
147 {crmRegion name="contribution-thankyou-recur"}
148 {if $installments > 1}
b9bbb9d7 149 {if $frequency_interval > 1}
0913629c 150 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}This recurring contribution will be automatically processed every %1 %2s for a total %3 installments (including this initial contribution).{/ts}</strong></p>
b9bbb9d7 151 {else}
0913629c
EM
152 <p><strong>{ts 1=$frequency_unit 2=$installments}This recurring contribution will be automatically processed every %1 for a total %2 installments (including this initial contribution).{/ts}</strong></p>
153 {/if}
6a488035 154 {else}
0913629c
EM
155 {if $frequency_interval > 1}
156 <p><strong>{ts 1=$frequency_interval 2=$frequency_unit}This recurring contribution will be automatically processed every %1 %2s.{/ts}</strong></p>
0ecd7a95 157 {else}
0913629c 158 <p><strong>{ts 1=$frequency_unit}This recurring contribution will be automatically processed every %1.{/ts}</strong></p>
0ecd7a95 159 {/if}
6a488035 160 {/if}
0913629c
EM
161 <p>
162 {if $is_email_receipt}
163 {ts}You will receive an email receipt which includes information about how to update or cancel this recurring contribution.{/ts}
164 {/if}
6a488035 165 </p>
0913629c
EM
166 {/crmRegion}
167 {/if}
168 {/if}
169
170 {if $is_pledge}
171 {if $pledge_frequency_interval GT 1}
172 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
173 {else}
174 <p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}</strong></p>
175 {/if}
176 <p>
177 {if $is_pay_later}
178 {ts 1=$receiptFromEmail}We will record your initial pledge payment when we receive it from you. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}
179 {else}
180 {ts 1=$receiptFromEmail}Your initial pledge payment has been processed. You will be able to modify or cancel future pledge payments at any time by contacting us at %1.{/ts}
6a488035 181 {/if}
0913629c
EM
182 {if $max_reminders}
183 {ts 1=$initial_reminder_day}We will send you a payment reminder %1 days prior to each scheduled payment date. The reminder will include a link to a page where you can make your payment online.{/ts}
184 {/if}
185 </p>
186 {/if}
187 </div>
6a488035 188 </div>
0913629c 189 {/if}
6a488035 190
ad501080 191 {if $onbehalfProfile && $onbehalfProfile|@count}
c043358f 192 <div class="crm-group onBehalf_display-group label-left crm-profile-view">
193 {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
4779abb3 194 </div>
c043358f 195 {/if}
196
ad501080 197 {if $honoreeProfileFields && $honoreeProfileFields|@count}
0913629c
EM
198 <div class="crm-group honor_block-group">
199 <div class="header-dark">
200 {$soft_credit_type}
201 </div>
202 <div class="display-block">
203 <div class="label-left crm-section honoree_profile-section">
204 <strong>{$honorName}</strong></br>
205 {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
206 </div>
207 </div>
208 </div>
209 {/if}
6a488035 210
0913629c
EM
211 {if $customPre}
212 <fieldset class="label-left crm-profile-view">
213 {include file="CRM/UF/Form/Block.tpl" fields=$customPre}
214 </fieldset>
215 {/if}
6a488035 216
0913629c 217 {if $pcpBlock}
6a488035 218 <div class="crm-group pcp_display-group">
0913629c
EM
219 <div class="header-dark">
220 {ts}Contribution Honor Roll{/ts}
221 </div>
222 <div class="display-block">
223 {if $pcp_display_in_roll}
224 {ts}List my contribution{/ts}
225 {if $pcp_is_anonymous}
226 <strong>{ts}anonymously{/ts}.</strong>
227 {else}
228 {ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
229 {if $pcp_personal_note}
230 {ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
6a488035 231 {else}
0913629c 232 <strong>{ts}With no personal note{/ts}</strong>
6a488035 233 {/if}
0913629c
EM
234 {/if}
235 {else}
236 {ts}Don't list my contribution in the honor roll.{/ts}
237 {/if}
238 <br />
239 </div>
240 </div>
241 {/if}
242
0913629c
EM
243 {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
244 {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
245 {if $billingName or $address}
246 <div class="crm-group billing_name_address-group">
247 <div class="header-dark">
248 {ts}Billing Name and Address{/ts}
249 </div>
250 <div class="crm-section no-label billing_name-section">
251 <div class="content">{$billingName}</div>
6a488035 252 <div class="clear"></div>
0913629c
EM
253 </div>
254 <div class="crm-section no-label billing_address-section">
255 <div class="content">{$address|nl2br}</div>
256 <div class="clear"></div>
257 </div>
258 </div>
259 {/if}
6a488035 260 {/if}
0913629c
EM
261 {if $email}
262 <div class="crm-group contributor_email-group">
263 <div class="header-dark">
264 {ts}Your Email{/ts}
265 </div>
266 <div class="crm-section no-label contributor_email-section">
267 <div class="content">{$email}</div>
268 <div class="clear"></div>
269 </div>
270 </div>
6a488035 271 {/if}
0913629c 272 {/if}
6a488035 273
0913629c
EM
274 {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
275 {crmRegion name="contribution-thankyou-billing-block"}
276 <div class="crm-group credit_card-group">
9f7f8a50 277 {if $paymentFieldsetLabel}
278 <div class="header-dark">
279 {$paymentFieldsetLabel}
280 </div>
281 {/if}
282 {if $paymentProcessor.payment_type == 2}
0913629c
EM
283 <div class="display-block">
284 {ts}Account Holder{/ts}: {$account_holder}<br />
285 {ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
286 {ts}Bank Name{/ts}: {$bank_name}<br />
287 {ts}Bank Account Number{/ts}: {$bank_account_number}<br />
288 </div>
289 {else}
290 <div class="crm-section no-label credit_card_details-section">
291 <div class="content">{$credit_card_type}</div>
292 <div class="content">{$credit_card_number}</div>
9f7f8a50 293 <div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
0913629c
EM
294 <div class="clear"></div>
295 </div>
296 {/if}
297 </div>
298 {/crmRegion}
299 {/if}
6a488035 300
0913629c 301 {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="thankContribution"}
6a488035 302
0913629c
EM
303 {if $customPost}
304 <fieldset class="label-left crm-profile-view">
305 {include file="CRM/UF/Form/Block.tpl" fields=$customPost}
306 </fieldset>
307 {/if}
6a488035 308
0913629c
EM
309 <div id="thankyou_footer" class="contribution_thankyou_footer-section">
310 <p>
311 {$thankyou_footer}
312 </p>
313 </div>
314 {if $isShare}
7e8bc026 315 {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture}
6a488035 316 {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl}
0913629c 317 {/if}
6a488035 318</div>