frontend_cart_productdialog

Triggered before the selection of another product SKU during the in-cart checkout. Allows modification of the product object whose SKU is being selected.

Shop-Script

Input (passed by reference)

$product shopProduct Object of the product whose SKU is being selected.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function frontendCartProductDialog(shopProduct $product)
{
    if (!strlen($product->summary)) {
        $product->setData('summary', strip_tags($product->description));
    }
}