PluginProbe
Premmerce / 1.2
Premmerce v1.2
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.2, at src/Data/Tasks.php

723 lines 44.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Premmerce\Premmerce\Data;
4
5 use Premmerce\Premmerce\Api\PluginApi ;
6 class Tasks
7 {
8 const TYPE_DEFAULT = 'default' ;
9 const TYPE_AUTO = 'auto' ;
10 const TYPE_PREMIUM = 'premium' ;
11 const STATE_CHECKED = 'checked' ;
12 const STATE_SKIPPED = 'skipped' ;
13 const STATE_DEFAULT = 'todo' ;
14 const MAGIC_INSTALL_PLUGIN = 'install_plugin_' ;
15 const MAGIC_INSTALL_THEME = 'install_theme_' ;
16 public static function getAll()
17 {
18 $tasks = self::getFree();
19 return $tasks;
20 }
21
22 /**
23 * @return array
24 */
25 private static function getFree()
26 {
27 $tasks = [];
28 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woocommerce'] = [
29 'title' => __( 'WooCommerce Installation', 'premmerce' ),
30 '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' ),
31 'type' => self::TYPE_AUTO,
32 'links' => [ [
33 'label' => __( 'Details', 'premmerce' ),
34 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#wooinstall', 'premmerce' ),
35 ] ],
36 ];
37 $tasks['create_wordpress_basic_pages'] = [
38 'title' => __( 'Creating the basic default WordPress pages', 'premmerce' ),
39 'description' => __( 'In order to proceed with further interface settings, the Front Page, Blog and Contact pages have to be created.', 'premmerce' ),
40 'type' => self::TYPE_DEFAULT,
41 'links' => [ [
42 'label' => __( 'Create', 'premmerce' ),
43 'link' => admin_url( 'edit.php?post_type=page' ),
44 ], [
45 'label' => __( 'Details', 'premmerce' ),
46 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#hpsett', 'premmerce' ),
47 ] ],
48 ];
49 $tasks['create_woocommerce_default_pages'] = [
50 'title' => __( 'Creating the WooCommerce default pages', 'premmerce' ),
51 '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' ),
52 'type' => self::TYPE_DEFAULT,
53 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
54 'links' => [ [
55 'label' => __( 'Create', 'premmerce' ),
56 'link' => admin_url( 'admin.php?page=wc-status&tab=tools' ),
57 ] ],
58 ];
59 $tasks[self::MAGIC_INSTALL_THEME . 'storefront'] = [
60 'title' => __( 'Storefront, the basic WooCommerce theme installation', 'premmerce' ),
61 'description' => __( 'For a better visualization set Storefront, the bulletproof theme created by the WordPress core developers.', 'premmerce' ),
62 'type' => self::TYPE_AUTO,
63 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
64 ];
65 $tasks[self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo'] = [
66 'title' => __( 'Yoast SEO Installation', 'premmerce' ),
67 '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' ),
68 'type' => self::TYPE_AUTO,
69 ];
70 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woo-seo-addon'] = [
71 'title' => __( 'WooCommerce SEO Addon Installation', 'premmerce' ),
72 'description' => __( 'This plugin provides additional SEO capabilities that are not available in the basic Yoast SEO.', 'premmerce' ),
73 'type' => self::TYPE_AUTO,
74 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce', self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
75 'links' => [ [
76 'label' => __( 'Details', 'premmerce' ),
77 'link' => __( 'https://premmerce.com/woocommerce-seo-addon-yoast/', 'premmerce' ),
78 ] ],
79 ];
80 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woo-permalink-manager'] = [
81 'title' => __( 'WooCommerce Permalink Manager Installation', 'premmerce' ),
82 'description' => __( 'This plugin is used for your store\'s URL settings fine-tuning.', 'premmerce' ),
83 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
84 'type' => self::TYPE_AUTO,
85 'links' => [ [
86 'label' => __( 'Details', 'premmerce' ),
87 'link' => __( 'https://premmerce.com/woocommerce-permalink-manager-remove-shop-product-product-category-url/', 'premmerce' ),
88 ] ],
89 ];
90 $tasks[self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp'] = [
91 'title' => __( 'Google Analytics Dashboard Installation for WordPress', 'premmerce' ),
92 'description' => __( 'Basic Google Analytics settings and interactive widget for Dashboard.', 'premmerce' ),
93 'type' => self::TYPE_AUTO,
94 'links' => [ [
95 'label' => __( 'Details', 'premmerce' ),
96 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/', 'premmerce' ),
97 ] ],
98 ];
99 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woocommerce-google-analytics-integration'] = [
100 'title' => __( 'WooCommerce Google Analytics Integration Plugin Installation', 'premmerce' ),
101 'description' => __( 'Additional plugin for sending ecommerce data to Google Analytics account.', 'premmerce' ),
102 'type' => self::TYPE_AUTO,
103 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce', self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp' ],
104 'links' => [ [
105 'label' => __( 'Details', 'premmerce' ),
106 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/', 'premmerce' ),
107 ] ],
108 ];
109 $tasks['ssl_certificate'] = [
110 'title' => __( 'SSL Certificate Purchase', 'premmerce' ),
111 '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' ),
112 'type' => self::TYPE_DEFAULT,
113 ];
114 $tasks['setup_options_general'] = [
115 'title' => __( 'WordPress Basic Settings', 'premmerce' ),
116 'description' => __( 'Adjust the following fields: Site Title, Tagline, WordPress Address (URL), Site Address (URL), Email Address, Site Language, Timezone', 'premmerce' ),
117 'type' => self::TYPE_DEFAULT,
118 'links' => [ [
119 'label' => __( 'Set up', 'premmerce' ),
120 'link' => admin_url( 'options-general.php' ),
121 ], [
122 'label' => __( 'Details', 'premmerce' ),
123 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#basic_wordpress_settings', 'premmerce' ),
124 ] ],
125 ];
126 $tasks['setup_reading'] = [
127 'title' => __( 'Reading Settings', 'premmerce' ),
128 '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' ),
129 'type' => self::TYPE_DEFAULT,
130 'links' => [ [
131 'label' => __( 'Set up', 'premmerce' ),
132 'link' => admin_url( 'options-reading.php' ),
133 ], [
134 'label' => __( 'Details', 'premmerce' ),
135 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#readsett', 'premmerce' ),
136 ] ],
137 ];
138 $tasks['setup_permalinks'] = [
139 'title' => __( 'Permalinks Settings', 'premmerce' ),
140 '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' ),
141 'type' => self::TYPE_DEFAULT,
142 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woo-permalink-manager' ],
143 'links' => [ [
144 'label' => __( 'Set up', 'premmerce' ),
145 'link' => admin_url( 'admin.php?page=premmerce-url-manager-admin' ),
146 ], [
147 'label' => __( 'Details', 'premmerce' ),
148 'link' => 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#permalinks_settings',
149 ] ],
150 ];
151 $tasks['setup_woocommerce_base'] = [
152 'title' => __( 'WooCommerce Basic Settings', 'premmerce' ),
153 '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' ),
154 'type' => self::TYPE_DEFAULT,
155 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
156 'links' => [ [
157 'label' => __( 'Set up', 'premmerce' ),
158 'link' => admin_url( 'admin.php?page=wc-settings' ),
159 ], [
160 'label' => __( 'Details', 'premmerce' ),
161 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#basic_woocommerce_settings', 'premmerce' ),
162 ] ],
163 ];
164 $tasks['setup_geolocation'] = [
165 'title' => __( 'Geolocation Settings', 'premmerce' ),
166 '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' ),
167 'type' => self::TYPE_DEFAULT,
168 'links' => [ [
169 'label' => __( 'Download', 'premmerce' ),
170 'link' => __( 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz', 'premmerce' ),
171 ], [
172 'label' => __( 'Details', 'premmerce' ),
173 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#geoip', 'premmerce' ),
174 ] ],
175 ];
176 $tasks['setup_shipping'] = [
177 'title' => __( 'The Shipping Tab Settings', 'premmerce' ),
178 'description' => __( 'On this tab you can make shipping options and shipping zones settings.', 'premmerce' ),
179 'type' => self::TYPE_DEFAULT,
180 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
181 'links' => [ [
182 'label' => __( 'Set up', 'premmerce' ),
183 'link' => admin_url( 'admin.php?page=wc-settings&tab=shipping' ),
184 ], [
185 'label' => __( 'Details', 'premmerce' ),
186 'link' => __( 'https://premmerce.com/woocommerce-shipping-guide-zones-classes-calculator-labels/', 'premmerce' ),
187 ] ],
188 ];
189 $tasks['setup_checkout'] = [
190 'title' => __( 'The Checkout Tab Settings', 'premmerce' ),
191 'description' => __( 'Here you can setup your checkout process and select all payment options that would be used in the store.', 'premmerce' ),
192 'type' => self::TYPE_DEFAULT,
193 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
194 'links' => [ [
195 'label' => __( 'Set up', 'premmerce' ),
196 'link' => admin_url( 'admin.php?page=wc-settings&tab=checkout' ),
197 ], [
198 'label' => __( 'Details', 'premmerce' ),
199 'link' => __( 'https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/sell-products/core-payment-options/', 'premmerce' ),
200 ] ],
201 ];
202 $tasks['setup_emails'] = [
203 'title' => __( 'The Emails Tab Settings', 'premmerce' ),
204 'description' => __( 'Adjust the following fields: "From" name, "From" address, Header image, Footer text.', 'premmerce' ),
205 'type' => self::TYPE_DEFAULT,
206 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
207 'links' => [ [
208 'label' => __( 'Set up', 'premmerce' ),
209 'link' => admin_url( 'admin.php?page=wc-settings&tab=email' ),
210 ], [
211 'label' => __( 'Details', 'premmerce' ),
212 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#emails_tab', 'premmerce' ),
213 ] ],
214 ];
215 $tasks['setup_yoast_advanced'] = [
216 'title' => __( 'Toggle the Advanced Settings Pages switch for Yoast SEO', 'premmerce' ),
217 'description' => __( 'This is required to get access to all Yoast settings', 'premmerce' ),
218 'type' => self::TYPE_DEFAULT,
219 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
220 'links' => [ [
221 'label' => __( 'Set up' ),
222 'link' => admin_url( 'admin.php?page=wpseo_dashboard#top#features' ),
223 ], [
224 'label' => __( 'Details', 'premmerce' ),
225 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#toggle_yoast', 'premmerce' ),
226 ] ],
227 ];
228 $tasks['setup_yoast_company_info'] = [
229 'title' => __( 'Filling in the Company info field', 'premmerce' ),
230 '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' ),
231 'type' => self::TYPE_DEFAULT,
232 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
233 'links' => [ [
234 'label' => __( 'Set up' ),
235 'link' => admin_url( 'admin.php?page=wpseo_dashboard#top#knowledge-graph' ),
236 ], [
237 'label' => __( 'Details', 'premmerce' ),
238 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#fill_company_info', 'premmerce' ),
239 ] ],
240 ];
241 $tasks['setup_yoast_webmaster_tools'] = [
242 'title' => __( 'Adding the information to Google Webmaster Tools', 'premmerce' ),
243 'description' => __( 'It\'s important to set Google Webmaster Tools, Yandex and Bing if they are used', 'premmerce' ),
244 'type' => self::TYPE_DEFAULT,
245 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
246 'links' => [ [
247 'label' => __( 'Set up' ),
248 'link' => admin_url( 'admin.php?page=wpseo_dashboard#top#webmaster-tools' ),
249 ], [
250 'label' => __( 'Details', 'premmerce' ),
251 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#webmaster_tools', 'premmerce' ),
252 ] ],
253 ];
254 $tasks['setup_yoast_social'] = [
255 'title' => __( 'The Social page settings', 'premmerce' ),
256 'description' => __( 'On the Accounts tab fill in all information about all social networks that are used by the store.', 'premmerce' ),
257 'type' => self::TYPE_DEFAULT,
258 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
259 'links' => [ [
260 'label' => __( 'Set up' ),
261 'link' => admin_url( 'admin.php?page=wpseo_social' ),
262 ], [
263 'label' => __( 'Details', 'premmerce' ),
264 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#social_page', 'premmerce' ),
265 ] ],
266 ];
267 $tasks['setup_yoast_search_console'] = [
268 'title' => __( 'The Yoast Search Console Authorization', 'premmerce' ),
269 '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' ),
270 'type' => self::TYPE_DEFAULT,
271 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
272 'links' => [ [
273 'label' => __( 'Set up' ),
274 'link' => admin_url( 'admin.php?page=wpseo_search_console&tab=settings' ),
275 ] ],
276 ];
277 $tasks['setup_woo_seo_addon'] = [
278 'title' => __( 'The WooCommerce SEO Addon settings', 'premmerce' ),
279 'description' => __( 'Adjust the following fields: Brand, Address, Email, Phone, Opening hours, Payment Accepted', 'premmerce' ),
280 'type' => self::TYPE_DEFAULT,
281 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woo-seo-addon' ],
282 'links' => [ [
283 'label' => __( 'Set up' ),
284 'link' => admin_url( 'admin.php?page=premmerce_seo' ),
285 ], [
286 'label' => __( 'Details', 'premmerce' ),
287 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#seo_addon', 'premmerce' ),
288 ] ],
289 ];
290 $tasks['ga_account'] = [
291 'title' => __( 'The Google Analytics Account settings', 'premmerce' ),
292 'description' => __( 'Get registered in Google Analytics and make all the necessary settings in your Google Analytics Account.', 'premmerce' ),
293 'type' => self::TYPE_DEFAULT,
294 'links' => [ [
295 'label' => __( 'Details', 'premmerce' ),
296 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/#google_settings', 'premmerce' ),
297 ] ],
298 ];
299 $tasks['setup_gadash_auth'] = [
300 'title' => __( 'Authorising the Google Analytics Dashboard for WP', 'premmerce' ),
301 'description' => __( 'Get authozised in order to use all pluging settings available.', 'premmerce' ),
302 'type' => self::TYPE_DEFAULT,
303 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp' ],
304 'links' => [ [
305 'label' => __( 'Set up', 'premmerce' ),
306 'link' => admin_url( 'admin.php?page=gadash_settings' ),
307 ], [
308 'label' => __( 'Details', 'premmerce' ),
309 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/#gadwp', 'premmerce' ),
310 ] ],
311 ];
312 $tasks['ga_ecomerce_tracking'] = [
313 'title' => __( 'Enabling the Ecommerce Tracking: Enhanced Ecommerce Plugin', 'premmerce' ),
314 'description' => __( 'Go to Integration Tab and select in the "Ecommerce Tracking" field "Enhanced Ecommerce Plugin" option.', 'premmerce' ),
315 'type' => self::TYPE_DEFAULT,
316 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp', self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
317 'links' => [ [
318 'label' => __( 'Enable', 'premmerce' ),
319 'link' => admin_url( 'admin.php?page=gadash_tracking_settings#top#gadwp-integration' ),
320 ], [
321 'label' => __( 'Details', 'premmerce' ),
322 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/#enhanced', 'premmerce' ),
323 ] ],
324 ];
325 $tasks['setup_woo_ga'] = [
326 'title' => __( 'WooCommerce Google Analytics Integration Plugin settings', 'premmerce' ),
327 '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' ),
328 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'google-analytics-dashboard-for-wp', self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
329 'type' => self::TYPE_DEFAULT,
330 'links' => [ [
331 'label' => __( 'Set up' ),
332 'link' => admin_url( 'admin.php?page=wc-settings&tab=integration' ),
333 ], [
334 'label' => __( 'Details' ),
335 'link' => __( 'https://premmerce.com/woocommerce-google-analytics-integration-plugins/#woocommerce', 'premmerce' ),
336 ] ],
337 ];
338 $tasks['select_theme'] = [
339 'title' => __( 'Selecting and setting up a theme', 'premmerce' ),
340 'description' => __( 'Select a new theme or use Storefront by default. ', 'premmerce' ),
341 'type' => self::TYPE_DEFAULT,
342 'links' => [ [
343 'label' => __( 'Select', 'premmerce' ),
344 'link' => admin_url( 'themes.php' ),
345 ], [
346 'label' => __( 'Details', 'premmerce' ),
347 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#install_theme', 'premmerce' ),
348 ] ],
349 ];
350 $tasks['customize_theme'] = [
351 'title' => __( 'Customise all elements of your store by using the customiser.', 'premmerce' ),
352 'description' => __( 'Customise the selected theme to your needs', 'premmerce' ),
353 'type' => self::TYPE_DEFAULT,
354 'links' => [ [
355 'label' => __( 'Customize', 'premmerce' ),
356 'link' => admin_url( 'customize.php' ),
357 ], [
358 'label' => __( 'Details', 'premmerce' ),
359 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#customizer', 'premmerce' ),
360 ] ],
361 ];
362 $tasks['setup_menu_basic'] = [
363 'title' => __( 'The basic menu settings', 'premmerce' ),
364 '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' ),
365 'type' => self::TYPE_DEFAULT,
366 'links' => [ [
367 'label' => __( 'Set up', 'premmerce' ),
368 'link' => admin_url( 'nav-menus.php' ),
369 ] ],
370 ];
371 $tasks['setup_home_page'] = [
372 'title' => __( 'The Homepage settings', 'premmerce' ),
373 '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' ),
374 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
375 'type' => self::TYPE_DEFAULT,
376 'links' => [ [
377 'label' => __( 'Set up' ),
378 'link' => admin_url( 'edit.php?post_type=page' ),
379 ], [
380 'label' => __( 'Details', 'premmerce' ),
381 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#front_page', 'premmerce' ),
382 ] ],
383 ];
384 $tasks['setup_shop_page'] = [
385 'title' => __( 'Shop Page SEO Settings', 'premmerce' ),
386 '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' ),
387 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo' ],
388 'type' => self::TYPE_DEFAULT,
389 'links' => [ [
390 'label' => __( 'Set up' ),
391 'link' => admin_url( 'edit.php?post_type=page' ),
392 ], [
393 'label' => __( 'Details', 'premmerce' ),
394 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#shop_page', 'premmerce' ),
395 ] ],
396 ];
397 $tasks['setup_pages_noindex'] = [
398 'title' => __( 'NoIndex on Cart, Checkout, My Account pages', 'premmerce' ),
399 'description' => __( 'Add NoIndex to this pages with the help of Yoast SEO, bacause they don\'t need indexation.', 'premmerce' ),
400 'type' => self::TYPE_DEFAULT,
401 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'wordpress-seo', self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
402 'links' => [ [
403 'label' => __( 'Set up' ),
404 'link' => admin_url( 'edit.php?post_type=page' ),
405 ], [
406 'label' => __( 'Details', 'premmerce' ),
407 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#other_pages_settings', 'premmerce' ),
408 ] ],
409 ];
410 $tasks[self::MAGIC_INSTALL_PLUGIN . 'contact-form-7'] = [
411 'title' => __( 'Contact Form 7 Installation', 'premmerce' ),
412 'description' => __( 'It\'s used to display the online feedback form on the Contact page.', 'premmerce' ),
413 'type' => self::TYPE_AUTO,
414 ];
415 $tasks['setup_cf7_shortcode'] = [
416 'title' => __( 'Placement of the Contact Form 7 shortcode on the Contact page.', 'premmerce' ),
417 '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' ),
418 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'contact-form-7' ],
419 'type' => self::TYPE_DEFAULT,
420 'links' => [ [
421 'label' => __( 'Set up' ),
422 'link' => admin_url( 'edit.php?post_type=page' ),
423 ], [
424 'label' => __( 'Details', 'premmerce' ),
425 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#contact', 'premmerce' ),
426 ] ],
427 ];
428 $tasks['create_categories'] = [
429 'title' => __( 'Creating the necessary product categories', 'premmerce' ),
430 'description' => __( 'It\'s recommended that you add all necessary categories for a better catalog navigation.', 'premmerce' ),
431 'type' => self::TYPE_DEFAULT,
432 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
433 'links' => [ [
434 'label' => __( 'Create', 'premmerce' ),
435 'link' => admin_url( 'edit-tags.php?taxonomy=product_cat&post_type=product' ),
436 ], [
437 'label' => __( 'Details', 'premmerce' ),
438 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#product_categories', 'premmerce' ),
439 ] ],
440 ];
441 $tasks['create_attributes'] = [
442 'title' => __( 'Creating the product attributes', 'premmerce' ),
443 'description' => __( 'Product attributes are needed for the flexible filtering and extended search of products by the set attributes.', 'premmerce' ),
444 'type' => self::TYPE_DEFAULT,
445 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
446 'links' => [ [
447 'label' => __( 'Create' ),
448 'link' => admin_url( 'edit.php?post_type=product&page=product_attributes' ),
449 ], [
450 'label' => __( 'Details', 'premmerce' ),
451 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#product_att', 'premmerce' ),
452 ] ],
453 ];
454 $tasks['create_products'] = [
455 'title' => __( 'Adding products and deleting the sample data', 'premmerce' ),
456 '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' ),
457 'type' => self::TYPE_DEFAULT,
458 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
459 'links' => [ [
460 'label' => __( 'Create' ),
461 'link' => admin_url( 'edit.php?post_type=product' ),
462 ], [
463 'label' => __( 'Details', 'premmerce' ),
464 'link' => __( 'https://premmerce.com/complete-woocommerce-tutorial-step-step/#products', 'premmerce' ),
465 ] ],
466 ];
467 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-search'] = [
468 'title' => __( 'Premmerce Search Installation', 'premmerce' ),
469 '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' ),
470 'type' => self::TYPE_AUTO,
471 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
472 'links' => [ [
473 'label' => __( 'Details', 'premmerce' ),
474 'link' => __( 'https://premmerce.com/woocommerce-product-search/', 'premmerce' ),
475 ] ],
476 ];
477 $tasks['setup_premmerce_search_indexes'] = [
478 'title' => __( 'Update Premmerce Search Indexes', 'premmerce' ),
479 'description' => __( 'We recommend that you update the indexes after any products list changes to improve search results.', 'premmerce' ),
480 'type' => self::TYPE_DEFAULT,
481 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'premmerce-search' ],
482 'links' => [ [
483 'label' => __( 'Update', 'premmerce' ),
484 'link' => admin_url( 'admin.php?page=premmerce-search-admin' ),
485 ], [
486 'label' => __( 'Details', 'premmerce' ),
487 'link' => __( 'https://premmerce.com/woocommerce-product-search/#settings', 'premmerce' ),
488 ] ],
489 ];
490 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter'] = [
491 'title' => __( 'Premmerce WooCommerce Product Filter Installation', 'premmerce' ),
492 'description' => __( 'This plugin upgrades the standart WooCommerce filtering to a new level and adds some new options such as search results filtering, etc. ', 'premmerce' ),
493 'type' => self::TYPE_AUTO,
494 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
495 'links' => [ [
496 'label' => __( 'Details', 'premmerce' ),
497 'link' => __( 'https://premmerce.com/woocommerce-product-filter/', 'premmerce' ),
498 ] ],
499 ];
500 $tasks['setup_premmerce-woocommerce-product-filter'] = [
501 'title' => __( 'Make all you need to make filters visible', 'premmerce' ),
502 'description' => __( 'Manage Premmerce WooCommerce Product Filter Setting and set to display all attributes, you need to show in filter.', 'premmerce' ),
503 'type' => self::TYPE_DEFAULT,
504 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter' ],
505 'links' => [ [
506 'label' => __( 'Set up', 'premmerce' ),
507 'link' => admin_url( 'admin.php?page=premmerce-filter-admin' ),
508 ], [
509 'label' => __( 'Details', 'premmerce' ),
510 'link' => __( 'https://premmerce.com/woocommerce-product-filter/#managing', 'premmerce' ),
511 ] ],
512 ];
513 $tasks['setup_widget_premmerce-woocommerce-product-filter'] = [
514 'title' => __( 'Add Premmerce Filter Widget to Sidebar', 'premmerce' ),
515 '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' ),
516 'type' => self::TYPE_DEFAULT,
517 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter' ],
518 'links' => [ [
519 'label' => __( 'Set up', 'premmerce' ),
520 'link' => admin_url( 'widgets.php' ),
521 ], [
522 'label' => __( 'Details', 'premmerce' ),
523 'link' => __( 'https://premmerce.com/woocommerce-product-filter/#displaying', 'premmerce' ),
524 ] ],
525 ];
526 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-brands'] = [
527 'title' => __( 'Premmerce WooCommerce Brands Installation', 'premmerce' ),
528 'description' => __( 'This plugin is highly convenient if your products\' using different brands, so it will improve your site usability and product search.', 'premmerce' ),
529 'type' => self::TYPE_AUTO,
530 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
531 'links' => [ [
532 'label' => __( 'Details', 'premmerce' ),
533 'link' => __( 'https://premmerce.com/premmerce-woocommerce-brands-free-plugin/', 'premmerce' ),
534 ] ],
535 ];
536 $tasks['setup_brands_premmerce-woocommerce-product-filter'] = [
537 'title' => __( 'Display Brands on Product Filter', 'premmerce' ),
538 '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' ),
539 'type' => self::TYPE_DEFAULT,
540 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-brands', self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-filter' ],
541 'links' => [ [
542 'label' => __( 'Set up', 'premmerce' ),
543 'link' => admin_url( 'admin.php?page=premmerce-filter-admin&tab=brands' ),
544 ], [
545 'label' => __( 'Details', 'premmerce' ),
546 'link' => __( 'https://premmerce.com/woocommerce-product-filter/#integration', 'premmerce' ),
547 ] ],
548 ];
549 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woo-customers-manager'] = [
550 'title' => __( 'WooCommerce Customers Manager Installation', 'premmerce' ),
551 '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' ),
552 'type' => self::TYPE_AUTO,
553 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
554 'links' => [ [
555 'label' => __( 'Details', 'premmerce' ),
556 'link' => __( 'https://premmerce.com/woocommerce-customers-manager/', 'premmerce' ),
557 ] ],
558 ];
559 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-user-roles'] = [
560 'title' => __( 'Premmerce User Roles Plugin Installation', 'premmerce' ),
561 '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' ),
562 'type' => self::TYPE_AUTO,
563 'links' => [ [
564 'label' => __( 'Details', 'premmerce' ),
565 'link' => __( 'https://premmerce.com/wordpress-custom-user-roles/', 'premmerce' ),
566 ] ],
567 ];
568 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-wishlist'] = [
569 'title' => __( 'Premmerce WooCommerce Wishlist Installation', 'premmerce' ),
570 'description' => __( 'This plugin provides the possibility for your customers to create wishlists with the further possibility to share them with friends.', 'premmerce' ),
571 'type' => self::TYPE_AUTO,
572 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
573 'links' => [ [
574 'label' => __( 'Details', 'premmerce' ),
575 'link' => __( 'https://premmerce.com/woocommerce-wishlist/', 'premmerce' ),
576 ] ],
577 ];
578 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-redirect-manager'] = [
579 'title' => __( 'Premmerce WooCommerce Redirect Manager Installation', 'premmerce' ),
580 'description' => __( 'The Premmerce Redirect Manager enables you to create 301 and 302 redirects and to set up the automatic redirects for the deleted products in the WooCommerce store.', 'premmerce' ),
581 'type' => self::TYPE_AUTO,
582 'links' => [ [
583 'label' => __( 'Details', 'premmerce' ),
584 'link' => __( 'https://premmerce.com/woocommerce-redirect-manager/', 'premmerce' ),
585 ] ],
586 ];
587 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-wholesale-pricing'] = [
588 'title' => __( 'Premmerce WooCommerce Wholesale Pricing Installation', 'premmerce' ),
589 'description' => __( 'The Premmerce WooCommerce Wholesale Pricing is a plugin that allows you to add individual wholesale prices or other prices types for WooCommerce products for any customers’ roles.', 'premmerce' ),
590 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
591 'type' => self::TYPE_AUTO,
592 'links' => [ [
593 'label' => __( 'Details', 'premmerce' ),
594 'link' => __( 'https://premmerce.com/premmerce-woocommerce-wholesale-pricing/', 'premmerce' ),
595 ] ],
596 ];
597 $tasks[self::MAGIC_INSTALL_PLUGIN . 'premmerce-woocommerce-product-bundles'] = [
598 'title' => __( 'Premmerce Woocommerce Product Bundles Installation', 'premmerce' ),
599 'description' => __( 'This plugin is used to add bundles of products with discounts and to display them as a list on a product page.', 'premmerce' ),
600 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
601 'type' => self::TYPE_AUTO,
602 'links' => [ [
603 'label' => __( 'Details', 'premmerce' ),
604 'link' => __( 'https://premmerce.com/woocommerce-product-bundles/', 'premmerce' ),
605 ] ],
606 ];
607 $tasks['enable_transliteration'] = [
608 'title' => __( 'Turn on the transliteration settings if your store does not use English.', 'premmerce' ),
609 'description' => __( 'It\'s recommended that you use transliteration in your URLs to avoid any further errors.', 'premmerce' ),
610 'type' => self::TYPE_DEFAULT,
611 'links' => [ [
612 'label' => __( 'Turn on', 'premmerce' ),
613 'link' => admin_url( 'admin.php?page=premmerce&tab=settings' ),
614 ] ],
615 ];
616 $tasks['rate_us'] = [
617 'title' => __( 'Please Rate Us', 'premmerce' ),
618 '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' ),
619 'type' => self::TYPE_DEFAULT,
620 'links' => [ [
621 'label' => __( 'Rate Us', 'premmerce' ),
622 'link' => __( 'https://wordpress.org/plugins/premmerce/#reviews', 'premmerce' ),
623 ] ],
624 ];
625 return $tasks;
626 }
627
628 public static function getPremium()
629 {
630 $tasks = [];
631 $tasks['setup_eccommerce-menu'] = [
632 'title' => __( 'Install and Customize E-commerce Interface', 'premmerce' ),
633 'description' => __( 'This feature will change you current WordPress interface to the new more convenient e-commerce view', 'premmerce' ),
634 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce' ],
635 'type' => self::TYPE_AUTO,
636 'actions' => [ [
637 'label' => __( 'Set up', 'premmerce' ),
638 'data' => [
639 'handler' => 'premmerce.plugins',
640 'action' => 'enable_ecommerce_menu',
641 ],
642 ] ],
643 'state_callback' => function ( PluginApi $api ) {
644 return ( $api->isActivePlugin( 'admin-menu-editor' ) ? self::STATE_CHECKED : self::STATE_DEFAULT );
645 },
646 ];
647 $tasks[self::MAGIC_INSTALL_PLUGIN . 'wp-rocket'] = [
648 'title' => __( 'Install and Setup Cache', 'premmerce' ),
649 'description' => __( 'This feature will install the cache system based on WP Rocket on your store and setup the best settings to improve total speed of your WooCommerce store', 'premmerce' ),
650 'type' => self::TYPE_AUTO,
651 ];
652 $tasks[self::MAGIC_INSTALL_PLUGIN . 'wp-all-import-pro'] = [
653 'title' => __( 'Install WP Import', 'premmerce' ),
654 'description' => __( 'With this plugin you will be able to import data to your store in a much more simple way with a lot of new possibilities.', 'premmerce' ),
655 'type' => self::TYPE_AUTO,
656 ];
657 $tasks[self::MAGIC_INSTALL_PLUGIN . 'wpai-woocommerce-add-on'] = [
658 'title' => __( 'Install WP Import for WooCommerce', 'premmerce' ),
659 'description' => __( 'This addon gives you the possibility to import all necessary data to your WooCommerce Store.', 'premmerce' ),
660 'type' => self::TYPE_AUTO,
661 'depends' => [],
662 ];
663 $tasks[self::MAGIC_INSTALL_PLUGIN . 'wp-all-export-pro'] = [
664 'title' => __( 'Install WP Export', 'premmerce' ),
665 'description' => __( 'This plugin gives you the possibility to export all necessary data from your store on WooCommerce with a lot of settings and export formats.', 'premmerce' ),
666 'type' => self::TYPE_AUTO,
667 ];
668 $tasks[self::MAGIC_INSTALL_PLUGIN . 'sitepress-multilingual-cms'] = [
669 'title' => __( 'Install WPML Multilingual CMS', 'premmerce' ),
670 'description' => __( 'This plugin gives you the possibility to translete your WordPress site to different languages and make you store multilingual.', 'premmerce' ),
671 'type' => self::TYPE_AUTO,
672 'depends' => [],
673 ];
674 $tasks['setup_wpml_license'] = [
675 'title' => __( 'Install WPML license key', 'premmerce' ),
676 'description' => __( 'Before installing the WPML license key, you must request your support team the instructions and they will generate them for you.', 'premmerce' ),
677 'type' => self::TYPE_DEFAULT,
678 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'sitepress-multilingual-cms' ],
679 'links' => [ [
680 'label' => __( 'Install', 'premmerce' ),
681 'link' => admin_url( 'plugin-install.php?tab=commercial' ),
682 ] ],
683 ];
684 $tasks['install_wmpl_plugins'] = [
685 'title' => __( 'Install WPML plugins: Media Translation, Translation Management, String Translation, WooCommerce Multilingual', 'premmerce' ),
686 'description' => __( 'This plugins are essential for the translation of your WooCommerce store.', 'premmerce' ),
687 'type' => self::TYPE_DEFAULT,
688 'depends' => [ 'setup_wpml_license' ],
689 'links' => [ [
690 'label' => __( 'Install', 'premmerce' ),
691 'link' => admin_url( 'plugin-install.php?tab=commercial' ),
692 ] ],
693 ];
694 $tasks['setup_wpml_multi_currency'] = [
695 'title' => __( 'Set up Multicarrency with WPML', 'premmerce' ),
696 'description' => __( 'If your store uses more than one currency for your customers, you can install the additional currency with these settings.', 'premmerce' ),
697 'type' => self::TYPE_DEFAULT,
698 'depends' => [ 'install_wmpl_plugins' ],
699 'links' => [ [
700 'label' => __( 'Set up', 'premmerce' ),
701 'link' => admin_url( 'admin.php?page=wpml-wcml&tab=multi-currency' ),
702 ] ],
703 ];
704 $tasks[self::MAGIC_INSTALL_PLUGIN . 'woocommerce-currency-switcher'] = [
705 'title' => __( 'Install WooCommerce Currency switcher', 'premmerce' ),
706 'description' => __( 'This is an alternative way to add multicurrency to your store in case the multilanguage option is not necessary.', 'premmerce' ),
707 'type' => self::TYPE_AUTO,
708 'depends' => [],
709 ];
710 $tasks['setup_woo_currency_switcher'] = [
711 'title' => __( 'Set up Multicarrency with WooCommerce Currency switcher', 'premmerce' ),
712 'description' => __( 'Add additional currency and make all necessary settings to ensure the smooth run of your store.', 'premmerce' ),
713 'type' => self::TYPE_DEFAULT,
714 'depends' => [ self::MAGIC_INSTALL_PLUGIN . 'woocommerce-currency-switcher' ],
715 'links' => [ [
716 'label' => __( 'Set up', 'premmerce' ),
717 'link' => admin_url( 'admin.php?page=wc-settings&tab=woocs' ),
718 ] ],
719 ];
720 return $tasks;
721 }
722
723 }