Business-Cart-Generic
view release on metacpan or search on metacpan
lib/Business/Cart/Generic.pm view on Meta::CPAN
=back
=item o What is stored in the session?
The session currenctly holds 1 parameter, a hashref called order, which contains these keys:
=over 4
=item o id: The id (primary key) in the orders table
=item o item_count: The number of items in the cart
=item o item_id: The id (primary key) in the order_items table of the last item added to the cart
=item o order_count: The number of times the user has clicked the Checkout button
=back
=item o How do I see how things work?
Trace the logic in Business::Cart::Generic::Controller::Order, where online orders are handled, or
trace the logic in import.products.pl, place.orders.pl and export.orders.as.html.pl.
Once you've run place.orders.pl you can use this module's GUI to search for orders by order number.
=item o What is the point of all the clean_*() methods in L<Business::Cart::Generic::Database::Import>.
They transform files of constant data extracted from osCommerce, so the populate_*() methods
can import it.
=item o What do I need to be aware of?
Many things. Here is a tiny selection of them:
=over 4
=item o Customer addresses
For example, if a customer supplies a shipping address while placing an order, and later changes the address,
the question arises: To which address should the order be shipped? The new address? But what if the order
has already been printed using the old address?
This problem occurs in many situations, not just with addresses.
=item o Validation of credit card numbers
It makes most sense to just send the card number to the bank, even though osCommerce contains reg exps
(see the install dir) for checking the format (at least) of such numbers.
=item o The date_modified column
Various tables have a date_modified column, but there is no code which updates it.
=back
=item o The Enter key does not work on the quantity field for online orders!
Correct. I disabled it. What happened was that it worked until I displayed items in the shopping cart,
which included [Remove from cart] buttons. After that, the most recently added button responded to the
Enter key, even though the cursor was in the quantity field. Messy, and v-e-r-y confusing.
=item o Help! I changed something and now the tabs don't appear upon start-up!
I believe you... The most likely explanations are:
=over 4
=item o You made a mistake. Fix it :-)
=item o You changed the default country to Cote D'Ivoire
See that single quote? You can't default to a country name containing a single quote, because of the code in
Business::Cart::Generic::Controller::Initialize.build_head_init(). There's a call in that method to
build_order_html(), after which the order form's HTML is put into a single-quoted Javascript string, for
placement onto the Order tab. Sorry. Luckily, there is only one such country.
=item o You changed the default country to one with a zone name containing a single quote
See previous item for details.
=back
=back
=head1 Machine-Readable Change Log
The file CHANGES was converted into Changelog.ini by L<Module::Metadata::Changes>.
=head1 Version Numbers
Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
=head1 Thanks
Many thanks are due to the people who chose to make osCommerce and PrestaShop, Zen Cart, etc, Open Source.
=head1 Support
Email the author, or log a bug on RT:
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Business::Cart::Generic>.
=head1 Author
L<Business::Cart::Generic> was written by Ron Savage I<E<lt>ron@savage.net.auE<gt>> in 2011.
Home page: L<http://savage.net.au/index.html>.
=head1 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
=cut
( run in 0.630 second using v1.01-cache-2.11-cpan-d7f47b0818f )