From f4ed69e80c553486a8f3d69e46911fcb25c73b9e Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Tue, 24 Feb 2009 22:31:49 +0000 Subject: Updated the view cart info in light of the changes to the cart class. --- user_guide/libraries/cart.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'user_guide/libraries') 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); -

Updating The Cart

To update the information in your cart, you must pass an array containing the Row ID and quantity to the $this->cart->update() function:

-- cgit v1.2.3-24-g4f1b