Business::Cart::Generic::View::Order - Basic shopping cart
See Business::Cart::Generic.
Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl.
This class extends Business::Cart::Generic::View::Base.
new() is called as my($obj) = Business::Cart::Generic::View::Order -> new(k1 => v1, k2 => v2, ...).
new()
my($obj) = Business::Cart::Generic::View::Order -> new(k1 => v1, k2 => v2, ...)
It returns a new object of type Business::Cart::Generic::View::Order. See Business::Cart::Generic::View.
Business::Cart::Generic::View::Order
Key-value pairs accepted in the parameter list:
Takes an object of type Business::Cart::Generic::Util::Config.
This key => value pair is mandatory.
Takes an object of type Business::Cart::Generic::Database.
Takes a Text::Xslate object.
These keys are also getter-type methods.
Returns a block of HTML for the order form.
Returns a block of Javascript for insertion into the web page's head, and for use by the order form.
Returns a JSON and utf8 encoded block of text suitable for sending to the client when an order is cancelled.
Returns a JSON and utf8 encoded block of HTML for a select statement, of zones for the given country, suitable for sending to the client.
Returns a JSON and utf8 encoded block of text suitable for sending to the client when a user clicks [Checkout].
Returns a hashref.
Returns an object of type Business::Cart::Generic::Database.
Returns a JSON and utf8 encoded block of HTML for the shopping cart, suitable for sending to the client.
See online.order.page.js and the prepare_order_form() function in that file.
$order is a hashref as returned by "inflate_order()" in Business::Cart::Generic::Database::Order.
Returns a set of HTML table rows. This data is passed to "display()" in Business::Cart::Generic::Search.
Returns an object of type Text::Xslate.
The file CHANGES was converted into Changelog.ini by Module::Metadata::Changes.
Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
Many thanks are due to the people who chose to make osCommerce and PrestaShop, Zen Cart, etc, Open Source.
Email the author, or log a bug on RT:
https://rt.cpan.org/Public/Dist/Display.html?Name=Business::Cart::Generic.
Business::Cart::Generic was written by Ron Savage <ron@savage.net.au> in 2011.
Home page: http://savage.net.au/index.html.
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
To install Business::Cart::Generic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Cart::Generic
CPAN shell
perl -MCPAN -e shell install Business::Cart::Generic
For more information on module installation, please visit the detailed CPAN module installation guide.