Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-03-14-00-44-17
[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
1421174e 63{if $honor_block_is_active}
6a488035 64===========================================================
1421174e 65{$soft_credit_type}
6a488035 66===========================================================
1421174e 67{foreach from=$honoreeProfile item=value key=label}
68{$label}: {$value}
69{/foreach}
6a488035
TO
70
71{/if}
72{if $pcpBlock}
73===========================================================
74{ts}Personal Campaign Page{/ts}
75
76===========================================================
77{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
78
79{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
80
81{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
82
83{/if}
84{if $onBehalfProfile}
85===========================================================
86{ts}On Behalf Of{/ts}
87
88===========================================================
89{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
90{$onBehalfName}: {$onBehalfValue}
91{/foreach}
92{/if}
93
94{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
95{if $is_pay_later}
96===========================================================
97{ts}Registered Email{/ts}
98
99===========================================================
100{$email}
101{elseif $amount GT 0}
102===========================================================
103{ts}Billing Name and Address{/ts}
104
105===========================================================
106{$billingName}
107{$address}
108
109{$email}
110{/if} {* End ! is_pay_later condition. *}
111{/if}
112{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
113
114===========================================================
115{ts}Credit Card Information{/ts}
116
117===========================================================
118{$credit_card_type}
119{$credit_card_number}
120{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
121{/if}
122
123{if $selectPremium }
124===========================================================
125{ts}Premium Information{/ts}
126
127===========================================================
128{$product_name}
129{if $option}
130{ts}Option{/ts}: {$option}
131{/if}
132{if $sku}
133{ts}SKU{/ts}: {$sku}
134{/if}
135{if $start_date}
136{ts}Start Date{/ts}: {$start_date|crmDate}
137{/if}
138{if $end_date}
139{ts}End Date{/ts}: {$end_date|crmDate}
140{/if}
141{if $contact_email OR $contact_phone}
142
143{ts}For information about this premium, contact:{/ts}
144
145{if $contact_email}
146 {$contact_email}
147{/if}
148{if $contact_phone}
149 {$contact_phone}
150{/if}
151{/if}
152{if $is_deductible AND $price}
153
154{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}
155{/if}
156
157{if $customPre}
158===========================================================
159{$customPre_grouptitle}
160
161===========================================================
162{foreach from=$customPre item=customValue key=customName}
163{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
164 {$customName}: {$customValue}
165{/if}
166{/foreach}
167{/if}
168
169
170{if $customPost}
171===========================================================
172{$customPost_grouptitle}
173
174===========================================================
175{foreach from=$customPost item=customValue key=customName}
176{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
177 {$customName}: {$customValue}
178{/if}
179{/foreach}
180{/if}