summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/libraries/cart.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/user_guide/libraries/cart.html b/user_guide/libraries/cart.html
index d63be495f..bd3caef9f 100644
--- a/user_guide/libraries/cart.html
+++ b/user_guide/libraries/cart.html
@@ -200,8 +200,8 @@ $this->cart->insert($data);
<?php endif; ?>
</td>
- <td style="text-align:right"><?php echo $items['price']; ?></td>
- <td style="text-align:right">$<?php echo $items['subtotal']; ?></td>
+ <td style="text-align:right"><?php echo $this->cart->format_number($items['price']); ?></td>
+ <td style="text-align:right">$<?php echo $this->cart->format_number($items['subtotal']); ?></td>
</tr>
<?php $i++; ?>
@@ -211,7 +211,7 @@ $this->cart->insert($data);
<tr>
<td colspan="2"> </td>
<td class="right"><strong>Total</strong></td>
- <td class="right">$<?php echo $this->cart->total(); ?></td>
+ <td class="right">$<?php echo $this->cart->format_number($this->cart->total()); ?></td>
</tr>
</table>
@@ -222,7 +222,6 @@ $this->cart->insert($data);
-
<h2>Updating The Cart</h2>
<p>To update the information in your cart, you must pass an array containing the <kbd>Row ID</kbd> and quantity to the <dfn>$this->cart->update()</dfn> function:</p>