Commit Graph

74 Commits

Author SHA1 Message Date
tgglv c277696b65 Make WCCOM helper subs cache cleaning public
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-11 17:59:39 +05:00
Akeda Bagus aae802f319
Add support to allow in-app purchase installation after connected. 2019-08-17 00:36:28 +07:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07:00
Akeda Bagus d51e843190
Move WCCOM Site related files to `/wccom-site` directory.
Also use queue when installing products so API can respond immediately.
2019-07-11 16:01:53 +07:00
Akeda Bagus 72ba4ed2e5
Include helper product install class in main helper class. 2019-07-11 15:55:16 +07:00
Akeda Bagus d088aea85d
Initial work of adding product install API on top of helper. 2019-07-11 15:55:11 +07:00
Claudio Sanches 196d5e77cb
Merge pull request #23041 from woocommerce/update/21701
Add hooks for helper subscription changes
2019-05-21 18:27:15 -03:00
Mike Jolley 3a8c3b3813 Update download URL in helper 2019-03-26 11:36:41 +00:00
Mike Jolley 6b82636e33 phpcs 2019-03-15 16:16:53 +00:00
Mike Jolley 5ee5227dac Hooks for all actitation and deactivation events 2019-03-15 16:02:55 +00:00
Mike Jolley d6a38dce55 woocommerce_helper_subscription_deactivate_success 2019-03-15 15:45:50 +00:00
Mike Jolley 3f5f437b9e woocommerce_helper_subscription_activate_success 2019-03-15 15:42:17 +00:00
Mike Jolley f8dded8b49 merge refactor/22762 into master 2019-03-12 13:49:10 +00:00
Mike Jolley 72870d808c
Merge pull request #22890 from woocommerce/fix/21785
Avoid changing tracking preferences when disconnecting helper
2019-03-11 17:04:29 +00:00
Mike Jolley fbda3a91d8 Merge feature/add-tracks into master 2019-03-11 15:15:50 +00:00
Mike Jolley 6f35239a26 Move activate/deactivate hooks to main WC class 2019-03-08 12:50:06 +00:00
Mike Jolley fcf2a1d027 Move helper includes into helper class 2019-03-08 12:48:40 +00:00
Paul Sealock 09dec90831 getting there 2019-03-08 10:20:50 +13:00
Paul Sealock 712f06014d moar 2019-03-08 10:08:34 +13:00
Mike Jolley 0b3a57c96f Avoid changing tracking preferences when disconnecting helper 2019-02-27 14:04:50 +00:00
haszari 8dbda1b9c9 revert suggestion-related changes in helper:
- no longer required, now using active plugins for suggestions
- get_local_woo_plugins needs to not be cached
- left plugin `slug` in get_local_woo_plugins values, may be useful
2019-02-27 10:19:56 +13:00
haszari 37578aa5d4 Merge branch master into feature/marketplace-suggestions
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
Jeff Stieler e41b0985f3
Track Subscriptions connection actions (#22805)
* Track when the Helper connection process is started.

* Track when the Helper connection process is cancelled.

* Track when the Helper connection process has completed successfully.

* Track when the Helper has been disconnected.

* Track when the Helper refreshes subscriptions.
2019-02-21 16:28:15 -07:00
haszari 48946b3cc6 Cache local woo plugins info rather than slugs-only subset:
- cache woo_plugins object for more general use
- streamline get_local_woo_plugin_slugs using pluck
2019-02-22 12:17:38 +13:00
haszari e53f92ae0d move woo-plugin slugs into a helper routine + cache installed woo plugins in a transient 2019-02-21 11:27:53 +13:00
Mike Jolley 7def966e4f Impoved JSON handling 2019-02-20 12:00:47 +00:00
Kanishk c7fc4a9521 Refactored code to add filters on plugins_loaded 2018-11-07 02:32:57 +05:30
Kanishk 2c642f3880 Cleaned cache right after filters are added 2018-10-28 16:55:07 +05:30
Kanishk 9bd4a8957f Purged plugin and theme cache so that the helper can detect locally installed plugins and themes 2018-10-25 15:27:04 +05:30
Mike Jolley cdec3321ac Broken log due to variable 2018-04-30 16:23:49 +01:00
Mike Jolley d6a6356d53 After activating a subscription, caches for updates must be purged 2018-04-24 15:43:52 +01:00
Philip Downer 73ff850b82 Add filter to suppress WordPress.com connection message.
Allows developers to supress only the WordPress.com connection message, while still leaving other admin notices (eg., upgrade notice) in place.
2018-04-03 13:42:01 -05:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Claudio Sanches da8fdc0c91 Include "translators" notation #18671 2018-01-31 15:25:38 -02:00
Shohei Tanaka 78e41d225a
Fix : Argument swapping at sprintf
change the arguments from %s to %1$s and %2$s.
2018-01-31 05:50:56 +09:00
Mike Jolley 6389f1af9a Merge branch 'fix-18452' 2018-01-22 15:43:32 +00:00
Mike Jolley 02ebd8f2ee Coding standards 2018-01-22 15:43:23 +00:00
Konstantin Kovshenin 9a496e5d88 Helper: Fix some code problems in the connection prompt.
* Use `wc_get_screen_ids()` instead of hard-coding a list.
* Use the `$strict` param in `in_array()`
* Run the WooCommerce string through l10n to make sure we target the correct screen in non-English installs
2018-01-19 20:58:36 +03:00
Konstantin Kovshenin 3c3077d305 Helper: Prompt a Helper connection only on relevant screens.
Fixes #18452
2018-01-18 12:28:00 +03:00
Jonathan Belcher 77578c5509
Corrects string to use sprintf properly 2018-01-17 10:35:43 -05:00
Jonathan Belcher dbb0f6f1ef Add links to Sharing and Transferring string 2018-01-16 14:35:30 -05:00
Jonathan Belcher 535e1c5b58
Updates Helper text to be correct 2018-01-15 11:41:32 -05:00
Konstantin Kovshenin 1928a9cbf6 Helper: Prompt connection to WooCommerce.com for updates/support
A persistent prompt for users to connect their store to their
WooCommerce.com account, if they happen to have one or more active
extensions provided by WooCommerce.com.

Fixes #17501
2017-12-13 19:34:44 +03:00
The Dramatist 8ac49d448b Unused parameter removed form get_filters method of WC_Helper class. (#17888) 2017-11-23 11:49:12 +00:00
Konstantin Kovshenin 70a72693c3 Helper: Fix automatic subscription activation
Fixes a bug where automatic subscription activation upon plugin
activation does not trigger due to the subscription being unlimited.
2017-10-06 17:12:55 +03:00
Konstantin Kovshenin d63eb56753 Helper: Add a new filter to display only installed extensions. 2017-09-27 15:17:24 +03:00
Konstantin Kovshenin 4a5d0c3ec3 Helper: Clean up unused code. 2017-08-30 18:39:45 +03:00
Konstantin Kovshenin ebb5bfc521 Helper: Better markup for filters output. 2017-08-30 17:39:02 +03:00
Konstantin Kovshenin 8b46283ca6 Helper: Fix some WPCS errors. 2017-08-29 10:23:34 +03:00
Konstantin Kovshenin a3b08d6497 Merge remote-tracking branch 'origin/master' into helper-updates 2017-08-28 13:46:14 +03:00