Ron Savage

NAME

Business::Cart::Generic::Database::Loader - 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/import.produces.pl and scripts/place.orders.pl.

Methods

generate_description($name, $type, $style, $color, $class, $size)

Use various fields from data/products.csv to generate a description for each product.

import_products()

Runs a db transaction to import product data.

Calls populate_tables().

Returns nothing.

place_orders()

Imports orders from data/orders.csv.

Calls populate_orders_table.

Returns nothing.

populate_tables()

Helper for import_products(). Never called directly.

Returns nothing.

populate_manufacturers_table()

populate_orders_table()

Calls populate_order_history_table(), and populate_order_items_table().

populate_order_history_table()

Called by populate_orders_table().

populate_order_items_table()

Called by populate_orders_table().

populate_products_table()

populate_street_addresses_table()

populate_customers_table()

populate_table($csv_file_name, $class_name)

Read the CSV file and use the given DBIx::Class class to populate these tables:

o produce_classes
o product_colors
o product_sizes
o product_statuses
o product_styles
o product_types

populate_tax_rates_table()

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