NAME
Business::Cart::Generic::View::Search - Basic shopping cart
Synopsis
Description
Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl.
Installation
Constructor and Initialization
Parentage
This class extends Business::Cart::Generic::View::Base.
Using new()
new()
is called as my($obj) = Business::Cart::Generic::View::Search -> new(k1 => v1, k2 => v2, ...)
.
It returns a new object of type Business::Cart::Generic::View::Search
. See Business::Cart::Generic::View.
Key-value pairs accepted in the parameter list:
- o config => $config
-
Takes an object of type Business::Cart::Generic::Util::Config.
This key => value pair is mandatory.
- o db => $db
-
Takes an object of type Business::Cart::Generic::Database.
This key => value pair is mandatory.
- o templater => $templater
-
Takes a Text::Xslate object.
This key => value pair is mandatory.
These keys are also getter-type methods.
Methods
build_search_html()
Returns a block of HTML for the search form.
build_head_js()
Returns a block of Javascript for insertion into the web page's head, and for use by the search form.
config()
Returns a hashref.
db()
Returns an object of type Business::Cart::Generic::Database.
display($id, $order)
$id is the primary key of the order being searched for.
$order is a hashref of an order inflated by "inflate_order($order)" in Business::Cart::Generic::Database::Order.
Returns a HTML table suitable for sending to the client.
templater()
Returns an object of type Text::Xslate.
Machine-Readable Change Log
The file CHANGES was converted into Changelog.ini by Module::Metadata::Changes.
Version Numbers
Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
Thanks
Many thanks are due to the people who chose to make osCommerce and PrestaShop, Zen Cart, etc, Open Source.
Support
Email the author, or log a bug on RT:
https://rt.cpan.org/Public/Dist/Display.html?Name=Business::Cart::Generic.
Author
Business::Cart::Generic was written by Ron Savage <ron@savage.net.au> in 2011.
Home page: http://savage.net.au/index.html.
Copyright
Australian copyright (c) 2011, Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html