View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Ron Savage > Business-Cart-Generic > Business::Cart::Generic::View::Base



Annotate this POD

View/Report Bugs
Module Version: 0.85   Source  


Business::Cart::Generic::View::Base - 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 ^


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

Using new()

This class is never used stand-alone. See e.g. Business::Cart::Generic::View and Business::Cart::Generic::View::Order.

new() is called as my($obj) = Business::Cart::Generic::View::Base -> new(k1 => v1, k2 => v2, ...).

It returns a new object of type Business::Cart::Generic::View::Base. See Business::Cart::Generic::View.

Key-value pairs accepted in the parameter list:

o config => $config

Takes an object of type Business::Cart::Generic::Util::Config.

This key => value pair is mandatory.

o templater => $templater

Takes a Text::Xslate object.

This key => value pair is mandatory.

These keys are also getter-type methods. config() returns a hashref, and templater() returns an object.

Methods ^

build_select($class_name, $default, $id_name, $column_list, $onchange)

Returns a block of HTML for a select statement, using the given parameters.

build_special_select($map, $default, $id_name)

Returns a block of HTML for a specialized select statement, using the given parameters.


$error is a hashref of (usually) error information. Business::Cart::Generic::Util::Validator returns such a hashref when errors are detected in user input.

Returns a JSON and utf8 encoded block of text (usually of error messages) suitable for sending to the client.


$note is a hashref of information for the user.

Returns a JSON and utf8 encoded block of text suitable for sending to the client.

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:

Author ^

Business::Cart::Generic was written by Ron Savage <> in 2011.

Home page:

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