first commit
This commit is contained in:
14
plugins/stRecentlyViewedProductsPlugin/config/config.php
Normal file
14
plugins/stRecentlyViewedProductsPlugin/config/config.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
if (SF_APP == 'backend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stRecentlyViewedProductsBackend');
|
||||
stPluginHelper::addRouting('stRecentlyViewedProductsBackend', '/st-recently-viewed-products/:action/*', 'stRecentlyViewedProductsBackend', 'config');
|
||||
stConfiguration::addModule(['label' => 'Ostatnio przegladane produkty', 'route' => '@stRecentlyViewedProductsBackend', 'icon' => 'stRecentlyViewedProductsPlugin'], 'offer');
|
||||
}
|
||||
elseif (SF_APP == 'frontend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stRecentlyViewedProductsFrontend');
|
||||
stPluginHelper::addRouting('stRecentlyViewedProductsFrontend', '/st-recently-viewed-products/:action/*', 'stRecentlyViewedProductsFrontend', 'index');
|
||||
$dispatcher->connect('stProductActions.postExecuteShow', array('stRecentlyViewedProductsPluginListener', 'postExecuteProductShow', 'last'));
|
||||
}
|
||||
Reference in New Issue
Block a user