NAME
Business::Cart::Generic::Database::Import - 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::Database::Base.
Using new()
See scripts/clean.all.data.pl and scripts/populate.tables.pl.
Methods
clean_all_data()
Wrapper which calls the next 4 methods.
Returns nothing.
clean_currency_data()
Reformats the osCommerce data for the currencies table.
Reads data/raw.currencies.txt and writes data/currencies.csv.
clean_language_data()
Reformats the osCommerce data for the languages table.
Reads data/raw.languages.txt and writes data/languages.csv.
clean_order_statuses_data()
Reformats the osCommerce data for the order_statuses table.
Reads data/raw.order.statuses.txt and writes data/order.statuses.csv.
Since then I've manually added 'Checked out' to that table.
populate_all_tables()
Runs a db transaction to populate all tables.
Calls populate_tables().
Returns nothing.
populate_tables()
A helper for populate_all_tables(). Never called directly.
Calls the next 9 methods.
populate_countries_table()
populate_zones_table()
populate_currencies_table()
populate_languages_table()
populate_order_statuses_table()
populate_table($csv_file_name, $class_name)
Read the CSV file and use the given DBIx::Class class to populate these tables:
- o customer_statuses
- o customer_types
- o email_address_types
- o genders
- o payment_methods
- o phone_number_types
- o titles
- o yes_no
populate_tax_classes_table()
populate_weight_classes_table()
populate_weight_class_rules_table()
read_csv_file($file_name)
Uses Text::CSV_XS the read the given file. There must be a header record in the file, listing the column names.
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