This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onAfterOptionMatrixRecordFound event

Triggered by Shop_OptionMatrixRecord
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onAfterOptionMatrixRecordFound(Shop_OptionMatrixRecord $model, array $options, mixed $product, boolean $option_keys)
$model Shop_OptionMatrixRecord specifies the loaded Option Matrix model
$options array specifies product option values
$product mixed product object (Shop_Product) or product identifier.
$option_keys boolean indicates whether array keys in the $options parameter represent option keys (md5(name)) rather than option names. Otherwise $options keys are considered to be plain option name.
Triggered when an Option Matrix record is loaded from the database. The event is triggered for front-end calls when an Option Matrix record is loaded for a specific product for a specific set of product options.