frontend_checkout

Adds custom content to multi-step checkout pages.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['step'] string Checkout step key.
… your plugin code …

Output

{$frontend_checkout.%plugin_id%}

Custom HTML code.

Shop-Script

Plugin code example

PHP

public function frontendCheckout($params)
{
    $result = array(
        'contactinfo'  => 'HTML code for contact info step',
        'shipping'     => 'HTML code shipping step',
        'payment'      => 'HTML code for payment step',
        'confirmation' => 'HTML code for confirmation step',
        'success'      => 'HTML code for success step',
    );

    return $result[$params['step']];
}