PluginProbe
Premmerce / 1.0
Premmerce v1.0
trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 1.3.17 1.3.18 1.3.19 1.3.2 1.3.20 1.3.21 1.3.22 1.3.23 1.3.3 1.3.4 1.3.5 1.3.6 All 28 releases
premmerce / src / Data / Tasks.php

Tasks.php in Premmerce 1.0, at src/Data/Tasks.php

931 lines 38.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace Premmerce\Premmerce\Data;
2
3
4 use Premmerce\Premmerce\Api\PluginApi;
5 use Premmerce\Premmerce\PremmercePlugin;
6
7 class Tasks{
8
9 const TYPE_DEFAULT = 'default';
10 const TYPE_AUTO = 'auto';
11 const TYPE_PREMIUM = 'premium';
12
13 const STATE_CHECKED = 'checked';
14 const STATE_SKIPPED = 'skipped';
15 const STATE_DEFAULT = 'todo';
16
17
18 const MAGIC_INSTALL_PLUGIN = 'install_plugin_';
19
20 const MAGIC_INSTALL_THEME = 'install_theme_';
21
22
23 public static function getAll(){
24
25 $tasks = self::getFree();
26
27 if(PremmercePlugin::IS_PREMIUM){
28 $tasks += self::getPremium();
29 }
30
31 return $tasks;
32 }
33
34 /**
35 * @return array
36 */
37 private static function getFree(){
38
39 $tasks = [];
40
41 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ] = [
42 'title' => __('WooCommerce Installation', 'premmerce'),
43 'description' => __('WooCommerce is a basic platform for your future store, one of the most popular on the web. After activation WooCommerce will suggest using the WooCommerce Onboarding Wizard which you can either use or skip and continue settings with the Premmerce Setup Wizard.', 'premmerce'),
44 'type' => self::TYPE_AUTO,
45 'links' => [
46 [
47 'label' => __('Details', 'premmerce'),
48 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#wooinstall', 'premmerce'),
49 ],
50 ],
51 ];
52
53
54 $tasks['create_wordpress_basic_pages'] = [
55 'title' => __('Creating the basic default WordPress pages'),
56 'description' => __('In order to proceed with further interface settings, the Front Page, Blog and Contact pages have to be created.', 'premmerce'),
57 'type' => self::TYPE_DEFAULT,
58 'links' => [
59 [
60 'label' => __('Create', 'premmerce'),
61 'link' => admin_url('edit.php?post_type=page'),
62 ],
63 [
64 'label' => __('Details', 'premmerce'),
65 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#hpsett', 'premmerce'),
66 ],
67 ],
68 ];
69
70 $tasks['create_woocommerce_default_pages'] = [
71 'title' => __('Creating the WooCommerce default pages'),
72 'description' => __('In some cases if you skip the WooCommerce Onboarding Wizard, the essential default pages may not be created automatically. In order to create them, go to the Status section, select Create default WooCommerce pages on the Tools tab and click Create.', 'premmerce'),
73 'type' => self::TYPE_DEFAULT,
74 'depends' => [
75 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
76 ],
77 'links' => [
78 [
79 'label' => __('Create', 'premmerce'),
80 'link' => admin_url('admin.php?page=wc-status&tab=tools'),
81 ],
82 ],
83 ];
84
85 $tasks[ self::MAGIC_INSTALL_THEME . 'storefront' ] = [
86 'title' => __('Storefront, the basic WooCommerce theme installation', 'premmerce'),
87 'description' => __('For a better visualization set Storefront, the bulletproof theme created by the WordPress core developers.', 'premmerce'),
88 'type' => self::TYPE_AUTO,
89 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
90 ];
91
92 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ] = [
93 'title' => __('Yoast SEO Installation', 'premmerce'),
94 'description' => __('Yoast SEO is an obligatory plugin if you want your store products to be easily found on the search engines by your customers.', 'premmerce'),
95 'type' => self::TYPE_AUTO,
96 ];
97
98 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woo-seo-addon' ] = [
99 'title' => __('WooCommerce SEO Addon Installation', 'premmerce'),
100 'description' => __('This plugin provides additional SEO capabilities that are not available in the basic Yoast SEO.', 'premmerce'),
101 'type' => self::TYPE_AUTO,
102 'depends' => [
103 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
104 self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo',
105 ],
106 'links' => [
107 [
108 'label' => __('Details', 'premmerce'),
109 'link' => __('https://premmerce.com/woocommerce-seo-addon-yoast/', 'premmerce'),
110 ],
111 ],
112 ];
113
114 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woo-permalink-manager' ] = [
115 'title' => __('WooCommerce Permalink Manager Installation', 'premmerce'),
116 'description' => __('This plugin is used for your store\'s URL settings fine-tuning.', 'premmerce'),
117 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
118 'type' => self::TYPE_AUTO,
119 'links' => [
120 [
121 'label' => __('Details', 'premmerce'),
122 'link' => __('https://premmerce.com/woocommerce-permalink-manager-remove-shop-product-product-category-url/', 'premmerce'),
123 ],
124 ],
125 ];
126
127 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp' ] = [
128 'title' => __('Google Analytics Dashboard Installation for WordPress', 'premmerce'),
129 'description' => __('Basic Google Analytics settings and interactive widget for Dashboard.', 'premmerce'),
130 'type' => self::TYPE_AUTO,
131 'links' => [
132 [
133 'label' => __('Details', 'premmerce'),
134 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/', 'premmerce'),
135 ],
136 ],
137 ];
138
139 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woocommerce-google-analytics-integration' ] = [
140 'title' => __('WooCommerce Google Analytics Integration Plugin Installation', 'premmerce'),
141 'description' => __('Additional plugin for sending ecommerce data to Google Analytics account.', 'premmerce'),
142 'type' => self::TYPE_AUTO,
143 'depends' => [
144 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
145 self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp',
146 ],
147 'links' => [
148 [
149 'label' => __('Details', 'premmerce'),
150 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/', 'premmerce'),
151 ],
152 ],
153 ];
154
155 $tasks['ssl_certificate'] = [
156 'title' => __('SSL Certificate Purchase', 'premmerce'),
157 'description' => __('We highly recommend you to buy the SSL certificate from your hosting provider or another SSL provider and then install it on your site for better SEO rankings and user experience.', 'premmerce'),
158 'type' => self::TYPE_DEFAULT,
159 ];
160
161 $tasks['setup_options_general'] = [
162 'title' => __('WordPress Basic Settings', 'premmerce'),
163 'description' => __('Adjust the following fields: Site Title, Tagline, WordPress Address (URL), Site Address (URL), Email Address, Site Language, Timezone', 'premmerce'),
164 'type' => self::TYPE_DEFAULT,
165 'links' => [
166 [
167 'label' => __('Set up', 'premmerce'),
168 'link' => admin_url('options-general.php'),
169
170 ],
171 [
172 'label' => __('Details', 'premmerce'),
173 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#basic_wordpress_settings', 'premmerce'),
174 ],
175 ],
176 ];
177
178 $tasks['setup_reading'] = [
179 'title' => __('Reading Settings', 'premmerce'),
180 'description' => __('Change the displayed by default "Your Latest Posts" to a more easy-to-use setting " A Static Page" and select the default pages created earlier.', 'premmerce'),
181 'type' => self::TYPE_DEFAULT,
182 'links' => [
183 [
184 'label' => __('Set up', 'premmerce'),
185 'link' => admin_url('options-reading.php'),
186 ],
187 [
188 'label' => __('Details', 'premmerce'),
189 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#readsett', 'premmerce'),
190 ],
191 ],
192 ];
193
194 $tasks['setup_permalinks'] = [
195 'title' => __('Permalinks Settings', 'premmerce'),
196 'description' => __('We recommend that you remove the unnecessary slag from your store’s URL and make it more concise and readable. To do this you need to adjust the following settings in Permaink Manager: select "Remove base"(from the category), "Remove base"(from the product) and leave Remove parent slugs without changes.', 'premmerce'),
197 'type' => self::TYPE_DEFAULT,
198 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woo-permalink-manager'],
199 'links' => [
200 [
201 'label' => __('Set up', 'premmerce'),
202 'link' => admin_url('admin.php?page=premmerce-url-manager-admin'),
203
204 ],
205 [
206 'label' => __('Details', 'premmerce'),
207 'link' => 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#permalinks_settings',
208
209 ],
210 ],
211 ];
212
213 $tasks['setup_woocommerce_base'] = [
214 'title' => __('WooCommerce Basic Settings', 'premmerce'),
215 'description' => __('Adjust the following fields: Address line 1, Address line 2, City, Country / State, Postcode / ZIP, Currency and Check Enable taxes(Only if your store will use automatic tax calculations).', 'premmerce'),
216 'type' => self::TYPE_DEFAULT,
217 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
218 'links' => [
219 [
220 'label' => __('Set up', 'premmerce'),
221 'link' => admin_url('admin.php?page=wc-settings'),
222
223 ],
224 [
225 'label' => __('Details', 'premmerce'),
226 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#basic_woocommerce_settings', 'premmerce'),
227 ],
228 ],
229 ];
230
231 $tasks['setup_geolocation'] = [
232 'title' => __('Geolocation Settings', 'premmerce'),
233 'description' => __('You can download and install the MaxMind GeoIP Database manually from http://dev.maxmind.com/geoip/legacy/geolite/ to the path: /wp-content/uploads/GeoIP.dat. Scroll down to "Downloads" and download the "Binary / gzip" file next to "GeoLite Country". Please remember to uncompress GeoIP.dat.gz and upload the GeoIP.dat file only.', 'premmerce'),
234 'type' => self::TYPE_DEFAULT,
235 'links' => [
236 [
237 'label' => __('Download', 'premmerce'),
238 'link' => __('http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz', 'premmerce'),
239 ],
240 [
241 'label' => __('Details', 'premmerce'),
242 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#geoip', 'premmerce'),
243 ],
244 ],
245 ];
246
247 $tasks['setup_shipping'] = [
248 'title' => __('The Shipping Tab Settings', 'premmerce'),
249 'description' => __('On this tab you can make shipping options and shipping zones settings.', 'premmerce'),
250 'type' => self::TYPE_DEFAULT,
251 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
252 'links' => [
253 [
254 'label' => __('Set up', 'premmerce'),
255 'link' => admin_url('admin.php?page=wc-settings&tab=shipping'),
256
257 ],
258 [
259 'label' => __('Details', 'premmerce'),
260 'link' => __('https://premmerce.com/woocommerce-shipping-guide-zones-classes-calculator-labels/', 'premmerce'),
261 ],
262 ],
263 ];
264
265 $tasks['setup_checkout'] = [
266 'title' => __('The Checkout Tab Settings', 'premmerce'),
267 'description' => __('Here you can setup your checkout process and select all payment options that would be used in the store.', 'premmerce'),
268 'type' => self::TYPE_DEFAULT,
269 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
270 'links' => [
271 [
272 'label' => __('Set up', 'premmerce'),
273 'link' => admin_url('admin.php?page=wc-settings&tab=checkout'),
274
275 ],
276 [
277 'label' => __('Details', 'premmerce'),
278 'link' => __('https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/sell-products/core-payment-options/', 'premmerce'),
279 ],
280 ],
281 ];
282
283 $tasks['setup_emails'] = [
284 'title' => __('The Emails Tab Settings', 'premmerce'),
285 'description' => __('Adjust the following fields: "From" name, "From" address, Header image, Footer text.', 'premmerce'),
286 'type' => self::TYPE_DEFAULT,
287 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
288 'links' => [
289 [
290 'label' => __('Set up', 'premmerce'),
291 'link' => admin_url('admin.php?page=wc-settings&tab=email'),
292
293 ],
294 [
295 'label' => __('Details', 'premmerce'),
296 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#emails_tab', 'premmerce'),
297 ],
298 ],
299 ];
300
301 $tasks['setup_yoast_advanced'] = [
302 'title' => __('Toggle the Advanced Settings Pages switch for Yoast SEO', 'premmerce'),
303 'description' => __('This is required to get access to all Yoast settings', 'premmerce'),
304 'type' => self::TYPE_DEFAULT,
305 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
306 'links' => [
307 [
308 'label' => __('Set up'),
309 'link' => admin_url('admin.php?page=wpseo_dashboard#top#features'),
310
311 ],
312 [
313 'label' => __('Details', 'premmerce'),
314 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#toggle_yoast', 'premmerce'),
315 ],
316 ],
317 ];
318 $tasks['setup_yoast_company_info'] = [
319 'title' => __('Filling in the Company info field', 'premmerce'),
320 'description' => __('Adjust the following fields: Website Name, Alternate Name. In the select field "Company or Person" - select Company and then adjust fields: Company name, Company logo', 'premmerce'),
321 'type' => self::TYPE_DEFAULT,
322 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
323 'links' => [
324 [
325
326 'label' => __('Set up'),
327 'link' => admin_url('admin.php?page=wpseo_dashboard#top#knowledge-graph'),
328 ],
329 [
330 'label' => __('Details', 'premmerce'),
331 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#fill_company_info', 'premmerce'),
332 ],
333
334 ],
335 ];
336 $tasks['setup_yoast_webmaster_tools'] = [
337 'title' => __('Adding the information to Google Webmaster Tools', 'premmerce'),
338 'description' => __('It\'s important to set Google Webmaster Tools, Yandex and Bing if they are used', 'premmerce'),
339 'type' => self::TYPE_DEFAULT,
340 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
341 'links' => [
342 [
343 'label' => __('Set up'),
344 'link' => admin_url('admin.php?page=wpseo_dashboard#top#webmaster-tools'),
345 ],
346 [
347 'label' => __('Details', 'premmerce'),
348 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#webmaster_tools', 'premmerce'),
349 ],
350 ],
351 ];
352 $tasks['setup_yoast_social'] = [
353 'title' => __('The Social page settings', 'premmerce'),
354 'description' => __('On the Accounts tab fill in all information about all social networks that are used by the store.', 'premmerce'),
355 'type' => self::TYPE_DEFAULT,
356 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
357 'links' => [
358 [
359 'label' => __('Set up'),
360 'link' => admin_url('admin.php?page=wpseo_social'),
361 ],
362 [
363 'label' => __('Details', 'premmerce'),
364 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#social_page', 'premmerce'),
365 ],
366 ],
367 ];
368 $tasks['setup_yoast_search_console'] = [
369 'title' => __('The Yoast Search Console Authorization', 'premmerce'),
370 'description' => __('There\'s an option to authorise Yoast SEO and your Google Webmaster console. After authorization the information about all pages 404 would be displayed on this page.', 'premmerce'),
371 'type' => self::TYPE_DEFAULT,
372 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
373 'links' => [
374 [
375
376 'label' => __('Set up'),
377 'link' => admin_url('admin.php?page=wpseo_search_console&tab=settings'),
378 ],
379
380 ],
381 ];
382 $tasks['setup_woo_seo_addon'] = [
383 'title' => __('The WooCommerce SEO Addon settings', 'premmerce'),
384 'description' => __('Adjust the following fields: Brand, Address, Email, Phone, Opening hours, Payment Accepted', 'premmerce'),
385 'type' => self::TYPE_DEFAULT,
386 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woo-seo-addon'],
387 'links' => [
388 [
389 'label' => __('Set up'),
390 'link' => admin_url('admin.php?page=premmerce_seo'),
391 ],
392 [
393 'label' => __('Details', 'premmerce'),
394 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#seo_addon', 'premmerce'),
395 ],
396 ],
397 ];
398 $tasks['ga_account'] = [
399 'title' => __('The Google Analytics Account settings', 'premmerce'),
400 'description' => __('Get registered in Google Analytics and make all the necessary settings in your Google Analytics Account.', 'premmerce'),
401 'type' => self::TYPE_DEFAULT,
402 'links' => [
403 [
404 'label' => __('Details', 'premmerce'),
405 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/#google_settings', 'premmerce'),
406 ],
407 ],
408 ];
409 $tasks['setup_gadash_auth'] = [
410 'title' => __('Authorising the Google Analytics Dashboard for WP', 'premmerce'),
411 'description' => __('Get authozised in order to use all pluging settings available.', 'premmerce'),
412 'type' => self::TYPE_DEFAULT,
413 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp'],
414 'links' => [
415 [
416 'label' => __('Set up', 'premmerce'),
417 'link' => admin_url('admin.php?page=gadash_settings'),
418 ],
419 [
420 'label' => __('Details', 'premmerce'),
421 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/#gadwp', 'premmerce'),
422 ],
423 ],
424 ];
425 $tasks['ga_ecomerce_tracking'] = [
426 'title' => __('Enabling the Ecommerce Tracking: Enhanced Ecommerce Plugin', 'premmerce'),
427 'description' => __('Go to Integration Tab and select in the "Ecommerce Tracking" field "Enhanced Ecommerce Plugin" option.', 'premmerce'),
428 'type' => self::TYPE_DEFAULT,
429 'depends' => [
430 self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp',
431 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
432 ],
433
434 'links' => [
435 [
436 'label' => __('Enable', 'premmerce'),
437 'link' => admin_url('admin.php?page=gadash_tracking_settings#top#gadwp-integration'),
438 ],
439 [
440 'label' => __('Details', 'premmerce'),
441 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/#enhanced', 'premmerce'),
442 ],
443 ],
444 ];
445 $tasks['setup_woo_ga'] = [
446 'title' => __('WooCommerce Google Analytics Integration Plugin settings', 'premmerce'),
447 'description' => __('Enter your Google Analytics ID, Enable Standard Tracking - uncheck, "Display Advertising" Support - uncheck, Use Enhanced Link Attribution - uncheck, Enable Universal Analytics - check, Anonymize IP addresses - check, Track 404 (Not found) Errors - check, Purchase Transactions - check, Add to Cart Events - check, Enable Enhanced eCommerce - check and all other checkboxes, that appered after Enable Enhanced eCommerce - check too.', 'premmerce'),
448 'depends' => [
449 self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp',
450 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
451
452 ],
453 'type' => self::TYPE_DEFAULT,
454 'links' => [
455 [
456 'label' => __('Set up'),
457 'link' => admin_url('admin.php?page=wc-settings&tab=integration'),
458 ],
459 [
460 'label' => __('Details'),
461 'link' => __('https://premmerce.com/woocommerce-google-analytics-integration-plugins/#woocommerce', 'premmerce'),
462 ],
463 ],
464 ];
465 $tasks['select_theme'] = [
466 'title' => __('Selecting and setting up a theme', 'premmerce'),
467 'description' => __('Select a new theme or use Storefront by default. ', 'premmerce'),
468 'type' => self::TYPE_DEFAULT,
469 'links' => [
470 [
471 'label' => __('Select', 'premmerce'),
472 'link' => admin_url('themes.php'),
473 ],
474 [
475 'label' => __('Details', 'premmerce'),
476 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#install_theme', 'premmerce'),
477 ],
478 ],
479 ];
480 $tasks['customize_theme'] = [
481 'title' => __('Customise all elements of your store by using the customiser.', 'premmerce'),
482 'description' => __('Customise the selected theme to your needs', 'premmerce'),
483 'type' => self::TYPE_DEFAULT,
484 'links' => [
485 [
486 'label' => __('Customize', 'premmerce'),
487 'link' => admin_url('customize.php'),
488 ],
489 [
490 'label' => __('Details', 'premmerce'),
491 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#customizer', 'premmerce'),
492 ],
493 ],
494 ];
495
496 $tasks['setup_menu_basic'] = [
497 'title' => __('The basic menu settings', 'premmerce'),
498 'description' => __('Create a new menu with the menu points that your store needed and then assign it to one of the menu location that your theme supports.', 'premmerce'),
499 'type' => self::TYPE_DEFAULT,
500 'links' => [
501 [
502 'label' => __('Set up', 'premmerce'),
503 'link' => admin_url('nav-menus.php'),
504 ],
505 ],
506 ];
507 $tasks['setup_home_page'] = [
508 'title' => __('The Homepage settings', 'premmerce'),
509 'description' => __('Make all SEO settings for the Front Page (Homepage) with the help of Yoast SEO Meta Tags and change description if you need it.', 'premmerce'),
510 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
511 'type' => self::TYPE_DEFAULT,
512 'links' => [
513 [
514 'label' => __('Set up'),
515 'link' => admin_url('edit.php?post_type=page'),
516 ],
517 [
518 'label' => __('Details', 'premmerce'),
519 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#front_page', 'premmerce'),
520 ],
521 ],
522 ];
523 $tasks['setup_shop_page'] = [
524 'title' => __('Shop Page SEO Settings', 'premmerce'),
525 'description' => __('Make all SEO settings for the Shop Page with the help of Yoast SEO Meta Tags or adjust the canonical URL to the home page.', 'premmerce'),
526 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'],
527 'type' => self::TYPE_DEFAULT,
528 'links' => [
529 [
530 'label' => __('Set up'),
531 'link' => admin_url('edit.php?post_type=page'),
532 ],
533 [
534 'label' => __('Details', 'premmerce'),
535 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#shop_page', 'premmerce'),
536 ],
537 ],
538 ];
539
540 $tasks['setup_pages_noindex'] = [
541 'title' => __('NoIndex on Cart, Checkout, My Account pages', 'premmerce'),
542 'description' => __('Add NoIndex to this pages with the help of Yoast SEO, bacause they don\'t need indexation.', 'premmerce'),
543 'type' => self::TYPE_DEFAULT,
544 'depends' => [
545 self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo',
546 self::MAGIC_INSTALL_PLUGIN . 'woocommerce',
547 ],
548 'links' => [
549 [
550 'label' => __('Set up'),
551 'link' => admin_url('edit.php?post_type=page'),
552 ],
553 [
554 'label' => __('Details', 'premmerce'),
555 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#other_pages_settings', 'premmerce'),
556 ],
557 ],
558 ];
559 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'contact-form-7' ] = [
560 'title' => __('Contact Form 7 Installation', 'premmerce'),
561 'description' => __('It\'s used to display the online feedback form on the Contact page.', 'premmerce'),
562 'type' => self::TYPE_AUTO,
563 ];
564
565 $tasks['setup_cf7_shortcode'] = [
566 'title' => __('Placement of the Contact Form 7 shortcode on the Contact page.', 'premmerce'),
567 'description' => __('You can add Contact Form 7 shortcode to any page you need, but we recommend that you use it for Contact Page, that you have created earlier.', 'premmerce'),
568 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'contact-form-7'],
569 'type' => self::TYPE_DEFAULT,
570 'links' => [
571 [
572 'label' => __('Set up'),
573 'link' => admin_url('edit.php?post_type=page'),
574 ],
575 [
576 'label' => __('Details', 'premmerce'),
577 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#contact', 'premmerce'),
578 ],
579 ],
580 ];
581
582
583 $tasks['create_categories'] = [
584 'title' => __('Creating the necessary product categories', 'premmerce'),
585 'description' => __('It\'s recommended that you add all necessary categories for a better catalog navigation.', 'premmerce'),
586 'type' => self::TYPE_DEFAULT,
587 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
588 'links' => [
589 [
590
591 'label' => __('Create', 'premmerce'),
592 'link' => admin_url('edit-tags.php?taxonomy=product_cat&post_type=product'),
593 ],
594 [
595 'label' => __('Details', 'premmerce'),
596 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#product_categories', 'premmerce'),
597 ],
598 ],
599 ];
600 $tasks['create_attributes'] = [
601 'title' => __('Creating the product attributes', 'premmerce'),
602 'description' => __('Product attributes are needed for the flexible filtering and extended search of products by the set attributes.', 'premmerce'),
603 'type' => self::TYPE_DEFAULT,
604 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
605 'links' => [
606 [
607
608 'label' => __('Create'),
609 'link' => admin_url('edit.php?post_type=product&page=product_attributes'),
610 ],
611 [
612 'label' => __('Details', 'premmerce'),
613 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#product_att', 'premmerce'),
614 ],
615 ],
616 ];
617
618 $tasks['create_products'] = [
619 'title' => __('Adding products and deleting the sample data', 'premmerce'),
620 'description' => __('The store products are managed from the Product page. If you are using the sample data - it\'s time to delete it and add your own products.', 'premmerce'),
621 'type' => self::TYPE_DEFAULT,
622 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
623 'links' => [
624 [
625
626 'label' => __('Create'),
627 'link' => admin_url('edit.php?post_type=product'),
628 ],
629 [
630 'label' => __('Details', 'premmerce'),
631 'link' => __('https://premmerce.com/complete-woocommerce-tutorial-step-step/#products', 'premmerce'),
632 ],
633 ],
634 ];
635
636 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'premmerce-search' ] = [
637 'title' => __('Premmerce Search Installation', 'premmerce'),
638 'description' => __('This plugin performs two functions at a time: it replaces the standart WooCommerce search for the Live Search and searches for the items which have been misspelled.', 'premmerce'),
639 'type' => self::TYPE_AUTO,
640 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
641 'links' => [
642 [
643 'label' => __('Details', 'premmerce'),
644 'link' => __('https://premmerce.com/woocommerce-product-search/', 'premmerce'),
645 ],
646 ],
647 ];
648
649 $tasks['setup_premmerce_search_indexes'] = [
650 'title' => __('Update Premmerce Search Indexed', 'premmerce'),
651 'description' => __('We recommend that you update the indexes after any products list changes to improve search results.', 'premmerce'),
652 'type' => self::TYPE_DEFAULT,
653 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'premmerce-search'],
654 'links' => [
655 [
656 'label' => __('Update', 'premmerce'),
657 'link' => admin_url('admin.php?page=premmerce-search-admin'),
658 ],
659 [
660 'label' => __('Details', 'premmerce'),
661 'link' => __('https://premmerce.com/woocommerce-product-search/#settings', 'premmerce'),
662 ],
663 ],
664 ];
665
666 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter' ] = [
667 'title' => __('Premmerce WooCommerce Product Filter Installation', 'premmerce'),
668 'description' => __('This plugin upgrades the standart WooCommerce filtering to a new level and adds some new options such as search results filtering, etc. ', 'premmerce'),
669 'type' => self::TYPE_AUTO,
670 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
671 'links' => [
672 [
673 'label' => __('Details', 'premmerce'),
674 'link' => __('https://premmerce.com/woocommerce-product-filter/', 'premmerce'),
675 ],
676 ],
677 ];
678
679 $tasks['setup_premmerce-woocommerce-product-filter'] = [
680 'title' => __('Make all you need to make filters visible', 'premmerce'),
681 'description' => __('Manage Premmerce WooCommerce Product Filter Setting and set to display all attributes, you need to show in filter.', 'premmerce'),
682 'type' => self::TYPE_DEFAULT,
683 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter'],
684 'links' => [
685 [
686 'label' => __('Set up', 'premmerce'),
687 'link' => admin_url('admin.php?page=premmerce-filter-admin'),
688 ],
689 [
690 'label' => __('Details', 'premmerce'),
691 'link' => __('https://premmerce.com/woocommerce-product-filter/#managing', 'premmerce'),
692 ],
693 ],
694 ];
695
696 $tasks['setup_widget_premmerce-woocommerce-product-filter'] = [
697 'title' => __('Add Premmerce Filter Widget to Sidebar', 'premmerce'),
698 'description' => __('The filter for all product attributes, which can be selected in the settings, is added to the store page with the help of Premmerce Filter widget. It is displayed as a regular WordPress widget via the Widgets page in the admin menu.', 'premmerce'),
699 'type' => self::TYPE_DEFAULT,
700 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter'],
701 'links' => [
702 [
703 'label' => __('Set up', 'premmerce'),
704 'link' => admin_url('widgets.php'),
705 ],
706 [
707 'label' => __('Details', 'premmerce'),
708 'link' => __('https://premmerce.com/woocommerce-product-filter/#displaying', 'premmerce'),
709 ],
710 ],
711 ];
712
713 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-brands' ] = [
714 'title' => __('Premmerce WooCommerce Brands Installation', 'premmerce'),
715 'description' => __('This plugin is highly convenient if your products\' using different brands, so it will improve your site usability and product search.', 'premmerce'),
716 'type' => self::TYPE_AUTO,
717 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
718 'links' => [
719 [
720 'label' => __('Details', 'premmerce'),
721 'link' => __('https://premmerce.com/premmerce-woocommerce-brands-free-plugin/', 'premmerce'),
722 ],
723 ],
724
725 ];
726
727 $tasks['setup_brands_premmerce-woocommerce-product-filter'] = [
728 'title' => __('Display Brands on Product Filter', 'premmerce'),
729 'description' => __('Set brands to display on Attribute tab on the WooCommerce filter and then set to display all brands that you need on your store filter.', 'premmerce'),
730 'type' => self::TYPE_DEFAULT,
731 'depends' => [
732 self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-brands',
733 self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter',
734 ],
735 'links' => [
736 [
737 'label' => __('Set up', 'premmerce'),
738 'link' => admin_url('admin.php?page=premmerce-filter-admin&tab=brands'),
739 ],
740 [
741 'label' => __('Details', 'premmerce'),
742 'link' => __('https://premmerce.com/woocommerce-product-filter/#integration', 'premmerce'),
743 ],
744 ],
745 ];
746
747 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woo-customers-manager' ] = [
748 'title' => __('WooCommerce Customers Manager Installation', 'premmerce'),
749 'description' => __('This plugin contributes to the informative aspect of customer management, such filtering users by the registration date, the amount of money spent in the store, displays the order history on the customer page.', 'premmerce'),
750 'type' => self::TYPE_AUTO,
751 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
752 'links' => [
753 [
754 'label' => __('Details', 'premmerce'),
755 'link' => __('https://premmerce.com/woocommerce-customers-manager/', 'premmerce'),
756 ],
757 ],
758
759 ];
760 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-toolkit' ] = [
761 'title' => __('Premmerce WooCommerce Toolkit Installation', 'premmerce'),
762 'description' => __('This is a cross-functional set of extensions and addons for WooCommerce which suggests all the necessary tools for the effective online business management. These features are not available in the basic WooCommerce toolkit.', 'premmerce'),
763 'type' => self::TYPE_AUTO,
764 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
765 'links' => [
766 [
767 'label' => __('Details', 'premmerce'),
768 'link' => __('https://premmerce.com/woocommerce-toolkit-catalog-mode-product-video/', 'premmerce'),
769 ],
770 ],
771 ];
772 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'premmerce-user-roles' ] = [
773 'title' => __('Premmerce User Roles Plugin Installation', 'premmerce'),
774 'description' => __('The Premmerce User Roles Plugin would help you to create the new groups of users in a way that best suits your business model.', 'premmerce'),
775 'type' => self::TYPE_AUTO,
776 'links' => [
777 [
778 'label' => __('Details', 'premmerce'),
779 'link' => __('https://premmerce.com/wordpress-custom-user-roles/', 'premmerce'),
780 ],
781 ],
782 ];
783 $tasks['rate_us'] = [
784 'title' => __('Please Rate Us', 'premmerce'),
785 'description' => __('If you like our wizard and it has really helped you to make a full store setup, please rate us on WordPress.org directory', 'premmerce'),
786 'type' => self::TYPE_DEFAULT,
787 'links' => [
788 [
789 'label' => __('Rate Us', 'premmerce'),
790 'link' => __('https://wordpress.org/plugins/premmerce/#reviews', 'premmerce'),
791 ],
792 ],
793 ];
794
795 return $tasks;
796 }
797
798 public static function getPremium(){
799 $tasks = [];
800
801 $tasks['setup_eccommerce-menu'] = [
802 'title' => __('Install and Customize E-commerce Interface', 'premmerce'),
803 'description' => __('This feature will change you current WordPress interface to new more convenient e-commerce view', 'premmerce'),
804 'depends' => [self::MAGIC_INSTALL_PLUGIN . 'woocommerce'],
805 'type' => self::TYPE_AUTO,
806 'actions' => [
807 [
808 'label' => __('Set up', 'premmerce'),
809 'data' => [
810 'handler' => 'premmerce.plugins',
811 'action' => 'enable_ecommerce_menu',
812 ],
813 ],
814 ],
815 'state_callback' => function(PluginApi $api){
816 return $api->isActivePlugin('admin-menu-editor')? self::STATE_CHECKED : self::STATE_DEFAULT;
817 },
818 ];
819
820 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wp-rocket' ] = [
821 'title' => __('Install and Setup Cache', 'premmerce'),
822 'description' => __('This feature will install cache system based on WP Rocket on your store and setup the best setting to improve total site speed of your WooCommerce store.', 'premmerce'),
823 'type' => self::TYPE_AUTO,
824 ];
825
826 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wp-all-import-pro' ] = [
827 'title' => __('Install WP Import', 'premmerce'),
828 'description' => __('With this plugin you will be able to import data to your store in much more simpler way with a lot of new possibilities.', 'premmerce'),
829 'type' => self::TYPE_AUTO,
830 ];
831
832 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wpai-woocommerce-add-on' ] = [
833 'title' => __('Install WP Import for WooCommerce', 'premmerce'),
834 'description' => __('This addon gives you possibility to import all you need data to your WooCommerce Store.', 'premmerce'),
835 'type' => self::TYPE_AUTO,
836 'depends' => [],
837 ];
838
839 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wp-all-export-pro' ] = [
840 'title' => __('Install WP Export', 'premmerce'),
841 'description' => __('This plugin gives you possibility to export all data from your store on WooCommerce with a lot of settings and export formats.', 'premmerce'),
842 'type' => self::TYPE_AUTO,
843 ];
844
845 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'sitepress-multilingual-cms' ] = [
846 'title' => __('Install WPML Multilingual CMS', 'premmerce'),
847 'description' => __('This plugin gives you possibility to translete your WordPress site to different languages and make you store multilanguage.', 'premmerce'),
848 'type' => self::TYPE_AUTO,
849 'depends' => [],
850 ];
851
852 $tasks['setup_wpml_license'] = [
853 'title' => __('Install WPML license key', 'premmerce'),
854 'description' => __('Before installing WPML license key, you must to write to our support team for instructions and we will generate it for you.', 'premmerce'),
855 'type' => self::TYPE_DEFAULT,
856 'depends' => [],
857 ];
858
859 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wpml-media-translation' ] = [
860 'title' => __('Install WPML Media Translation', 'premmerce'),
861 'description' => __('Its essential plugin to provide possibility to translate WooCommerce.', 'premmerce'),
862 'type' => self::TYPE_AUTO,
863 'depends' => [],
864 ];
865
866 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wpml-media-translation' ] = [
867 'title' => __('Install WPML Translation Management', 'premmerce'),
868 'description' => __('Its essential plugin to provide possibility to translate WooCommerce.', 'premmerce'),
869 'type' => self::TYPE_AUTO,
870 'depends' => [],
871 ];
872
873 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wpml-string-translation' ] = [
874 'title' => __('Install WPML String Translation', 'premmerce'),
875 'description' => __('Its essential plugin to provide possibility to translate WooCommerce.', 'premmerce'),
876 'type' => self::TYPE_AUTO,
877 'depends' => [],
878 ];
879
880 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'woocommerce-multilingual' ] = [
881 'title' => __('Install WooCommerce Multilingual', 'premmerce'),
882 'description' => __('This plugin you possibility to translete your WooCommerce store to different languages and make you store multilanguage.', 'premmerce'),
883 'type' => self::TYPE_AUTO,
884 'depends' => [],
885 ];
886
887 $tasks[ self::MAGIC_INSTALL_PLUGIN . 'wpml-all-import' ] = [
888 'title' => __('Install WPML All Import', 'premmerce'),
889 'description' => __('This plugin gives you possibility to import your store data in different languages.', 'premmerce'),
890 'type' => self::TYPE_AUTO,
891 'depends' => [],
892 ];
893
894 $tasks['setup_wpml_multi_currency'] = [
895 'title' => __('Set up Multicarrency with WPML', 'premmerce'),
896 'description' => __('If your store uses more then one currency for your customers, you can install additional currency with this settings.', 'premmerce'),
897 'type' => self::TYPE_DEFAULT,
898 'depends' => [],
899 'links' => [
900 [
901 'label' => __('Set up', 'premmerce'),
902 'link' => admin_url(''),
903 ],
904 ],
905 ];
906
907 $tasks['install_woo_currency_switcher'] = [
908 'title' => __('Install WooCommerce Currency switcher', 'premmerce'),
909 'description' => __('Its alternative way to make your store multicurrency if you dont want to have additionally multilanguage option on your store.', 'premmerce'),
910 'type' => self::TYPE_DEFAULT,
911 'depends' => [],
912 ];
913
914 $tasks['setup_woo_currency_switcher'] = [
915 'title' => __('Set up Multicarrency with WooCommerce Currency switcher', 'premmerce'),
916 'description' => __('Add additional currency and make all you need settings to make all work good.', 'premmerce'),
917 'type' => self::TYPE_DEFAULT,
918 'depends' => [],
919 'links' => [
920 [
921 'label' => __('Set up', 'premmerce'),
922 'link' => admin_url(''),
923 ],
924 ],
925 ];
926
927
928 return $tasks;
929 }
930
931 }