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
- Author:
- DerManoMann
- Version:
- $Id: ZMOrderTotalPlugin.php 2694 2009-12-03 22:32:18Z dermanomann $
| Fields inherited from org.zenmagick.core.ZMObject |
| properties_ |
| Constructor Summary |
ZMOrderTotalPlugin(string title, string description, string version) Create new plugin. |
| 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 |
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.
Order total plugin.