NAME
Dancer::Plugin::Interchange6::Cart
DESCRIPTION
Extends Interchange6::Cart to tie cart to Interchange6::Schema::Result::Cart.
ATTRIBUTES
database
The database name as defined in the Dancer::Plugin::DBIC configuration.
Attribute is required.
sessions_id
Extends inherited sessions_id attribute.
Attribute is required.
INHERITED METHODS
get_sessions_id
BUILDARGS
Sets default values for name, database and sessions_id if not given and loads other attribute values from DB cart. If DB cart does not exist then create new one.
BUILD
Load existing cart from the database along with any products it contains and add cart hooks.
METHODS
execute_hook
Ties Interchange6 hooks into Dancer's hook system.
load_saved_products
Pulls old cart items into current cart - used after user login.
AUTHOR
Stefan Hornburg (Racke), <racke@linuxia.de>
LICENSE AND COPYRIGHT
Copyright 2011-2014 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.