Chained Items Plugin

From LaneWiki

Jump to: navigation, search
This section may refer to features or tools which depend on the CVS HEAD version of L’âne, bug 48.

The chained items plugin allows a single “trigger” product to automatically invoke a chain of other products when the triggering product is used in a sale. The chained items can use other plugins: For example, the chain is often used to with the Popup Plugin to show a series of building popup menus.

Contents

Product Settings

To enable this plugin for a product, add chain# to Product.extended, where # is the integer id of the chain.

String Settings

The Items’ Chain

Create a string with the Product.ids of each item on a separate line with the String.id of net/L-ane/Register/Plugins/Chain/#. For example:

 burger
 fries
 fountain_drink

Process Parent

You can change when the parent (trigger) item is added to the sale with respect to the chain by setting net/L-ane/Register/Plugins/Chain/#/Process Parent to either first (before the chain), last (after the chain), both (both before and after the chain), or none (do not add it to the sale).

SysString Settings

This plugin requires its code to be added to SysString:register-initMachine-default in the extended product code section.

Code/Download

The code for this plugin is available in the task manager as bug 1295 (directly).

Personal tools