ZenMagick 0.9.8


org.zenmagick.store.services.plugins.types.ZMOrderTotalPlugin
\store\services\plugins\types\ZMOrderTotalPlugin.php at line 34

Class ZMOrderTotalPlugin

ZMObject
└─ZMPlugin
└─Plugin
└─ZMOrderTotalPlugin

public class ZMOrderTotalPlugin
extends Plugin

Order total plugin.

Author:
DerManoMann
Version:
$Id: ZMOrderTotalPlugin.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.store.services.plugins.Plugin
CONTEXT_ADMIN, CONTEXT_STOREFRONT, KEY_ENABLED, KEY_PREFIX, KEY_SORT_ORDER
Fields inherited from org.zenmagick.core.services.plugins.ZMPlugin
LP_ALL, LP_FOLDER, LP_NONE, LP_PLUGIN
Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMOrderTotalPlugin(string title, string description, string version)

Create new plugin.

Method Summary
mixed

calculate(ZMRequest request, ZMShoppingCart shoppingCart)

Evaluate the given cart and return resulting order totals.

Methods inherited from org.zenmagick.store.services.plugins.Plugin
addConfigValue, addMenuItem, get, getConfigPath, getConfigValues, getGlobal, getMessages, getSortOrder, init, install, isEnabled, isInstalled, pluginURL, remove, set, setEnabled, setGroup, setPreferredSortOrder, setSortOrder
Methods inherited from org.zenmagick.core.services.plugins.ZMPlugin
getContext, getDescription, getGroup, getId, getLoaderPolicy, getName, getPluginDirectory, getVersion, init, isEnabled, setContext, setDescription, setEnabled, setGroup, setId, setLoaderPolicy, setName, setPluginDirectory, setVersion
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\services\plugins\types\ZMOrderTotalPlugin.php at line 43

ZMOrderTotalPlugin

public ZMOrderTotalPlugin(string title, string description, string version)

Create new plugin.

Parameters:
title - The title.
description - The description.
version - The version.

Method Detail

\store\services\plugins\types\ZMOrderTotalPlugin.php at line 63

calculate

public mixed calculate(ZMRequest request, ZMShoppingCart shoppingCart)

Evaluate the given cart and return resulting order totals.

Parameters:
request - The current request.
shoppingCart - The current shopping cart.
Returns:
Either a single ZMOrderTotalDetails, a list of order total details (ZMOrderTotalDetails) or null.

ZenMagick 0.9.8