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) Sashbox.net - the ultimate e-commerce hosting solution

Quick Search

Have you seen ...

Zen Cart the art of e-commerce

[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.

Start Accepting Credit Cards For Your Business Today!
Client IP: 38.107.191.93;   total page execution: 0.6348 secconds;
db: SQL queries: 27, duration: 0.0442 seconds;  databases: zenmagick_db(ZMPdoDatabase): SQL queries: 64, duration: 0.1115 seconds;
ZMLoader: 12 static and 99 class files loaded.
0ZM_START_TIME
0.1137init_plugin_group_done10239204onZMInitPluginGroupDonegoogleAnalytics,googleStoreLocator,imageHandler2,minify,pageStats,themeSwitcher,toggleZMThemes,unitTests,groupPricing,[ZMGoogleAnalyticsPlugin properties_={}],[ZMGoogleStoreLocatorPlugin properties_={}],[ZMImageHandler2Plugin properties_={}],[ZMMinifyPlugin properties_={}],[ZMPageStatsPlugin properties_={}],[ZMThemeSwitcherPlugin properties_={}],[ZMToggleZMThemesPlugin properties_={}],[ZMUnitTestsPlugin properties_={}],[ZMGroupPricingPlugin properties_={}]
0.1153bootstrap_done10301316onZMBootstrapDone[Request properties_={}]
0.1385theme_resolved11488276onZMThemeResolved[Request properties_={}],,[ZMTheme properties_={}],
0.1625init_done11553572onZMInitDone[Request properties_={}]
0.2271dispatch_start12348864onZMDispatchStart[Request properties_={}]
0.2293controller_process_start12421956onZMControllerProcessStart[Request properties_={}],[DefaultController properties_={}]
0.2318controller_process_end12494472onZMControllerProcessEnd[Request properties_={}],[DefaultController properties_={}],[SavantView properties_={controller=>[DefaultController properties_={}]}]
0.2322view_start12495036onZMViewStart[Request properties_={}],[SavantView properties_={controller=>[DefaultController properties_={}]}]
0.2542NOTIFIER_CART_GET_PRODUCTS_START13140180onNotifierCartGetProductsStart 
0.2547NOTIFIER_CART_GET_PRODUCTS_END13141132onNotifierCartGetProductsEnd 
0.5918NOTIFIER_CART_SHOW_TOTAL_START14182228onNotifierCartShowTotalStart 
0.5923NOTIFIER_CART_SHOW_TOTAL_END14182916onNotifierCartShowTotalEnd 
0.6334view_done14135988onZMViewDone[Request properties_={}],[SavantView properties_={controller=>[DefaultController properties_={}]}]
0.6338dispatch_done14136472onZMDispatchDone[Request properties_={}]
0.6341finalise_contents14133296onZMFinaliseContents[Request properties_={}],[SavantView properties_={controller=>[DefaultController properties_={}]}],**response**