NAME
Template::Plugin::Handel::Cart - Template Toolkit plugin for shopping cart
SYNOPSIS
[% USE cart = Handel.Cart %]
[% IF cart.fetch(id='11111111-1111-1111-1111-111111111111') %]
[% FOREACH item = cart.items %]
[% item.sku %]
[% END %]
[% END %]
DESCRIPTION
Template::Plugin::Handel::Cart is a TT2 (Template Toolkit 2) plugin for Handel::Cart. It's API is exactly the same as Handel::Cart with a few minor exceptions.
Since new and load are used by TT2 to load plugins, Handel::Carts new and load can be accesed using create and fetch.
CONSTRUCTOR
createfetch
METHODS
Adding Cart Items
add
Fetching Cart Items
items
Removing Cart Items
cleardelete
Saving Cart Items
save
Restoring A Previously Saved Cart
restore
Misc. Methods
countdescriptionnamesubtotaltypeuuidguid
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
cpan@chrislaco.com
http://today.icantfocus.com/blog/