Claudio Sanches
a10fa76438
Fixed empty file object in downloads data and removee extra download_name
2017-03-06 19:45:03 -03:00
Claudio Sanches
64b45e9909
Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store
2017-03-06 19:03:26 -03:00
Claudio Sanches
50d62a5c4c
REST API v1 should return 0 when limit_usage_to_x_items is empty
2017-03-06 18:14:32 -03:00
Claudio Sanches
de77bddcfb
limit_usage_to_x_items should be integer
2017-03-06 18:14:15 -03:00
Justin Shreve
71d3308401
Show a reminder to include a valid --user flag when an authentication error is returned by the CLI.
...
Adds an additional message when the REST API returns 401 errors to the CLI, so that people properly include the `--user` flag.
To test:
* Run a command without a valid user ID (`wp wc product list`).
* See the additional error message.
* Run a command with a valid user ID, but cause another error, like a product not existing. (`wp wc product get 124124124 --user=1`).
* See that the extra error message is not displayed.
2017-03-06 11:34:06 -08:00
Mike Jolley
296daf19c2
Avoid wc_clean
...
Fixes #13464
2017-03-06 14:53:32 +00:00
Mike Jolley
e5ed116e33
Split total row methods to avoid calling total row filter twice
...
Fixes #13456
2017-03-06 13:44:52 +00:00
Claudio Sanches
8a77bb0957
Fixed undefined $id #13405
2017-03-04 12:15:52 -03:00
Claudiu Lodromanean
e4db7f1d76
Update variable names to correct ones
2017-03-03 14:40:31 -08:00
Claudio Sanches
7adb472a1c
Fixed extra argument on array_map while setting categories and tags ids
2017-03-03 16:26:57 -03:00
Claudio Sanches
8d28e966c4
Let product CRUD handle terms IDs
2017-03-03 16:21:27 -03:00
Claudio Sanches
a4b7cc5f0d
Accept only list of terms IDs for product categories and tags
2017-03-03 16:19:32 -03:00
Claudio Sanches
ee276e10a4
Merge pull request #13460 from woocommerce/fix-13458
...
Set line item prices on legacy API order create
2017-03-03 15:45:53 -03:00
Claudiu Lodromanean
51c5910866
Set line item prices on legacy API order create
2017-03-03 09:26:08 -08:00
Justin Shreve
dc501dc3be
Fix CLI notice when using --fields.
...
A non-existent variable was being passed to `limit_item_to_fields`, causing a PHP notice to be displayed.
`PHP Notice: Undefined variable: fields in includes/cli/class-wc-cli-rest-command.php on line 183`
This PR passes the correct value.
To Test:
1. Use `wp wc product list --user=1 --fields="sku,name"` on the command-line.
2. Make sure that a PHP notice does not display in your debug log.
2017-03-03 08:55:22 -08:00
Mike Jolley
2b5bdaa15d
Remove unused variable
2017-03-03 13:31:27 +00:00
Mike Jolley
09de226bd2
Fix error checking on endpoints to prevent fatal errors
...
Fixes #13453
2017-03-03 13:18:07 +00:00
Mike Jolley
9c988b3412
Merge branch 'master' into fix#13454
2017-03-03 10:52:14 +00:00
Mike Jolley
8440083fef
Merge pull request #13443 from woocommerce/cache-groups
...
Standardize cache group names
2017-03-03 10:44:34 +00:00
Mike Jolley
0a53e0e47f
Merge pull request #13444 from woocommerce/fix-13420
...
Set date paid for old orders
2017-03-03 10:41:33 +00:00
faisal-alvi
8b579bb820
fix#13454
2017-03-03 15:18:59 +05:30
Claudio Sanches
f7d8ddffab
Merge pull request #13452 from woocommerce/fix-13405
...
Legacy API tweaks
2017-03-02 22:42:46 -03:00
Claudiu Lodromanean
bd4458fa90
Change create to save
2017-03-02 14:28:35 -08:00
Claudio Sanches
29318f85a6
Merge pull request #13451 from thenbrent/fix_undefined_var
...
Fixes for $order_url variable
2017-03-02 19:17:01 -03:00
Claudio Sanches
7b77a9fd2e
Merge pull request #13449 from woocommerce/fix-13427
...
get_meta should return empty array sometimes
2017-03-02 19:15:00 -03:00
Brent Shepherd
759de5cc00
Fix undefined $order_url variable
...
In the case of an order with no items.
Fix redundantly setting the $order_url multiple times in the case
of orders with more than one line item.
2017-03-02 13:09:38 -08:00
Claudio Sanches
3aa86075d1
Prevent errors when do not have a paid date
2017-03-02 16:29:04 -03:00
Claudiu Lodromanean
d5fd1e46ee
get_meta should return empty array sometimes
2017-03-02 11:16:49 -08:00
Claudio Sanches
9fb2ba7783
[REST API] date_paid should be in date time format, closes #13255
2017-03-02 15:25:32 -03:00
Mike Jolley
35eea95550
Set date paid for old order
2017-03-02 17:47:28 +00:00
Mike Jolley
c76c2d1a8d
Merge pull request #13442 from woocommerce/fix-13419
...
Update date created/modified if changed.
2017-03-02 17:39:45 +00:00
Mike Jolley
1a8737fdeb
Standardize cache group names
2017-03-02 17:15:39 +00:00
Mike Jolley
200f4c7741
Merge pull request #13414 from woocommerce/fix-13400
...
Dont save empty text attributes
2017-03-02 16:52:34 +00:00
Mike Jolley
0b0066b2a0
Merge pull request #13424 from woocommerce/fix/reintroduce-virtual-coupons
...
Reintroduce virtual coupons by "un"deprecating the filter.
2017-03-02 16:52:24 +00:00
Claudio Sanches
6dad909570
Merge pull request #13425 from woocommerce/fix-13411
...
Dont render empty stock descriptions
2017-03-02 13:49:12 -03:00
Mike Jolley
fd07d06825
Update date created/modified if changed.
...
Fixes #13419
2017-03-02 16:46:59 +00:00
Claudiu Lodromanean
3f1d538878
Single quotes instead of double
2017-03-02 08:45:01 -08:00
Claudiu Lodromanean
36a8d08a5f
Tweak no-availability check
2017-03-02 08:30:01 -08:00
Claudiu Lodromanean
527fb42771
Refactor empty option check
2017-03-02 08:21:20 -08:00
Mike Jolley
5637f043e5
Fix term name in update function
...
Closes #13398
2017-03-02 15:59:22 +00:00
Mike Jolley
2e56114d8e
Fix styling of variation upsells
2017-03-02 15:33:08 +00:00
Mike Jolley
0dfab8326b
Backwards compatibility for woocommerce_upsell_display_args
2017-03-02 15:29:15 +00:00
Mike Jolley
793b2dfa69
woocommerce_upsells_total filter.
...
Closes #13436
2017-03-02 15:15:41 +00:00
Mike Jolley
c29f6bba50
Merge pull request #13408 from woocommerce/fix-13396
...
Better invalid data store handling
2017-03-02 12:46:51 +00:00
Claudiu Lodromanean
635f8c38a7
Dont render empty stock descriptions
2017-03-01 15:19:31 -08:00
Boro Sitnikovski
519e81ef59
Merge branch 'master' into fix/reintroduce-virtual-coupons
2017-03-02 00:09:03 +01:00
Claudiu Lodromanean
f7752fb9b7
Merge pull request #13413 from JeroenSormani/fix-set-bill-location
...
Set the $state default to '' to prevent warning
2017-03-01 14:18:02 -08:00
Boro Sitnikovski
428e32bfa9
Reintroduce virtual coupons by "un"deprecating the filter.
...
We also need to return to skip CRUD processing.
2017-03-01 22:49:21 +01:00
Justin Shreve
14b06ee323
Merge pull request #13423 from woocommerce/fix/rest-command-notice
...
Fix PHP notice that displays when running CLI commands that accept no ID arguments.
2017-03-01 13:38:11 -08:00
Justin Shreve
0a4c20183d
Merge pull request #13421 from woocommerce/fix/cli-version-target
...
Only target v2 of the WC REST API when generating CLI commands.
2017-03-01 13:34:59 -08:00
Justin Shreve
e8754eafcb
Fix the PHP notice that is displaying when running commands like shop_coupon list that accept no ID arguments.
2017-03-01 13:22:02 -08:00
Justin Shreve
9c8dd2d916
Only target v2 of the WC REST API when generating CLI commands.
2017-03-01 13:05:04 -08:00
JeroenSormani
d97ae5f9a6
Set the default to '' to prevent warning
2017-03-01 19:45:38 +01:00
Claudiu Lodromanean
e132dcba17
Dont save empty text attributes
2017-03-01 10:39:08 -08:00
JeroenSormani
d553b080de
Fix some docblock @param tags / remove a @access public
2017-03-01 18:44:11 +01:00
Claudiu Lodromanean
1eafb487d7
Allow invalid data store exceptions to bubble
2017-03-01 09:24:30 -08:00
Claudiu Lodromanean
65b98b77a3
Better class-enforcing checking
2017-03-01 08:58:03 -08:00
Mike Jolley
2dd8ec743a
Typo
2017-03-01 15:05:24 +00:00
Mike Jolley
3508578831
Merge pull request #13395 from woocommerce/optimise-cron-events
...
Email cron jobs - avoid storing full data objects
2017-02-28 21:31:25 +00:00
Mike Jolley
737c962e48
docblock
2017-02-28 21:16:58 +00:00
Mike Jolley
4f333d0e82
More efficient expand
2017-02-28 21:16:03 +00:00
Mike Jolley
fb576b015b
Email cron jobs - avoid storing full data objects
2017-02-28 20:35:52 +00:00
Michael Pretty
63dca2393c
Allow use of a specific instance of a data store
...
fixes #13393
2017-02-28 15:01:06 -05:00
Mike Jolley
6edd13579b
Update date paid if transitioning to payment complete status ( #13382 )
...
* Update date paid if the from status is unpaid, and the to status is ! unpaid
Closes #13376
* maybe_set_date_paid, maybe_set_date_completed and needs_processing helpers
Set paid is performed once only for BW compatibility with #13375
* Should use set_date_completed
* Docblock and params
2017-02-28 19:08:12 +00:00
Claudiu Lodromanean
5ac880347c
Merge pull request #13390 from woocommerce/video-updates
...
Video updates
2017-02-28 09:51:40 -08:00
Mike Jolley
432ca28398
Update cart discount for old orders ( #13384 )
...
* Total discount bw compat handling
Fixes #13383
* if
2017-02-28 17:49:54 +00:00
Claudiu Lodromanean
84091e5d4b
Whitespace tweak
2017-02-28 09:49:15 -08:00
Mike Jolley
7ab0b99afe
Merge pull request #13389 from woocommerce/fix-13388
...
Fix trashed variation cleanup
2017-02-28 17:45:02 +00:00
Ryan Ray
05a40d8df7
Merge branch 'master' into video-updates
2017-02-28 10:56:28 -05:00
Mike Jolley
41a4bdb181
Fix trashed variation cleanup
...
Fixes #13388
2017-02-28 15:38:11 +00:00
Mike Jolley
5236f48822
Merge pull request #13387 from woocommerce/checkout-styles
...
Checkout styles
2017-02-28 14:19:57 +00:00
Mike Jolley
3df175fbc5
Hide bacs if empty
2017-02-28 12:46:31 +00:00
Konstantinos Kouratoras
4d8714c50a
Fix a typo in help section
...
Fix `splease` typo in help section.
2017-02-28 13:24:30 +02:00
Mike Jolley
8b4625e02e
Legacy variation meta handling
2017-02-28 10:29:08 +00:00
Mike Jolley
fd94ce74bc
Rogue exit in data store
2017-02-28 00:53:41 +00:00
Mike Jolley
906bc70e74
Fix permalink base check
...
Closes #13374
2017-02-28 00:16:26 +00:00
Claudiu Lodromanean
4a4de2a951
Americanize some words
2017-02-27 14:59:37 -08:00
Mike Jolley
8cc23eacdf
Merge pull request #13369 from woocommerce/fix-order-refund-methods
...
Fix order refund methods
2017-02-27 18:02:22 +00:00
Mike Jolley
790dd57933
Apologise -> american english
...
Closes #13370
2017-02-27 17:39:08 +00:00
Mike Jolley
f2990b0c7d
Check we have a WC_Order during email events
2017-02-27 17:08:13 +00:00
Mike Jolley
f5a36778fd
Move refund/payment method code out of abstract
2017-02-27 17:06:09 +00:00
Mike Jolley
84a4c3415c
Handle auto drafts
...
Fixes #13361
2017-02-27 14:40:48 +00:00
Mike Jolley
194ed85d0e
Change title update logic to look at product version and prefix
...
Fixes #13363
2017-02-27 14:40:32 +00:00
Mike Jolley
5c06a6a591
Missing wc_format_localized_price
...
Fixes #13356
2017-02-27 13:39:35 +00:00
Mike Jolley
fce44e2271
Status filter adjustment #13357
2017-02-27 11:55:09 +00:00
Ryan Ray
024b77f088
Updated the embed code.
...
Added a few new videos.
Modified the videos to include more appropriate time stamps
2017-02-25 13:45:00 -05:00
Ryan Ray
b2107f1a62
Renaming what used to be WooCommerce 101 videos to the current Guided
...
Tour naming scheme.
2017-02-25 11:40:10 -05:00
Caleb Burks
e782760011
Clean up
...
These lines, so long ;p
2017-02-25 02:27:38 -06:00
Caleb Burks
21da6ee31c
Hide coupon free shipping conditionally
2017-02-25 02:16:30 -06:00
Claudio Sanches
1eccb65d85
Fixed coding standards
2017-02-24 17:30:41 -03:00
Claudio Sanches
572dd1c91e
Merge pull request #13346 from woocommerce/i18n-urls
...
Fixed confuse translatable URLs
2017-02-24 17:18:37 -03:00
Claudio Sanches
4eccbef6e1
Fixed infinite loop cause by duplicated hook names
2017-02-24 17:02:05 -03:00
Claudio Sanches
a4d2048755
Fixed confuse translatable URLs
2017-02-24 16:41:56 -03:00
Claudio Sanches
c90e0259f2
Merge pull request #13338 from woocommerce/fix-13337
...
Check isset in check_comment_rating
2017-02-24 16:15:30 -03:00
Claudio Sanches
d2ef02477a
Merge pull request #13341 from woocommerce/fix-13326
...
Make theme handling methods static
2017-02-24 16:11:26 -03:00
Claudio Sanches
6f434ee828
Make WC_Twenty_Seventeen::init() static
...
@mikejolley
2017-02-24 16:10:34 -03:00
Claudio Sanches
5383349a0a
Merge pull request #13339 from woocommerce/fix-13335
...
Edit context when duplicating skus
2017-02-24 16:07:17 -03:00
Claudio Sanches
bf51da64d7
Merge branch 'master' into fix-13335
2017-02-24 16:07:00 -03:00
Claudio Sanches
3e7e9dafb1
Allow wc_format_decimal() return negative values
2017-02-24 15:58:02 -03:00
Claudio Sanches
2dc3033c1e
Better fees description
2017-02-24 15:38:14 -03:00