Mike Jolley
2d5e834cf2
Merge branch 'pr/22822'
2019-02-27 11:56:08 +00:00
Mike Jolley
c854e74471
Spacing
2019-02-27 11:56:00 +00:00
yaroslawww
bb8bf5f749
Update class-wc-regenerate-images.php
...
Sometimes imagedata has not $imagedata['sizes']['full'] params. In my case, due to the fact that I am loading the SVG picture.
Therefore, an error is visible *Undefined index: height in class-wc-regenerate-images.php on line 222*
Therefore, a check for the emptiness of these parameters is added.
2019-02-27 13:53:32 +02:00
Gerhard
72ea7b05e7
Move tracking check to the if statement to avoid writing to the DB when it already has a value stored.
2019-02-27 13:38:36 +02:00
Mike Jolley
f90daea1d5
Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer
...
Remove old plugin/theme background installer hooks
2019-02-27 11:38:32 +00:00
Gerhard
a1c3048318
Keep tracking enabled if already enabled when saving the wizard.
2019-02-27 12:55:49 +02:00
Konstantin Kovshenin
9447afbc47
Update Marketplace suggestions endpoint URL
2019-02-27 12:26:14 +03:00
haszari
d5287b3f07
switch in WCCOM new (versioned) suggestions host/URL
2019-02-27 16:12:38 +13:00
haszari
0dcc87110b
Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
...
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13: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
69e3856188
show/hide suggestions based on which extensions are active:
...
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Mike Jolley
d5ab20d1a5
get ID before running actions
2019-02-26 20:29:17 +00:00
Gerhard Potgieter
8722317956
Merge pull request #22775 from woocommerce/update/22525
...
Set no-transform cache header to opt out of weblight
2019-02-26 18:22:57 +02:00
Gerhard Potgieter
cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
...
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
Gerhard Potgieter
dbe93b96c4
Merge pull request #22865 from woocommerce/fix/22863
...
Add alt text to gallery thumbnail
2019-02-26 18:20:35 +02:00
Gerhard Potgieter
3455b2c1cb
Merge pull request #22830 from woocommerce/add/marketplace-updater-wc-queue
...
Update Marketplace suggestions data using WC_Queue
2019-02-26 17:55:33 +02:00
Mike Jolley
017f0e5e0d
Merge pull request #22834 from nishitlangaliya/issue-22757
...
feat: wc_product_stock_status_options filter added for stock status options
2019-02-26 14:06:02 +00:00
Mike Jolley
20eb503128
Add alt text to gallery thumbnail
2019-02-26 14:03:25 +00:00
Naveen giri
913b8e84bf
Fix wpcs error and avoid unnecessary checks
2019-02-26 18:31:34 +05:30
Gerhard
3dde01570a
Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore.
2019-02-26 12:44:27 +02:00
Gerhard
1e21ebe367
Remove the callbacks only
2019-02-26 12:25:12 +02:00
Mike Jolley
176965d139
Merge pull request #22825 from thatwasnotme/fix/data-stores-docs-param-type
...
Correct invalid param type from id to int
2019-02-26 10:24:58 +00:00
Gerhard
ccbb8313b6
Revert "Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron."
...
This reverts commit 0f771bf4fe
.
2019-02-26 12:24:56 +02:00
Mike Jolley
68c1ec6763
Merge pull request #22826 from woocommerce/fix/22708
...
Calculate shipping before totals during checkout update
2019-02-26 10:24:02 +00:00
Mike Jolley
6c35df1551
Return string
2019-02-25 22:01:22 +00:00
Mike Jolley
8792b53ecb
shop_messages shortcode requires wc_print_notices
2019-02-25 22:01:07 +00:00
haszari
c45a39676c
use safe get for API request, linter fixes, doc comments
2019-02-26 10:07:42 +13:00
Krzysztof Grabania
946b1e2469
Remove whitespace characters from Select2 option title
2019-02-25 20:12:54 +01:00
Claudio Sanches
80aee99fee
Prevent a few structured data warnings
...
This prevents warnings about 'image', 'description' and 'sku'.
'brand' included as empty fields just to register.
Note that warnings still comes for empty fields like 'sku' or 'brand'.
This is the message that should throw from Google Console:
> The brand field is recommended. Please provide a value if available.
Since is recommended, this PR should solve the max warnings as possible.
Fixes #22842
2019-02-25 15:49:14 -03:00
nishitlangaliya
ee621eec8a
fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options
2019-02-25 19:03:57 +05:30
Gabriel
8a9990f98d
[ADD] Do Action before cart is emptied
2019-02-25 06:01:38 +01:00
haszari
97524aab16
Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
...
# Conflicts:
# includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari
1aff17f0b9
Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions
2019-02-25 16:05:04 +13:00
haszari
556bd1b372
remove hard-coded test suggestion data
2019-02-25 13:34:59 +13:00
haszari
764926f30c
rename product edit suggestions contexts for consistency
2019-02-25 10:21:22 +13:00
Valerie
8a796138ef
OBW: Add Facebook to recommended step
...
The end date for the Facebook recommendation
is October 8, 2019.
When the option is checked, this will install the extension
'Facebook for WooCommerce' on the user's site.
2019-02-23 17:40:37 -05:00
haszari
041068a705
use full path when including container template, rename folder 'views'
2019-02-24 09:37:33 +13:00
nishitlangaliya
53b5be7e83
feat: wc_product_stock_status_options filter added for stock status options for variable product
2019-02-23 11:10:22 +05:30
Valerie
ca316d8933
OBW: Remove customized blurb on recommended step
2019-02-22 21:14:22 -05:00
Konstantin Kovshenin
1dad53d5e0
Update Marketplace suggestions data using WC_Queue
...
Schedules an update task to run as soon as possible to fetch the
suggestions data, and cache it for a week. Failures are cached for
a day.
2019-02-22 22:34:18 +03:00
Konstantin Kovshenin
a0af355a45
Change marketplace suggestions label to "Get more options"
2019-02-22 21:16:13 +03:00
Mike Jolley
e21912294a
calc shipping before totals
2019-02-22 16:43:42 +00:00
Tarik Causevic
5f87fa49e1
Correct invalid param type from id to int
2019-02-22 17:39:58 +01:00
Naveen giri
f741d507ba
Bugfix/#22821: Add Fix for Warning and Notices on save attribute button click
2019-02-22 19:27:16 +05:30
Mike Jolley
27ac2e1577
phpcs
2019-02-22 13:33:41 +00:00
Mike Jolley
d07d1cf0b0
If taxes are enabled, make the refund box readonly
2019-02-22 13:30:49 +00:00
Mike Jolley
0c2bc16bc1
Improved ratio and size matching code to prevent false positives
2019-02-22 12:10:54 +00:00
Mike Jolley
d31fbb5bf3
Helper to get full size dimensions
2019-02-22 12:10:28 +00:00
Mike Jolley
4a383fa832
When resizing, avoid extra checks via our filter
2019-02-22 12:10:16 +00:00
Mike Jolley
21f98555dc
Image downsize without filters
2019-02-22 12:09:59 +00:00
Konstantin Kovshenin
86d8065f3b
Remove debug code
2019-02-22 12:11:54 +03:00
Konstantin Kovshenin
25a72cc5f3
Add missing HTML template that renders the product data panel content
2019-02-22 12:03:58 +03:00
Konstantin Kovshenin
559409bccb
Remove hard-coded JSON test data
2019-02-22 11:55:56 +03:00
Konstantin Kovshenin
901d41bdfa
Marketplace suggestions in Edit Product screen
...
Adds a new tab to Woo's product data metabox and renders the
appropriate containers for JS to inject some Marketplace
suggestions.
2019-02-22 11:52:17 +03:00
haszari
4af4ce5783
allow suggestions on orders list + move logic into suggestions class
2019-02-22 10:55:37 +03:00
haszari
07a1ac7868
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 10:55:19 +03:00
haszari
3fcdc65283
style orders list suggestions + remove debug code
2019-02-22 20:55:03 +13:00
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
Mike Jolley
e982e4027a
unused variables
2019-02-21 17:37:16 +00:00
Mike Jolley
78ebe9496f
Move caching
2019-02-21 17:35:41 +00:00
Mike Jolley
a4ac312854
Correct docblock
2019-02-21 17:15:37 +00:00
Mike Jolley
d7c2aaaadb
Avoid get post
2019-02-21 17:15:24 +00:00
Mike Jolley
54c1ef8615
Avoid trying to resize small images
2019-02-21 16:58:40 +00:00
Mike Jolley
287d65ab65
Add caching to get image size
2019-02-21 16:58:28 +00:00
Mike Jolley
e830bd739a
Use taxable address when adding/removing coupons
2019-02-21 16:23:20 +00:00
Gerhard
0f771bf4fe
Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron.
2019-02-21 12:50:12 +02: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
Claudio Sanches
79847ccb93
Fixed coding standards
2019-02-20 16:30:46 -03:00
Claudio Sanches
5302434057
Fill user first and last name during checkout
2019-02-20 16:29:34 -03:00
Claudio Sanches
8b8498a37a
Included extra argument into wc_create_new_customer
...
Allows passing extra arguments to wp_insert_user() function
2019-02-20 16:18:43 -03:00
Claudio Sanches
efaa723a5b
Only set user first and last names when those fields are empty
2019-02-20 13:55:51 -03:00
Mike Jolley
9529d6eee7
Use total, not amount, when calculating fees
2019-02-20 16:22:20 +00:00
Martin Snajdr
1c678372d4
Shipping cost filters removed & added two additional parameters get_option function filters
2019-02-20 15:59:40 +01: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
Martin Snajdr
89016f1e70
WP coding standards fix.
2019-02-20 11:57:03 +01:00
Martin Snajdr
dfd4f4ea6d
Filters added to shipping method function get_option
2019-02-20 11:54:59 +01: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
Claudio Sanches
8c18367e57
[REST API] Better description for order's status collection param
2019-02-19 14:17:16 -03:00
Mike Jolley
b5219aac31
Add extra cache headers
2019-02-19 16:35:26 +00:00
SASAGAWA, Kiyoshi
3b6bbd2f3d
Fixing order of JP address.
...
JP address must be ordered as 'Postal Code' -> 'State (Prefecture)' -> 'City' -> 'address'.
Changing the priority.
2019-02-20 01:20:02 +09:00
Mike Jolley
d45734b6f3
Tweak indexes tests to test shipping indexes correctly
2019-02-19 15:35:28 +00:00
Mike Jolley
5749369ba5
Update coupons and orders to use update_or_delete_post_meta
2019-02-19 15:35:05 +00:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04:00
Martin Snajdr
a6499d83ab
Flat rate shipping cost / class cost filters added.
...
Allows to tweak flatrate shipping cost / class cost before it gets
calculated and applied to shipping. Very useful for multicurrency
plugins, because you can add field for fixed shipping cost in another
currency and use this value instead of the default value from cost
field.
2019-02-19 15:49:35 +01:00
Mike Jolley
ea22b1cf47
Wrong var name
2019-02-19 13:24:29 +00:00
Mike Jolley
c6871bb107
Use update_or_delete_post_meta - exclude _tax_class which may be empty
2019-02-19 13:23:24 +00:00
Mike Jolley
8c82333034
update_or_delete_post_meta method which does what it says
2019-02-19 13:23:09 +00: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
Claudio Sanches
ff614f4f99
Catch WC_Data_Exception to avoid black screen
...
Also incldued a check to avoid duplicated messages about invalid billing
address emails.
2019-02-18 17:25:25 -03:00
Claudio Sanches
02ee0f21bb
Fixed coding standards
2019-02-18 16:48:01 -03:00
Peter Fabian
42855592e4
Updated call to reflect function change.
2019-02-18 18:59:37 +01:00
Peter Fabian
ba12cf723c
Renamed filter and reused the function in auth code.
2019-02-18 18:54:56 +01:00
Mike Jolley
b9e871060c
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-18 17:20:54 +00:00
Mike Jolley
8abe75f36d
Merge branch 'fix/21463'
2019-02-18 17:20:48 +00:00
Mike Jolley
acd933a7dd
Merge pull request #22729 from woocommerce/fix/22489
...
Check for _reduced_stock meta when restocking refunded items
2019-02-18 17:01:15 +00:00
Mike Jolley
dc883012b8
Missed null check in wc_load_webhooks
2019-02-18 16:58:16 +00:00
Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Mike Jolley
ad12ddd2c2
wc_maybe_adjust_line_item_product_stock should return false if nothing happens
2019-02-18 16:45:55 +00:00
Mike Jolley
624431d875
Merge pull request #22741 from woocommerce/fix/22701
...
Put back status parameter after extra processing.
2019-02-18 16:41:20 +00:00
Mike Jolley
3ededc2a07
Move BN partner ID
2019-02-18 16:29:29 +00:00
Mike Jolley
4fd2a9f77e
Update from master
2019-02-18 15:04:58 +00:00
Mike Jolley
71d3121872
Performance: Support pagination to avoid double queries to search webhooks
2019-02-18 14:58:32 +00:00
Mike Jolley
4b3c1660f1
Dedicated count method
2019-02-18 13:41:14 +00:00
Mike Jolley
14149e4d54
phpcs
2019-02-18 13:41:06 +00:00
Mike Jolley
d787c34206
get_webhooks_ids escaping
2019-02-18 13:34:13 +00:00
Mike Jolley
3a4ef0a1d8
Avoid getting all webhook ids
2019-02-18 13:19:12 +00:00