forked from extcode/cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
117 lines (100 loc) · 3.17 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
defined('TYPO3_MODE') or die();
// configure plugins
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'MiniCart',
[
'Cart' => 'showMiniCart, updateCurrency',
],
// non-cacheable actions
[
'Cart' => 'showMiniCart, updateCurrency',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'Cart',
[
'Cart' => 'showCart, clearCart, addProduct, removeProduct, addCoupon, removeCoupon, setShipping, setPayment, updateCountry, updateCurrency, updateCart, orderCart',
'Order' => 'paymentSuccess, paymentCancel',
],
[
'Cart' => 'showCart, clearCart, addProduct, removeProduct, addCoupon, removeCoupon, setShipping, setPayment, updateCountry, updateCurrency, updateCart, orderCart',
'Order' => 'paymentSuccess, paymentCancel',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'Currency',
[
'Cart' => 'editCurrency, updateCurrency',
],
[
'Cart' => 'editCurrency, updateCurrency',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'Product',
[
'Product' => 'show, list, teaser, showForm',
],
[
'Product' => 'list, showForm',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'ProductPartial',
[
'Product' => 'showForm',
],
[
'Product' => 'showForm',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'FlexProduct',
[
'Product' => 'flexform',
],
[
'Product' => '',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Extcode.' . $_EXTKEY,
'Order',
[
'Order' => 'list, show',
],
[
'Order' => 'list, show',
]
);
// Icon Registry
if (TYPO3_MODE === 'BE') {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'icon-apps-pagetree-page-cart-cart',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:cart/Resources/Public/Icons/icon-apps-pagetree-page-cart-cart.svg']
);
$iconRegistry->registerIcon(
'icon-apps-pagetree-page-cart-product',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:cart/Resources/Public/Icons/icon-apps-pagetree-page-cart-product.svg']
);
}
// RealUrlHook
if (TYPO3_MODE === 'FE') {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['ConfigurationReader_postProc'][1499067085] =
'EXT:cart/Classes/Hooks/RealUrlHook.php:Extcode\Cart\Hooks\RealUrlHook->postProcessConfiguration';
}
// ke_search indexer
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerIndexerConfiguration'][] = 'EXT:cart/Classes/Hooks/KeSearchIndexer.php:Extcode\Cart\Hooks\KeSearchIndexer';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customIndexer'][] = 'EXT:cart/Classes/Hooks/KeSearchIndexer.php:Extcode\Cart\Hooks\KeSearchIndexer';