Toggle ZenMagick theme support
Switch theme: Default | Demo | BrightSide | KeepItSimple | PixelGreen | Precision | PrecisionReloaded

Categories

[More]New Products

Manufacturers

[More]Reviews

[More]Featured

Legalese

Sponsors

Zen Cart the art of e-commerce

Important Links

Login

Lost your password? Not registered yet?

RSS Feeds

Sponsors

Zen Cart the art of e-commerce eStart Your Web Store with Zen Cart(tm)

Quick Search

Have you seen ...

eStart Your Web Store with Zen Cart(tm)

[More]Shopping Cart

Cart is Empty

$0.00

Best Sellers

[More]Specials

Languages

English

Currencies

Home > Demo-Theme-Controller-Demo-Crumbtrail > Ajax Demo

This is a demo page illustrating Ajax in ZenMagick. The examples use JSON data format. If you want to use anything else, like XML, just write your own methods and you are good to go.

The controller is using PEAR Json for the JSON encoding. Depending on your server configuration you might be better of using something different (possibly something already installed).

The actual Ajax bits are implemented using jQuery and json.

Some things to keep in mind:

Shopping Cart

Simple display of the cart contents. This area is also being updated by the Ajax Cart demo further down the page.

Cart is empty.
Simple Ajax Shopping Cart

Allows to add/update/remove items to/from the shopping cart. The updated cart contents is displayed.


Simple Shipping Estimator

Calculates and displays available shipping options based on the current cart contents and shipping address.

Country / Zone demo

Load the list of available countries and zones on demand.

Zen Cart
Client IP: 38.107.191.94;   total page execution: 0.5977 secconds;
db: SQL queries: 21, duration: 0.0188 seconds;  databases: zenmagick_db(ZMPdoDatabase): SQL queries: 220, duration: 0.1733 seconds;
ZMLoader: 13 static and 112 class files loaded [of 270], 270 objects instantiated.