################### Shopping Cart Class ################### The Cart Class permits items to be added to a session that stays active while a user is browsing your site. These items can be retrieved and displayed in a standard "shopping cart" format, allowing the user to update the quantity or remove items from the cart. Please note that the Cart Class ONLY provides the core "cart" functionality. It does not provide shipping, credit card authorization, or other processing components. .. contents:: :local: .. raw:: html
******************** Using the Cart Class ******************** Initializing the Shopping Cart Class ==================================== .. important:: The Cart class utilizes CodeIgniter's :doc:`Session ClassQTY | Item Description | Item Price | Sub-Total |
---|---|---|---|
$i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?> |
cart->has_options($items['rowid']) == TRUE): ?>
cart->product_options($items['rowid']) as $option_name => $option_value): ?>
: |
cart->format_number($items['price']); ?> | $cart->format_number($items['subtotal']); ?> |
Total | $cart->format_number($this->cart->total()); ?> |