For anyone running ZC 1.5.6a getting either a blank page or a $ on admin/orders.php I was able to make it work.
Locate
PHP Code:
<tr>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
<?php echo $order->totals[$i]['title']; ?>
</td>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
<?php echo $currencies->format($order->totals[$i]['value'], true, $order->info['currency'], $order->info['currency_value']); ?>
</td>
</tr>
Replace for
PHP Code:
<!-- bof Reward Points -->
<?php
if ($order_total['class'] = "ot_reward_points_display") { ?>
<tr>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
<?php echo $order->totals[$i]['title']; ?>
</td>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
<?php echo $order->totals[$i]['text']; ?>
</td>
</tr>
<?php } else { ?>
<!-- eof Reward Points -->
<tr>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
<?php echo $order->totals[$i]['title']; ?>
</td>
<td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
<?php echo $currencies->format($order->totals[$i]['value'], true, $order->info['currency'], $order->info['currency_value']); ?>
</td>
</tr>
<?php
//<!-- bof Reward Points -->
}
//<!-- eof Reward Points -->
Still haven't figure out why the Reward Points aren't awarded when opening an account.
Bookmarks