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.menu}
Content added next to links to custom product pages.
{$frontend_product.cart}
Custom content added next to the “Add to cart” button.
{$frontend_product.block_aux}
Custom informational block, usually in a sidebar.
{$frontend_product.block}
Block of extra product details in main description area.
Shop-Script
Plugin code example
PHP
public function frontendProduct($product)
{
return [
'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',
];
}









