\CombinationProductModifier
If it find a combination product it:
- Author: Nicolaas [at] sunnysideup.co.nz
Synopsis
class CombinationProductModifier
extends OrderModifier
{
- // members
- private static integer $savings = 0;
- // methods
- public void runUpdate()
- public void ShowForm()
- public Boolean ShowInTable()
- public Boolean CanBeRemoved()
- protected Null loadIncludedProductItems()
- protected Null loadCombinationProducts()
- protected void addProductsPerCombo()
- protected Integer countOfProductInOrder()
- public void LiveName()
- public void LiveTableValue()
Hierarchy
Extends
- OrderModifier
Members
private
- $savings
Methods
protected
- addProductsPerCombo() — checks for Combination Products and makes sure that enough of the component products are added.
- countOfProductInOrder() — Tells us the number of times a product has been added to the order (quantity)
- loadCombinationProducts() — loads the items in the static variable $order_items and saves the items for future use.
- loadIncludedProductItems() — loads the items in the static variable $order_items and saves the items for future use.
public
- CanBeRemoved() — standard OrderModifer Method Tells us if the modifier can be removed (hidden / turned off) from the order.
- LiveName()
- LiveTableValue()
- ShowForm() — standard OrderModifier Method Should we show a form in the checkout page for this modifier?
- ShowInTable() — standard OrderModifer Method Tells us if the modifier should take up a row in the table on the checkout page.
- runUpdate() — standard modifier method