Commit Graph

19827 Commits

Author SHA1 Message Date
Claudiu Lodromanean cd37d8aa40 Add wrapper class to messages 2017-03-06 14:45:45 -08:00
Claudio Sanches 88f32a782e Fixed download file in downloads.php template 2017-03-06 19:45:13 -03:00
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
Claudio Sanches 01762ed039 Merge pull request #13484 from woocommerce/update/cli-auth-error
CLI: Show a reminder to include a valid --user flag on auth errors.
2017-03-06 17:48:24 -03:00
Claudiu Lodromanean 4ad3709859 Make coupon errors properly refresh the checkout page 2017-03-06 11:52:38 -08: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
Claudio Sanches 2a639fd459 Merge pull request #13479 from woocommerce/update-readme
Update links on readme
2017-03-06 12:22:21 -03:00
Michael Tieso 1de6ae2ba1 Update link
A few links that needed updating.
2017-03-06 07:07:03 -08:00
Claudio Sanches b81faa0780 Merge pull request #13478 from woocommerce/fix-13464
Avoid wc_clean
2017-03-06 11:58:32 -03:00
Mike Jolley 296daf19c2 Avoid wc_clean
Fixes #13464
2017-03-06 14:53:32 +00:00
Mike Jolley ce82fcc0c7 Remove attribute code from product-ordering.js
Fixes #13471
2017-03-06 14:33:52 +00:00
Claudio Sanches f334760e0a Merge pull request #13477 from woocommerce/order-totals-rows
Split total row methods to avoid calling total row filter twice
2017-03-06 11:18:23 -03: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
Mike Jolley 052417e0d0 Merge pull request #13416 from woocommerce/fix-13402
Reset gallery position on variation change
2017-03-06 11:58:16 +00:00
Mike Jolley c24b6605ed Merge pull request #13475 from woocommerce/plugin-tags
Adds 'woo commerce' to tags
2017-03-06 11:14:21 +00:00
James Koster d5d298966a Adds 'woo commerce' to tags
Searching ‘woo commerce’ on .org doesn’t return WooCommerce. It’s
possible that folks will search for this when trying to install. Whilst
not a guarantee to get us to No.1, adding the tag should at least help.
2017-03-06 10:48:12 +00:00
Claudio Sanches 8a77bb0957 Fixed undefined $id #13405 2017-03-04 12:15:52 -03:00
Claudio Sanches d07a75059f Merge pull request #13466 from woocommerce/fix-13405-2
Update variable names to correct ones
2017-03-04 10:05:26 -03:00
Claudiu Lodromanean e4db7f1d76 Update variable names to correct ones 2017-03-03 14:40:31 -08:00
Claudiu Lodromanean 22edf2590d Merge pull request #13462 from woocommerce/fix-13446-2
Accept only list of term IDs while setting product categories and tags
2017-03-03 13:38:12 -08:00
Claudiu Lodromanean 3c4b06f51c Remove extra space 2017-03-03 13:30:16 -08:00
Claudiu Lodromanean 29bdcd7985 Better slide-reset checking 2017-03-03 13:28:38 -08:00
Claudio Sanches e97c21c1cc Fixed unit tests 2017-03-03 16:36:53 -03: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
Justin Shreve 9a8b438b49 Merge pull request #13459 from woocommerce/fix/cli-notice
Fix CLI notice when using --fields.
2017-03-03 09:39:08 -08: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 92cdd4f2af Merge pull request #13455 from faisal-alvi/fix#13454
fix#13454
2017-03-03 10:52:38 +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
Mike Jolley 8f610398ac Merge pull request #13445 from woocommerce/fix-13255
[REST API] date_paid should be in date time format
2017-03-02 21:46:35 +00: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