diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2009-02-24 23:31:49 +0100 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2009-02-24 23:31:49 +0100 |
commit | f4ed69e80c553486a8f3d69e46911fcb25c73b9e (patch) | |
tree | 9816f30ac87a1d910a963542c8961a86949a1b3d /user_guide/libraries/cart.html | |
parent | df39d51e3d4f18343666a2e4b991c656d0e61a13 (diff) |
Updated the view cart info in light of the changes to the cart class.
Diffstat (limited to 'user_guide/libraries/cart.html')
-rw-r--r-- | user_guide/libraries/cart.html | 7 |
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>
|