Ron Savage > Business-Cart-Generic-0.85 > Business::Cart::Generic::Database::Export

Download:
Business-Cart-Generic-0.85.tgz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.85   Source  

NAME ^

Business::Cart::Generic::Database::Export - Basic shopping cart

Synopsis ^

See Business::Cart::Generic.

Description ^

Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl.

Installation ^

See Business::Cart::Generic.

Constructor and Initialization ^

Parentage

This class extends Business::Cart::Generic::Database::Base.

Using new()

See scripts/export.orders.as.html.pl and scripts/export.products.as.html.pl.

Methods ^

orders_as_html()

Outputs each order using export.order.page.tx, and outputs an index using export.order.index.page.tx.

The location of these templates is given by 'template_path' in the config file.

The output directory is given by the 'order_html_path' in the config file.

Returns nothing.

products_as_html()

Similar to orders_as_html(), except it uses basic.table.tx, and outputs all products to one (1) HTML table.

Returns nothing.

read_orders_table()

Returns an arrayref of orders, each inflated using "inflate_order()" in Business::Cart::Generic::Database::Order.

read_products_table()

Returns an arrayref of products, each inflated using "inflate_product()" in Business::Cart::Generic::Database::Product.

TODO ^

Add a verbose command line switch, to enable the user to silence prints when exporting orders and products.

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
syntax highlighting: