frontend_product

Adds custom content to product-viewing pages in storefront.

Shop-Script

Input (passed by reference)

$product shopProduct Product properties.
… your plugin code …

Output

{$frontend_product.%plugin_id%.menu}

Content added next to links to custom product pages.

{$frontend_product.%plugin_id%.cart}

Custom content added next to the “Add to cart” button.

{$frontend_product.%plugin_id%.block_aux}

Custom informational block, usually in a sidebar.

{$frontend_product.%plugin_id%.block}

Block of extra product details in main description area.

Shop-Script

Plugin code example

PHP

public function frontendProduct($product)
{
    return array(
        'menu'      => 'HTML code for menu section',
        'cart'      => 'HTML code for "add to cart" section',
        'block'     => 'HTML code for main section',
        'block_aux' => 'HTML code for aux section',
    );
}