PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets / 4.9.5
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / core / register / module-list.php
shopengine / core / register Last commit date
base.php 4 years ago model.php 4 years ago module-list.php 1 week ago widget-list.php 1 week ago
module-list.php
286 lines
1 <?php
2
3 namespace ShopEngine\Core\Register;
4
5 use ShopEngine\Base\List_Model;
6 use ShopEngine\Traits\Singleton;
7
8 defined( 'ABSPATH' ) || exit;
9
10 class Module_List extends List_Model {
11
12 use Singleton;
13
14 protected $list_type = 'modules';
15
16 protected function raw_list() {
17 return array_merge( [
18 'quick-view' => [
19 'slug' => 'quick-view',
20 'title' => esc_html__( 'Quick View', 'shopengine' ),
21 'package' => 'free',
22 'base_class' => '\ShopEngine\Modules\Quick_View\Quick_View',
23 'settings' => [
24 ],
25 ],
26 'swatches' => [
27 'slug' => 'swatches',
28 'title' => esc_html__( 'Swatches', 'shopengine' ),
29 'package' => 'free',
30 'base_class' => '\ShopEngine\Modules\Swatches\Swatches',
31 'settings' => [
32 'show_color_swatch_on_loop' => [
33 'value' => 'no',
34 'field_settings' => [
35 'type' => 'switch',
36 'label' => esc_html__( 'Show Color Swatch On Loop Products', 'shopengine' ),
37 ]
38 ],
39 ],
40 ],
41 'wishlist' => [
42 'slug' => 'wishlist',
43 'title' => esc_html__( 'Wishlist', 'shopengine' ),
44 'package' => 'free',
45 'base_class' => '\ShopEngine\Modules\Wishlist\Wishlist',
46 'settings' => [
47 'show_on_archive_page' => [
48 'value' => 'yes',
49 'field_settings' => [
50 'type' => 'switch',
51 'label' => esc_html__( 'Show In Archive Page', 'shopengine' ),
52 ]
53 ],
54 'show_on_single_page' => [
55 'value' => 'yes',
56 'field_settings' => [
57 'type' => 'switch',
58 'label' => esc_html__( 'Show In Single Page', 'shopengine' ),
59 ]
60 ],
61 'show_icon_where_to' => [
62 'value' => 'before',
63 'field_settings' => [
64 'type' => 'select',
65 'label' => esc_html__( 'Show Before/After Add to cart button', 'shopengine' ),
66 'options' => [
67 'before' => esc_html__( 'Before', 'shopengine' ),
68 'after' => esc_html__( 'After', 'shopengine' ),
69 ],
70 ]
71 ],
72 'position' => [
73 'value' => 'bottom-right',
74 'field_settings' => [
75 'type' => 'select',
76 'label' => esc_html__('Notification Position', 'shopengine'),
77 'options' => [
78 'top-left' => esc_html__('Top Left', 'shopengine'),
79 'top-right' => esc_html__('Top Right', 'shopengine'),
80 'bottom-left' => esc_html__('Bottom Left', 'shopengine'),
81 'bottom-right' => esc_html__('Bottom Right', 'shopengine')
82 ]
83 ]
84 ]
85 ],
86 ],
87 'comparison' => [
88 'slug' => 'comparison',
89 'title' => esc_html__( 'Product Comparison', 'shopengine' ),
90 'package' => 'free',
91 'base_class' => '\ShopEngine\Modules\Comparison\Comparison',
92 'settings' => apply_filters( 'shopengine/module/comparison_settings', [
93 'show_on_archive_page' => [
94 'value' => 'yes',
95 'field_settings' => [
96 'type' => 'switch',
97 'label' => esc_html__( 'Show In Archive Page', 'shopengine' ),
98 ]
99 ],
100 'show_on_single_page' => [
101 'value' => 'yes',
102 'field_settings' => [
103 'type' => 'switch',
104 'label' => esc_html__( 'Show In Single Page', 'shopengine' ),
105 ]
106 ],
107 'show_icon_where_to' => [
108 'value' => 'before',
109 'field_settings' => [
110 'type' => 'select',
111 'label' => esc_html__( 'Show Before/After Add to cart button', 'shopengine' ),
112 'options' => [
113 'before' => esc_html__( 'Before', 'shopengine' ),
114 'after' => esc_html__( 'After', 'shopengine' ),
115 ],
116 ]
117 ],
118 'shop_field_in_table' => [
119 'value' => [ "image", "title", "availability", "weight" ],
120 'field_settings' => [
121 'type' => 'checkbox-group',
122 'label' => esc_html__( 'Select Fields to Show in Comparison Table', "shopengine" ),
123 'options' => apply_filters( 'shopengine/module/comparison_fields_for_table', [
124 [
125 'label' => esc_html__( 'Title', 'shopengine' ),
126 'value' => 'title'
127 ],
128 [
129 'label' => esc_html__( 'Description', 'shopengine' ),
130 'value' => 'description'
131 ],
132 [
133 'label' => esc_html__( 'Availability', 'shopengine' ),
134 'value' => 'availability'
135 ],
136 [
137 'label' => esc_html__( 'Weight', 'shopengine' ),
138 'value' => 'weight'
139 ],
140 [
141 'label' => esc_html__( 'Height', 'shopengine' ),
142 'value' => 'height'
143 ],
144 [
145 'label' => esc_html__( 'Dimension', 'shopengine' ),
146 'value' => 'dimension'
147 ],
148 ] )
149 ]
150 ],
151 'alert_one' => [
152 'field_settings' => [
153 'type' => 'pro-alert',
154 'value' => '',
155 'label' => '<h2> ' . esc_html__('Pro Features', 'shopengine') . ' </h2>',
156 'description' => '<p>
157 1. ' . esc_html__('Attributes To Show', 'shopengine') . '<br/>
158 2. ' . esc_html__('Custom Meta', 'shopengine') . '<br/>
159 3. ' . esc_html__('Share Button', 'shopengine') . '<br/>
160 4. ' . esc_html__('Show Compare Button/Bar On Bottom', 'shopengine') . '<br/>
161 ' . sprintf(
162 /* translators: %s: linked name of the Premium version. */
163 esc_html__('You need to upgrade to the %s Version.', 'shopengine'),
164 '<strong><a title="' . esc_attr__('Upgrade Feature', 'shopengine') . '" href="https://wpmet.com/plugin/shopengine/pricing" rel="noopener" target="_blank" style="color: red;">' . esc_html__('Premium', 'shopengine') . '</a> </strong>'
165 ) . '</p>',
166 'alert_type' => 'success' //success, info, warning, error
167 ]
168 ],
169
170 ] ),
171 ],
172 ],
173 $this->pro_modules_for_showing_on_free()
174 );
175 }
176
177 private function pro_modules_for_showing_on_free(){
178
179 if( class_exists('ShopEngine_Pro') ){
180 return [];
181 }
182
183 return [
184
185 'badge' => [
186 'slug' => 'badge',
187 'title' => esc_html__( 'Badges', 'shopengine' ),
188 'package' => 'pro-disabled',
189 'status' => 'inactive',
190 'settings' => [],
191 ],
192 'quick-checkout' => [
193 'slug' => 'quick-checkout',
194 'title' => esc_html__( 'Quick Checkout', 'shopengine' ),
195 'package' => 'pro-disabled',
196 'settings' => [
197 ],
198 ],
199 'partial-payment' => [
200 'slug' => 'partial-payment',
201 'title' => esc_html__( 'Partial Payment', 'shopengine' ),
202 'package' => 'pro-disabled',
203 'settings' => []
204 ],
205 'pre-order' => [
206 'slug' => 'pre-order',
207 'title' => esc_html__( 'Pre-Order', 'shopengine' ),
208 'package' => 'pro-disabled',
209 'settings' => [],
210 ],
211 'back-order' => [
212 'slug' => 'backorder',
213 'title' => esc_html__( 'Back-Order', 'shopengine' ),
214 'package' => 'pro-disabled',
215 'settings' => [],
216 ],
217 'sales-notification' => [
218 'slug' => 'sales-notification',
219 'title' => esc_html__( 'Sales Notification', 'shopengine' ),
220 'package' => 'pro-disabled',
221 'settings' => [],
222 ],
223 'currency-switcher' => [
224 'slug' => 'currency-switcher',
225 'title' => esc_html__( 'Currency Switcher', 'shopengine' ),
226 'package' => 'pro-disabled',
227 'settings' => [],
228 ],
229 'flash-sale-countdown' => [
230 'slug' => 'flash-sale-countdown',
231 'title' => esc_html__( 'Flash Sale Countdown', 'shopengine' ),
232 'package' => 'pro-disabled',
233 'settings' => [],
234 ],
235 'checkout-additional-field' => [
236 'slug' => 'checkout-additional-field',
237 'title' => esc_html__( 'Checkout Additional Field', 'shopengine' ),
238 'package' => 'pro-disabled',
239 'settings' => [],
240 ],
241 'product-size-charts' => [
242 'slug' => 'product-size-charts',
243 'title' => esc_html__('Product Size Charts', 'shopengine'),
244 'package' => 'pro-disabled',
245 'settings' => []
246 ],
247 'sticky-fly-cart' => [
248 'slug' => 'sticky-fly-cart',
249 'title' => esc_html__('Sticky Fly Cart', 'shopengine'),
250 'package' => 'pro-disabled',
251 'settings' => []
252 ],
253 'vacation' => [
254 'slug' => 'vacation',
255 'title' => esc_html__('Vacation', 'shopengine'),
256 'package' => 'pro-disabled',
257 'settings' => []
258 ],
259 'multistep-checkout' => [
260 'slug' => 'multistep-checkout',
261 'title' => esc_html__('Multistep Checkout', 'shopengine'),
262 'package' => 'pro-disabled',
263 'settings' => []
264 ],
265 'advanced-coupon' => [
266 'slug' => 'advanced-coupon',
267 'title' => esc_html__('Advanced Coupon', 'shopengine'),
268 'package' => 'pro-disabled',
269 'settings' => []
270 ],
271 'cross-sell-popup' => [
272 'slug' => 'cross-sell-popup',
273 'title' => esc_html__('Cross Sell Popup', 'shopengine'),
274 'package' => 'pro-disabled',
275 'settings' => []
276 ],
277 'avatar' => [
278 'slug' => 'avatar',
279 'title' => esc_html__('Avatar', 'shopengine'),
280 'package' => 'pro-disabled',
281 'settings' => []
282 ],
283 ];
284 }
285 }
286