background preloader

E-Commerce

Facebook Twitter

Business::Cart::Generic. Business::Cart::Generic - Basic shopping cart Convert parts of osCommerce and PrestaShop into Perl. See httpd/cgi-bin/generic.cart.psgi and httpd/cgi-bin/generic.cart.cgi, or import.products.pl and place.orders.pl. Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl. o Placing orders Use the GUI, or see import.products.pl and place.orders.pl. o Outputting orders as HTML files See export.orders.as.html.pl. o Outputting orders as HTML via the GUI See httpd/cgi-bin/generic.cart.psgi and httpd/cgi-bin/generic.cart.cgi.

You can use the GUI to search for orders by order number. This module is available as a Unix-style distro (*.tgz). See for help on unpacking and installing distros. The Module Itself Install Business::Cart::Generic as you would for any Perl module: Run: or run: or unpack the distro, and then either: or: The Configuration File Next, tell Business::Cart::Generic your values for some options. o validator.css. Handel::Cart. Handel::Cart - Module for maintaining shopping cart contents Handel::Cart is component for maintaining simple shopping cart data. create Arguments: \%data [, \%options] Creates a new shopping cart object containing the specified data. A Handel::Exception::Argument exception is thrown if the first parameter is not a hashref. The following options are available: storage A storage object to use to create a new cart object. Add Arguments: \%data | $item Adds a new item to the current shopping cart and returns an instance of the item class specified in cart object storage.

Or pass an existing cart item: When passing an existing cart item to add, all columns in the source item will be copied into the destination item if the column exists in both the destination and source, and the column isn't the primary key or the foreign key of the item relationship. A Handel::Exception::Argument exception is thrown if the first parameter isn't a hashref or an object that subclasses Handel::Cart::Item. clear count items.

Interchange web-based application server. Interchange/interchange - GitHub. Interchange web-based application server. Mango::Cart. Mango::Cart - Module representing a shopping cart my $cart = $provider->create({ user => 23 }); $cart->add({ sku => 'SKU1234', quantity => 1, price => 1.25 }); my $items = $cart->items; while (my $item = $items->next) { print $item->sku; print $item->price; print $item->total; }; print $cart->subtotal; Mango::Cart represents a users shopping cart and cart contents. add Arguments: \%data | $item Adds a new item to the current shopping cart and returns the new item. My $item = $cart->add({ sku => 'SKU1234', quantity => 1, price => 1.25 }); or pass an existing cart item: $cart->add( $wishlist->items({sku => 'ABC-123'})->first ); When passing an existing cart item to add, all columns in the source item will be copied into the destination item if the column exists in the destination and the column isn't the primary key or the foreign key of the item relationship.

The item object passed to add must be an instance or subclass of Handel::Cart. clear Deletes all items from the current cart. $cart->clear; id.