first commit
This commit is contained in:
38
plugins/cvIngPlugin/config/config.php
Normal file
38
plugins/cvIngPlugin/config/config.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
stPluginHelper::addConfigValue('stPaymentType', 'cvIngPlugin_imoje', array('name' => 'cvIngImoje', 'description' => 'ING - Płatność Online IMOJE'));
|
||||
stPluginHelper::addConfigValue('stPaymentType', 'cvIngPlugin_twisto', array('name' => 'cvIngTwisto', 'description' => 'ING - Kup, sprawdź i zapłać za 21 dni z Twisto'));
|
||||
|
||||
if (SF_APP == 'backend'){
|
||||
stPluginHelper::addEnableModule('cvIngBackend', 'backend');
|
||||
stPluginHelper::addRouting('cvIngPlugin', '/cv_ing/:action/*', 'cvIngBackend', 'config', 'backend');
|
||||
stPluginHelper::addRouting('cvIngPlugin', '/cv_ing', 'cvIngBackend', 'congfig', 'backend');
|
||||
|
||||
stConfiguration::addModule(
|
||||
array('route' => '@cvIngPlugin',
|
||||
'label' => 'ING Płatności online imoje',
|
||||
'icon' => 'stPayment'
|
||||
)
|
||||
, 'imoje'
|
||||
);
|
||||
stConfiguration::addModule(
|
||||
array('route' => '@cvIngPlugin',
|
||||
'label' => 'ING Płatności online imoje',
|
||||
'icon' => 'stPayment'
|
||||
)
|
||||
, 'Płatności'
|
||||
);
|
||||
}
|
||||
if (SF_APP == 'frontend'){
|
||||
stPluginHelper::addEnableModule('cvIngImojeFrontend', 'frontend');
|
||||
stPluginHelper::addEnableModule('cvIngTwistoFrontend', 'frontend');
|
||||
|
||||
stPluginHelper::addRouting('cvIngImojeFrontend', '/cv_ing_imoje/:action/*', 'cvIngImojeFrontend', 'index', 'frontend');
|
||||
stPluginHelper::addRouting('cvIngTwistoFrontend', '/cv_ing_twisto/:action/*', 'cvIngTwistoFrontend', 'index', 'frontend');
|
||||
|
||||
$dispatcher->connect('smarty.slot.append', array('cvIngListener', 'smartySlotAppend'));
|
||||
$dispatcher->connect('stOrderActions.postExecuteSave', array('cvIngListener', 'postExecuteOrderSave', true));
|
||||
$dispatcher->connect('stUserDataActions.validateAddBasketUser', array('cvIngListener', 'validateAddBasketUser'));
|
||||
|
||||
stSocketView::addComponent('stOrderSummary', 'cvIngImojeFrontend', 'orderSummary');
|
||||
}
|
||||
Reference in New Issue
Block a user