summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2009-02-24 23:31:49 +0100
committerRick Ellis <rick.ellis@ellislab.com>2009-02-24 23:31:49 +0100
commitf4ed69e80c553486a8f3d69e46911fcb25c73b9e (patch)
tree9816f30ac87a1d910a963542c8961a86949a1b3d /user_guide/libraries
parentdf39d51e3d4f18343666a2e4b991c656d0e61a13 (diff)
Updated the view cart info in light of the changes to the cart class.
Diffstat (limited to 'user_guide/libraries')
-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);
&lt;?php endif; ?>
&lt;/td>
- &lt;td style="text-align:right">&lt;?php echo $items['price']; ?>&lt;/td>
- &lt;td style="text-align:right">$&lt;?php echo $items['subtotal']; ?>&lt;/td>
+ &lt;td style="text-align:right">&lt;?php echo $this->cart->format_number($items['price']); ?>&lt;/td>
+ &lt;td style="text-align:right">$&lt;?php echo $this->cart->format_number($items['subtotal']); ?>&lt;/td>
&lt;/tr>
&lt;?php $i++; ?>
@@ -211,7 +211,7 @@ $this->cart->insert($data);
&lt;tr>
&lt;td colspan="2">&nbsp;&lt;/td>
&lt;td class="right">&lt;strong>Total&lt;/strong>&lt;/td>
- &lt;td class="right">$&lt;?php echo $this->cart->total(); ?>&lt;/td>
+ &lt;td class="right">$&lt;?php echo $this->cart->format_number($this->cart->total()); ?>&lt;/td>
&lt;/tr>
&lt;/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>