Re: Show $$ value for BCSE's Reward Points Mod
Try this - it includes an if else statement that doesnt seem to break anything
{capture name=menu}
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td colspan="2"><a href="/reward-points.html" title="Coffee Shrine's Customer Reward Points Programme"><b> Earn Points</b></a></td></tr>
<tr><td colspan="2"><hr class="VertMenuHr" size="1"/></td></tr>
<tr><td colspan="2"><a href="/crp_referral.php" title="Refer a Friend and receive Bonus Points"><b> Refer a Friend</b></a></td></tr>
{if $login eq "" }
<tr><td colspan="2"><hr class="VertMenuHr" size="1"/></td></tr>
<tr><td colspan="2>">(User must be logged in)</td></tr>
{else}
{* Points Added*}
<tr><td colspan="2"><hr class="VertMenuHr" size="1"/></td></tr>
<tr>
<td>Points Balance:</td>
<td><b>{$points.total}</b></td>
</tr>
<tr>
<td>Points Value:</td>
<td>{if $points.total ne ""}{math x=$points.total y=$wcmPaymentRate equation="x / y" format="%.2f" assign="wcmPointsDollars"}
{include file="currency.tpl" value=$wcmPointsDollars}{else}0{/if}</td>
</tr>
{/if}
{* End Points added*}</table>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_reward_points menu_content=$smarty.capture.menu }
regards
__________________
X-Cart Gold 4.1.10, 4.1.18, 4.4.4, 4.4.5
|