{* This file is included into amember/thanks.html and cc/cc_info.html for displaying of payment receipt information *} {php}//{* do not edit lines from these to ending /php! } $p = $this->_tpl_vars['payment']; global $db; $subtotal = 0; if (!$p['data']['0']['BASKET_PRICES']) $p['data']['0']['BASKET_PRICES'] = array($p['product_id'] => $p['amount']); foreach ($p['data']['0']['BASKET_PRICES'] as $pid => $price){ $pr = $db->get_product($pid); $pr['subtotal'] = $pr['trial1_price'] ? $pr['trial1_price'] : $pr['price']; $subtotal += $pr['subtotal']; $receipt_products[$pid] = $pr; } $this->assign('receipt_products', $receipt_products); $this->assign('subtotal', $subtotal); $this->assign('total', array_sum($p['data']['0']['BASKET_PRICES'])); {/php}{* End of PHP code, don't touch above *} {foreach from=$receipt_products item=p} {/foreach} {if $payment.data.COUPON_DISCOUNT ne "" } {/if} {if $payment.tax_amount ne ""} {/if}
#_TPL_THX_PRDTITLE# #_TPL_THX_PRICE#
{$p.title} {$config.currency|default:"$"}{$p.subtotal|string_format:"%.2f"}
#_TPL_THX_SUBTOTAL# {$config.currency|default:"$"}{$subtotal|string_format:"%.2f"}
#_TPL_THX_DISCOUNT# {$config.currency|default:"$"}{$payment.data.COUPON_DISCOUNT|string_format:"%.2f"}
#_TPL_THX_TAX# {$config.currency|default:"$"}{$payment.tax_amount|string_format:"%.2f"}
#_TPL_THX_TOTAL# {$config.currency|default:"$"}{$total|string_format:"%.2f"}