Business::Cart::Generic::Controller::Order - Basic shopping cart
See Business::Cart::Generic.
Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl.
This is a sub-class of Business::Cart::Generic::Controller.
This class is never used stand-alone. However, one of its run modes is run automatically when the user clicks one of the submit buttons on the Order form. See generic.cart.cgi or generic.cart.psgi and also online.order.page.js for statements like var request = Y.io("/Order/checkout", cfg).
All buttons mentioned here are on the Order form.
Responds to an AJAX request when the user clicks on the [Add to cart] button.
Returns a message which is sent to the client.
Helpers for add_to_cart(). Never called directly.
Responds to an AJAX request when the user clicks on the [Cancel order] button.
Helper for cancel_order(). Never called directly.
Called automatically, as is the parent's cgiapp_init(), to specify the names of run modes.
Responds when the user changes the currently selected country on the country menu. That menu has an onchange event handler. See online.order.page.js for that handler. The handler is attached to the menu in Business::Cart::Generic::View::Order.
Responds to an AJAX request when the user clicks on the [Checkout] button.
Helper for checkout(). Never called directly.
Responds to an AJAX request when the user clicks on the [Remove from cart] button.
Helper for remove_from_cart(). Never called directly.
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.