From: Alice Frumin Date: Wed, 6 Sep 2023 15:40:50 +0000 (-0400) Subject: dev/core#4555 When using a Contribution Page with a Membership Price Set, the contrib... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aad30e8564a8e5ad0f7190bffd06eecb42a97d0f;p=civicrm-core.git dev/core#4555 When using a Contribution Page with a Membership Price Set, the contribution amount information never shows on the thank you page --- diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index d6a296764b..0027c64cdf 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -74,35 +74,33 @@ {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
- {if !$useForMember} -
- {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if} -
- {/if} +
+ {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if} +
+
- {if !$useForMember} - {if $lineItem and $priceSetID} - {if !$amount}{assign var="amount" value=0}{/if} - {assign var="totalAmount" value=$amount} - {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} - {elseif $membership_amount} - {$membership_name} {ts}Membership{/ts}: {$membership_amount|crmMoney}
- {if $amount} - {if !$is_separate_payment} - {ts}Contribution Amount{/ts}: {$amount|crmMoney}
- {else} - {ts}Additional Contribution{/ts}: {$amount|crmMoney}
- {/if} - {/if} - -------------------------------------------
- {ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
- {else} - {if $totalTaxAmount} - {ts}Tax Amount{/ts}: {$totalTaxAmount|crmMoney}
+ {if $lineItem and $priceSetID} + {if !$amount}{assign var="amount" value=0}{/if} + {assign var="totalAmount" value=$amount} + {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} + {elseif $membership_amount} + {$membership_name} {ts}Membership{/ts}: {$membership_amount|crmMoney}
+ {if $amount} + {if !$is_separate_payment} + {ts}Contribution Amount{/ts}: {$amount|crmMoney}
+ {else} + {ts}Additional Contribution{/ts}: {$amount|crmMoney}
{/if} - {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: {$amount|crmMoney:$currency}{if $amount_level } – {$amount_level}{/if} {/if} + -------------------------------------------
+ {ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
+ {else} + {if $totalTaxAmount} + {ts}Tax Amount{/ts}: {$totalTaxAmount|crmMoney}
+ {/if} + {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: {$amount|crmMoney:$currency}{if $amount_level } – {$amount_level}{/if} {/if} + {if $receive_date} {ts}Date{/ts}: {$receive_date|crmDate}
{/if}