haszari
4e42021578
render suggestions containers (& unstyled suggestions) in orders list
2019-02-22 16:13:37 +13:00
haszari
24bbb9267e
allow suggestions on orders list + move logic into suggestions class
2019-02-22 16:11:34 +13:00
haszari
124e1a7b4a
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 16:06:18 +13:00
haszari
37578aa5d4
Merge branch master into feature/marketplace-suggestions
...
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari
163af89ab3
MIA suggestions data should be cached as a real array, not text
2019-02-22 12:34:43 +13:00
haszari
62d4b5e395
Improve clarity and logic for disabling suggestions:
...
- Use a filter rather than option
- Use return-early style in function for clarity
- Ensure user has 'install_plugins' capability
2019-02-22 12:31:02 +13: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
20c039d946
removed redundant `get_plugin_slug`
2019-02-22 12:04:22 +13:00
haszari
9a07c70cfc
only enqueue marketplace suggestions styles if they are enabled
2019-02-22 12:02:17 +13:00
haszari
a7dd094b3a
frontload suggestion data as script data, remove ajax request
2019-02-22 11:23:09 +13:00
haszari
f2deef861e
prefix AJAX actions to reduce chance of collision
2019-02-21 15:56:26 +13:00
haszari
950b873583
only display suggestions for Englishish locales
2019-02-21 15:20:16 +13:00
haszari
ea5d3870ba
support global opt-out of suggestions via user option 'woocommerce_allow_marketplace_suggestions'
2019-02-21 15:04:38 +13:00
haszari
a9b7bfc513
move products list suggestions container render into module behind hook + move template near module, don't use wc_get_template to render
2019-02-21 14:38:04 +13:00
haszari
4c8436122f
move suggestions class into admin/ and require from admin::includes
2019-02-21 12:44:21 +13:00
haszari
71250c30a2
tidy up main marketplace suggestions module, make it a real class +
...
+ require it for admin only
+ fix issue with retrieving dismissed suggestions user meta value
2019-02-21 12:37:10 +13:00
haszari
5c1e20c7d1
store dismissed suggestions in user meta, don't manually json-encode
2019-02-21 11:50:03 +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
haszari
9986c4482c
remove some extra whitespace
2019-02-21 10:21:23 +13:00
haszari
dd27bf278b
cache empty suggestions if API fails, to reduce congestion/thrashing +
...
+ don't use wp_remote_safe_get – overkill
+ use wp_send_json_success to streamline/simplify API data ajax handler
2019-02-21 10:20:58 +13:00
Mike Jolley
b65f93c756
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-20 12:45:34 +00:00
Mike Jolley
6b41041883
Merge pull request #22777 from woocommerce/fix/22730
...
check low_stock for empty string vs isset
2019-02-20 12:44:17 +00:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Mike Jolley
ffa230de90
Escape html entities before passing to WP/photoswipe
2019-02-20 11:49:55 +00:00
haszari
6b8366eef9
pull real suggestions data from S3, remove hard-coded test data
2019-02-20 20:24:05 +13:00
haszari
4c1caf9171
display icon images in suggestions + styling tweaks for header/footer
2019-02-20 11:46:06 +13:00
Ron Rennick
e9a98ce4ae
fixes from review
2019-02-19 15:37:45 -04:00
Ron Rennick
4c7f61e123
phpcs except for ignore use of $_POST
2019-02-19 13:41:14 -04:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04:00
Mike Jolley
5397e4ec1a
Merge pull request #22329 from woocommerce/enhancement-manual-stock-changes/21754
...
Product stock adjustments with manual order line item changes
2019-02-19 10:00:49 +00:00
Mike Jolley
07eadfeb72
Merge pull request #22760 from woocommerce/performance/webhook-loading
...
Performance: webhook loading
2019-02-19 09:58:06 +00:00
Mike Jolley
15bcef85e9
Merge pull request #21090 from woocommerce/fix/20937-v0.1
...
Added test if request is a REST API request so that cart is not loaded.
2019-02-19 09:54:48 +00:00
Mike Jolley
bdf77f5648
Merge pull request #22423 from woocommerce/performance/find-matching-variations
...
Performance - Finding matching variations
2019-02-19 09:53:34 +00:00
Mike Jolley
1e74b2567f
Merge pull request #22357 from woocommerce/pr/22125
...
State and country field handling improvements
2019-02-19 09:52:34 +00:00
Mike Jolley
2529cd60cd
Merge pull request #22731 from woocommerce/update/21952
...
Prevent webhooks for drafts and correct create vs updated for manual orders
2019-02-19 09:50:51 +00:00
Mike Jolley
de642211d0
Merge pull request #22735 from woocommerce/fix/maybe_set_date_paid
...
If date paid is not set but payment complete status has passed, set it
2019-02-19 09:49:33 +00:00
Mike Jolley
9076fde5b0
Merge pull request #22740 from woocommerce/fix/22403
...
Check for decoded taxonomy name when unsetting terms
2019-02-19 09:47:20 +00:00
Mike Jolley
dab6fcd43d
Merge pull request #22737 from woocommerce/fix/22733
...
Fix save logic by moving setter into loop grabbing the value
2019-02-19 09:46:34 +00:00
Mike Jolley
55bd0e7937
Merge pull request #22736 from woocommerce/fix/22703
...
Importer - Variations cannot be drafts - set to private.
2019-02-19 09:45:17 +00:00
Mike Jolley
004a0d7c03
Merge pull request #22692 from woocommerce/fix/22686
...
Update CA address format
2019-02-19 09:44:50 +00:00
Mike Jolley
7306bf6382
Merge pull request #22763 from woocommerce/fix/paypal-bn-code
...
Move PayPal BN partner ID
2019-02-19 09:42:05 +00:00
haszari
cc51dd4376
style products empty header/footer + support link style:
...
- added link-text to trigger link style for suggestion CTA, button is now opt-in
- made suggestion rendering more generic, should display something sensible if there are missing attribs
- all CTA links/buttons open in new tab via target attr
2019-02-19 12:22:06 +13:00
haszari
9cd81c371e
add header & footer to products empty suggestions box
2019-02-19 11:54:58 +13:00
Peter Fabian
d405c28bb7
Added back check for empty REQUEST_URI to authentication function, as it's still needed, the value is used further down.
2019-02-18 22:53:58 +01:00
Peter Fabian
989fad5a7e
Perhaps it does not make much sense to filter empty URI if it's REST request or not.
2019-02-18 22:52:39 +01:00
haszari
c7b630b1f8
update products list empty state (incl. suggestions) to latest designs
2019-02-19 10:46:44 +13:00
Claudio Sanches
8388325985
PHPCS ignore only what is necessary
2019-02-18 18:45:07 -03:00
Claudio Sanches
096e92554b
Only disable WordPress.DB.SlowDBQuery.slow_db_query_tax_query
2019-02-18 18:42:11 -03:00
Claudio Sanches
88984da13a
Merge branch 'master' into performance/find-matching-variations
2019-02-18 18:41:17 -03:00
Claudio Sanches
4d5c6b9042
Use short cuts for wpdb properties
2019-02-18 18:38:29 -03:00