Merge pull request #2414 from kurund/profile-builder
[civicrm-core.git] / xml / templates / message_templates / contribution_online_receipt_text.tpl
CommitLineData
6a488035
TO
1{if $receipt_text}
2{$receipt_text}
3{/if}
4{if $is_pay_later}
5
6===========================================================
7{$pay_later_receipt}
8===========================================================
9{else}
10
11{ts}Please print this receipt for your records.{/ts}
12{/if}
13
14{if $amount}
15===========================================================
16{ts}Contribution Information{/ts}
17
18===========================================================
19{if $lineItem and $priceSetID and !$is_quick_config}
20{foreach from=$lineItem item=value key=priceset}
21---------------------------------------------------------
22{capture assign=ts_item}{ts}Item{/ts}{/capture}
23{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
24{capture assign=ts_each}{ts}Each{/ts}{/capture}
25{capture assign=ts_total}{ts}Total{/ts}{/capture}
26{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
27----------------------------------------------------------
28{foreach from=$value item=line}
29{capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {$line.line_total|crmMoney:$currency|string_format:"%10s"}
30{/foreach}
31{/foreach}
32
33{ts}Total Amount{/ts}: {$amount|crmMoney:$currency}
34{else}
35{ts}Amount{/ts}: {$amount|crmMoney:$currency} {if $amount_level } - {$amount_level} {/if}
36{/if}
37{/if}
38{if $receive_date}
39
40{ts}Date{/ts}: {$receive_date|crmDate}
41{/if}
42{if $is_monetary and $trxn_id}
43{ts}Transaction #{/ts}: {$trxn_id}
44{/if}
45
46{if $is_recur and ($contributeMode eq 'notify' or $contributeMode eq 'directIPN')}
47{ts}This is a recurring contribution. You can cancel future contributions at:{/ts}
48
49{$cancelSubscriptionUrl}
50
1a9f6d0d 51{if $updateSubscriptionBillingUrl}
6a488035
TO
52{ts}You can update billing details for this recurring contribution at:{/ts}
53
54{$updateSubscriptionBillingUrl}
55
1a9f6d0d 56{/if}
6a488035
TO
57{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}
58
59{$updateSubscriptionUrl}
60
61{/if}
62
63{if $honor_block_is_active }
64===========================================================
65{$honor_type}
66===========================================================
67{$honor_prefix} {$honor_first_name} {$honor_last_name}
68{if $honor_email}
69{ts}Honoree Email{/ts}: {$honor_email}
70{/if}
71
72{/if}
73{if $pcpBlock}
74===========================================================
75{ts}Personal Campaign Page{/ts}
76
77===========================================================
78{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
79
80{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
81
82{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
83
84{/if}
85{if $onBehalfProfile}
86===========================================================
87{ts}On Behalf Of{/ts}
88
89===========================================================
90{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
91{$onBehalfName}: {$onBehalfValue}
92{/foreach}
93{/if}
94
95{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
96{if $is_pay_later}
97===========================================================
98{ts}Registered Email{/ts}
99
100===========================================================
101{$email}
102{elseif $amount GT 0}
103===========================================================
104{ts}Billing Name and Address{/ts}
105
106===========================================================
107{$billingName}
108{$address}
109
110{$email}
111{/if} {* End ! is_pay_later condition. *}
112{/if}
113{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
114
115===========================================================
116{ts}Credit Card Information{/ts}
117
118===========================================================
119{$credit_card_type}
120{$credit_card_number}
121{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
122{/if}
123
124{if $selectPremium }
125===========================================================
126{ts}Premium Information{/ts}
127
128===========================================================
129{$product_name}
130{if $option}
131{ts}Option{/ts}: {$option}
132{/if}
133{if $sku}
134{ts}SKU{/ts}: {$sku}
135{/if}
136{if $start_date}
137{ts}Start Date{/ts}: {$start_date|crmDate}
138{/if}
139{if $end_date}
140{ts}End Date{/ts}: {$end_date|crmDate}
141{/if}
142{if $contact_email OR $contact_phone}
143
144{ts}For information about this premium, contact:{/ts}
145
146{if $contact_email}
147 {$contact_email}
148{/if}
149{if $contact_phone}
150 {$contact_phone}
151{/if}
152{/if}
153{if $is_deductible AND $price}
154
155{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
156{/if}
157
158{if $customPre}
159===========================================================
160{$customPre_grouptitle}
161
162===========================================================
163{foreach from=$customPre item=customValue key=customName}
164{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
165 {$customName}: {$customValue}
166{/if}
167{/foreach}
168{/if}
169
170
171{if $customPost}
172===========================================================
173{$customPost_grouptitle}
174
175===========================================================
176{foreach from=$customPost item=customValue key=customName}
177{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
178 {$customName}: {$customValue}
179{/if}
180{/foreach}
181{/if}