Commit Graph

7162 Commits

Author SHA1 Message Date
toddlahman 157c50df0a return boolean log add and clear method result 2016-04-12 23:46:30 -07:00
Caleb Burks c11c0cb51b Add NZ locale labels 2016-04-12 22:39:04 -05:00
EmilEriksen a0ae25ca24 Change AJAX add coupon generic error notice type 2016-04-12 17:07:11 +02:00
Shiva Poudel dd37b82f9c Use of wp_json_encode since WC 2.6 requires at least WP 4.4+ 2016-04-12 11:22:26 +05:45
Gabor Javorszky 49ff906322 Fixes comparison functions for customer total orders / spent
No issue. For much performance improvement.

If the moeny spent is 0, or the total order count is also 0, but actually set, the if clause will return false. Even after the body recalculates, for example the money spent, it will still be 0, which means it will never be stored on the user meta, and that body won't be short circuited.

In the case of sites with a lot of orders (customer has ~100k), that query takes about 13 seconds, and due to how the API works, during one request, it runs 4 times (we're working on solving that one though).

We probably want to see whether the meta is set or not. If it's not set, it will be an empty string.
2016-04-11 18:06:36 -05:00
Claudio Sanches 7b6d5a8fd9 Fixed $has_orders on orders.php template, closes #10671 2016-04-11 16:03:09 -05:00
Dev49.net 5eb3888045 Added fallback to company name if names are not specified
Use case described in Issue #10666
2016-04-11 04:13:46 +02:00
Mike Jolley db6b6ebb5a Merge pull request #10642 from matheuscl/fixing_product_category_thumbnail_issue
Fix product category thumbnail issue
2016-04-07 10:31:52 -05:00
Mike Jolley 143642acf5 Change default sort order for featured column 2016-04-07 08:58:28 -05:00
Matheus Lopes ed754fb23f working on coding standards 2016-04-05 17:28:45 -03:00
Claudio Sanches 89068f0a4b Fixed coding standards 2016-04-05 14:58:18 -05:00
Mike Jolley fca1758f39 Merge pull request #10639 from reidbiztech/patch-1
Update class-wc-https.php
2016-04-05 14:28:01 -05:00
Mike Jolley c0449f445d Merge pull request #10634 from JeroenSormani/product-visual-loading
Optimize the visuals when loading the product data meta box
2016-04-05 14:26:32 -05:00
Mike Jolley f8d483fd30 $updated_gallery_ids was not set 2016-04-05 07:42:03 -05:00
Claudio Sanches d7e408d027 More minor fixes and typos 2016-04-04 14:17:41 -05:00
Claudio Sanches 548c222560 Minor fixes and typos 2016-04-04 14:13:38 -05:00
Claudio Sanches 2710d12fc4 Fixed reviews type 2016-04-04 14:13:29 -05:00
Claudio Sanches 6da6c30c86 Fixed copy and paste 2016-04-04 14:07:50 -05:00
Matheus Lopes 61b8fece41 WooCommerce standards fix. 2016-04-04 17:59:53 +00:00
Matheus Lopes c9ee861f57 Check response before clear fields, now field 'Display type' is clean also. 2016-04-04 17:53:36 +00:00
reidbiztech f5293df3da Update class-wc-https.php
Paypal will not allow anything other than TLS 1.2 so just set it to that.
2016-04-04 14:37:45 -03:00
Matheus Lopes a1f398e756 Minor fix for issue #10637 2016-04-04 17:25:23 +00:00
JeroenSormani a8abfef5fa Optimize the visuals when loading the product data meta box 2016-04-03 19:07:46 +02:00
Wampamba David ff5c52b6bb Adds Ugandan Shilling currency and currency symbol. 2016-04-02 14:11:35 +03:00
Claudio Sanches 7e791e6f4f Align variations params 2016-04-01 15:00:00 -03:00
Claudio Sanches fb8773c570 Group dimensions 2016-04-01 14:57:25 -03:00
Claudio Sanches cae8849af9 Fixes on product params 2016-04-01 14:36:10 -03:00
Mike Jolley 3c97c93569 fix spacing 2016-04-01 17:33:00 +01:00
Mike Jolley c0ec85cd84 Implement new gateway screen in wizard and auto-install plugin-base gateways when chosen. 2016-04-01 17:30:04 +01:00
Mike Jolley 00ba45512e Merge branch 'shipping-wizard-removal' 2016-04-01 11:20:14 +01:00
Mike Jolley 7c272a2d0e Merge pull request #10629 from misenhower/fix-wc-get-product
Make wc_get_product() return false if the specified post is not a product
2016-04-01 11:18:23 +01:00
Mike Jolley d1f363c356 Exclude geolocation of bots by user agent
Closes #10626
2016-04-01 11:14:26 +01:00
Mike Jolley b2dafc3b33 Merge pull request #10631 from mattallan/matt/webhook-async-filter-param
Add $arg param to the `woocommerce_deliver_webhook_async` filter
2016-04-01 10:54:37 +01:00
Mike Jolley 082a3bc2c9 Change system status nav markup 2016-04-01 10:53:30 +01:00
matttallan fc503bb863 Add $arg param to the woocommerce_deliver_webhook_async filter 2016-04-01 17:05:24 +10:00
Matt Isenhower 7561f772d9 Make wc_get_product() return false if the specified post is not a product 2016-03-31 17:51:01 -07:00
Claudio Sanches 1021bfb754 Simplified the way how check terms permissions 2016-03-31 16:57:55 -03:00
Claudio Sanches 5091b36d41 Align variables 2016-03-31 16:34:16 -03:00
Claudio Sanches ab449a6a62 Improved coupons endpoint using the new Coupon Data fields 2016-03-31 16:32:12 -03:00
Claudio Sanches c890961f76 Fixed contexts on abstract terms controller 2016-03-31 16:17:39 -03:00
Claudio Sanches bf64942b28 Align variables 2016-03-31 16:14:18 -03:00
Claudio Sanches 8df7723895 Fixed permissions error messages 2016-03-31 16:03:59 -03:00
Claudio Sanches bb029747b7 Changed $namespace from public to protected in posts controller 2016-03-31 15:28:17 -03:00
Claudio Sanches 92da79ce76 Changed $namespace from public to protected 2016-03-31 15:25:31 -03:00
Mike Jolley bfadb22c7c Added notice when no methods exist 2016-03-31 18:54:33 +01:00
Mike Jolley 3a00348795 Remove shipping options from wizard 2016-03-31 17:17:11 +01:00
Mike Jolley 32475695a5 Simplify wizard tax rates and import automatically 2016-03-31 15:54:54 +01:00
Mike Jolley c9196a6377 Move help tip to core functions 2016-03-31 15:30:42 +01:00
Mike Jolley c757fd9940 Merge branch 'shipping-zone-modals'
# Conflicts:
#	assets/css/admin.css
#	assets/css/admin.scss
2016-03-31 15:20:06 +01:00
Claudio Sanches 77da7ccc2b [2.5] [API] Fixed stock management for product variations, closes #10602 2016-03-31 10:03:12 -03:00
Claudio Sanches 00a1a9c3da Fixed backorders and stock status 2016-03-31 09:56:22 -03:00
Mike Jolley c9dfbab9a2 Simplify - strip dashes from zip
Fixes #10604
2016-03-31 12:27:34 +01:00
Mike Jolley e2139a5c5e Clear prices transient for variable products after scheduled sale. 2016-03-31 12:03:03 +01:00
Mike Jolley d2ed9c0b0b More specific paypal URLs and avoid constant when forcing TLS
[2.5] too if the other one goes in.
2016-03-31 10:12:31 +01:00
Claudio Sanches b8dd156891 Added endpoint to list and get product reviews 2016-03-30 20:50:06 -03:00
Claudio Sanches 7b508307f0 Fixed links for webhooks deliveries and order notes 2016-03-30 20:42:06 -03:00
Claudio Sanches 7dcfcc9dfc Allow filter orders by product 2016-03-30 20:26:51 -03:00
Claudio Sanches bb7e5ecfb6 Allow filter products by taxonomies and sku 2016-03-30 20:05:12 -03:00
Claudio Sanches 5d99b8b336 Register dp filter for orders and allow filter orders by customer id 2016-03-30 19:11:56 -03:00
Claudio Sanches 9619c041cd Allow filter coupons by code 2016-03-30 18:42:51 -03:00
Claudio Sanches 1722f95a95 Allow filter customers by role or email 2016-03-30 18:33:37 -03:00
Claudio Sanches f78a2ec68b Added endpoint to list customer downloads 2016-03-30 18:12:34 -03:00
Claudio Sanches f76f0d8472 Check permissions in customers/me endpoint 2016-03-30 17:39:20 -03:00
Claudio Sanches 0cd16b3cc0 Fixed file description 2016-03-30 17:34:36 -03:00
Claudio Sanches fda9defef8 Fixed textdomains 2016-03-30 14:56:31 -03:00
Claudio Sanches 7676e85640 Fixed vendor wp rest functions file name 2016-03-30 14:55:43 -03:00
Claudio Sanches 8e9e9526ac Fixed date params 2016-03-30 14:53:46 -03:00
Claudio Sanches f574a149d1 Attributes permissions 2016-03-30 14:49:22 -03:00
Claudio Sanches 82a6a5f18e Settings and reports permissions 2016-03-30 14:33:33 -03:00
Claudio Sanches 0fce9c5243 New product terms permissions 2016-03-30 14:17:40 -03:00
JeroenSormani b77445787e Fix few typos and small docblock changes 2016-03-30 18:23:44 +02:00
Mike Jolley f4791be088 Merge branch 'pr/10432' 2016-03-30 17:10:01 +01:00
Mike Jolley f0d3162c1a Fixed wrong types 2016-03-30 17:09:54 +01:00
Claudio Sanches 768492c02c Fixed customer permissions 2016-03-30 11:54:49 -03:00
Claudio Sanches dedfe41c37 User permissions 2016-03-30 11:53:14 -03:00
Claudio Sanches 7afcc8482e Improved permissions for order notes and webhook deliveries 2016-03-30 11:43:01 -03:00
Claudio Sanches f4012b7f1f Reviewed post permissions 2016-03-30 11:17:16 -03:00
Mike Jolley 84d3fe2d82 wc_format_localized_decimal on dimensions 2016-03-30 13:19:01 +01:00
Mike Jolley cb27af14c4 Status page geoip database 2016-03-30 13:11:26 +01:00
Mike Jolley dbfba48411 Disable API fallback for geolocating customers
Causes server slowdown due to external calls. Should be off by default.
Closes #10615
2016-03-30 13:02:21 +01:00
Mike Jolley d18e1eb115 woocommerce_geolocation_local_database_path filter 2016-03-30 12:58:50 +01:00
Mike Jolley c82e177fd3 Fix coupon total replacement
Fixes #10618
2016-03-30 12:56:53 +01:00
Mike Jolley bcd90ea1fb Fix error is default address values
Fixes #10606
2016-03-30 12:55:29 +01:00
Mike Jolley 975f9d8c2d Remove nonce on cancel order URL
Nonces are invalid if the user ID changes during checkout e.g. through
registration. Cancel links are invalid.

cc @claudiosmweb

Fixes #10605
2016-03-30 12:45:25 +01:00
Mike Jolley 3a5feddbf5 [2.5] Set captions 2016-03-30 11:15:34 +01:00
Claudio Sanches 124a4291b0 Created new method to save product taxonomy terms 2016-03-29 22:06:05 -03:00
Claudio Sanches dc6b4e95c8 Added method to show product taxonomy terms 2016-03-29 21:57:05 -03:00
Claudio Sanches f675d49a54 Return product default attributes 2016-03-29 21:46:35 -03:00
Claudio Sanches 5bf8c808fc Added methods to create and edit products 2016-03-29 21:22:10 -03:00
Claudio Sanches a16b32825f Fixed rest functions names 2016-03-29 19:54:37 -03:00
Claudio Sanches 4a625fc2f2 New rest functions file name 2016-03-29 19:52:24 -03:00
Claudio Sanches ae2b3eb3fc Check if coupon code is empty 2016-03-29 19:11:49 -03:00
Claudio Sanches a0290a6c65 Stop check again if coupon have code when creating 2016-03-29 19:09:55 -03:00
Claudio Sanches d781e10d63 Coding standards 2016-03-29 17:24:32 -03:00
Claudio Sanches 8219cee256 Added methods to list and get products 2016-03-29 17:20:15 -03:00
Mike Jolley 687d4be0bf Case 2016-03-29 19:51:09 +01:00
Claudio Sanches cb2b9b3e50 Products schema 2016-03-29 15:48:08 -03:00
Mike Jolley 975c360ae3 Tweak icons and blank slate text 2016-03-29 19:37:02 +01:00
Mike Jolley 17958835a9 Merge pull request #10603 from toddlahman/master
Replace DELETE FROM to TRUNCATE to empty woocommerce_sessions table
2016-03-29 14:52:55 +01:00
Mike Jolley ae36ff71fa For PayPal requests, set CURL ssl version
@claudiosmweb another for 2.5 consideration
2016-03-29 14:28:15 +01:00
Mike Jolley dc635771e8 System status: Output CURL version
@claudiosmweb Might be good for 2.5 too
2016-03-29 14:27:37 +01:00
Claudio Sanches 9b9d40d7e9 Create order refunds 2016-03-28 17:33:13 -03:00
Claudio Sanches 90bdabcf41 Added methods to list and get order refunds 2016-03-28 16:41:17 -03:00
Claudio Sanches 0569ad3ca7 Refunds schema and improve delete and query 2016-03-28 16:21:02 -03:00
Claudio Sanches 6629395797 Fixed description for orders schema 2016-03-28 16:17:11 -03:00
Claudio Sanches 2cd2b54c29 Fixed order delete 2016-03-28 16:10:05 -03:00
Claudio Sanches 9738ee04c2 Update orders 2016-03-28 16:04:24 -03:00
Claudio Sanches 242b362020 Fixed file names 2016-03-28 09:25:50 -03:00
Claudio Sanches 90458a8de5 Allow create orders 2016-03-28 09:22:54 -03:00
Claudio Sanches 194b40ecb9 Created exception class 2016-03-28 09:22:44 -03:00
toddlahman fb66dd2c80 Replace DELETE FROM to TRUNCATE to empty woocommerce_sessions table
If the size of the woocommerce_sessions table is 3.2 GB before the
Clear all sessions button is clicked, then it will delete all rows, but
leave the table size 3.2. Truncating/emptying the table resets the size
of the table, and deletes all rows.
2016-03-24 21:24:36 -07:00
Claudio Sanches 855ff7e6fe Check if customer exists and improved address and meta data 2016-03-24 18:04:27 -03:00
Claudio Sanches c4c7ef6da9 Added method to add metadata 2016-03-24 17:55:51 -03:00
Claudio Sanches 8bc11ddebd Save payment and currency when creating orders 2016-03-24 17:43:14 -03:00
Claudio Sanches 1bbbbf70f5 Added initial methods to create an order 2016-03-24 17:25:10 -03:00
Mike Jolley 5f6aa6c160 Fix modals and ajax events 2016-03-24 19:06:51 +00:00
Mike Jolley 8b53d1a618 Only load modal if supported 2016-03-24 18:31:39 +00:00
Mike Jolley d3ac3f4073 Modals first pass 2016-03-24 17:26:40 +00:00
Mike Jolley bea3c66777 Change arrow entity
@jameskoster
2016-03-24 14:27:32 +00:00
Mike Jolley 679443c9c9 Zones screen feedback
- Adds updated descriptions
- Adds shipping method descriptions in modal
- Adds order column tooltip
- Modified styles

@jameskoster
2016-03-24 14:08:26 +00:00
Claudio Sanches ab90f54880 Better name for required field notices filter #10597 2016-03-24 09:06:17 -03:00
Mike Jolley 74c1b88663 Merge pull request #10586 from franticpsyx/api_cli_order_item_args_filter
[WC 2.5/2.6] Add order line item args filter to wc api/cli set_line_item method
2016-03-24 11:35:56 +00:00
Mike Jolley 7a3d72d098 Merge pull request #10597 from vasikgreif/patch-2
Add filter for required fields error message
2016-03-24 11:26:56 +00:00
Mike Jolley af0b38dcea Fix results when no orders match search term
Fixes #10599
2016-03-24 11:21:30 +00:00
Mike Jolley 795cb6d763 Add class for bacs heading 2016-03-24 10:47:08 +00:00
Claudio Sanches 91dd99e472 Added methods to list and get orders 2016-03-23 19:19:08 -03:00
Mike Jolley ca5a46a2f9 Allow bulk deletion of refunds 2016-03-23 16:32:12 +00:00
Mike Jolley 3205975a24 Fix manual addition of shipping to orders 2016-03-23 15:16:09 +00:00
Mike Jolley dd68a57fff Merge pull request #10592 from woothemes/item-box-tweaks
Order Item Meta Box Tweaks
2016-03-23 15:03:24 +00:00
Mike Jolley 95de7f5a2c Minor spacing issues 2016-03-23 13:06:15 +00:00
vasikgreif 565e259851 Add filter for required fields error message
Add the ability to change required fields error message, as discussed here: https://github.com/woothemes/woocommerce/pull/10591
2016-03-23 14:00:51 +01:00
Claudio Sanches efe4b76559 New order schema 2016-03-23 09:46:34 -03:00
Claudio Sanches 7c84066ad7 Initial order schema 2016-03-23 08:30:58 -03:00
Mike Jolley 534cd2a384 Use discount rounding mode when getting discounted price.
#10573 @claudiosmweb
2016-03-23 11:27:36 +00:00
Mike Jolley 6126e248b6 Merge pull request #10595 from woothemes/fix/wc-payment-tokens-older-php
Fix WC_Payment_Tokens for older versions of php
2016-03-23 10:44:54 +00:00
Mike Jolley 6a1cc6a472 Fix "Can't use method return value in write context" errors 2016-03-23 10:13:51 +00:00
Joey Kudish bde619c4d6 Fix for older versions of php
Older versions of php cannot check `empty()` with a non-variable. Fixes
fatal introduced in 1d35fd6d73
2016-03-22 17:36:24 -07:00
Claudio Sanches 3a0bf6c9b8 Added method to delete order notes 2016-03-22 15:49:41 -03:00
Claudio Sanches 935a784061 Fixed header location when creating attribute terms 2016-03-22 15:34:27 -03:00
Claudio Sanches 5d5f995011 Allow create order notes 2016-03-22 15:31:27 -03:00
Claudio Sanches 3fc4effed4 Added collection params for order notes 2016-03-22 15:17:35 -03:00
Claudio Sanches 2617642d5d Added methods to list and get order notes 2016-03-22 15:13:33 -03:00
Claudio Sanches 7a7856ab7e Order notes schema 2016-03-22 14:53:46 -03:00
Mike Jolley f73149feaf Tweak variation display and reenable bulk editing 2016-03-22 17:13:39 +00:00
Mike Jolley f1b3d0f708 Further layout tweaks 2016-03-22 14:54:02 +00:00
Mike Jolley 8d76396eaf Merge pull request #10588 from justinshreve/payment-tokens-wc-data
Convert WC_Payment_Tokens to use the new WC_Data
2016-03-22 14:14:29 +00:00
Mike Jolley 2b3083ae2f Merge pull request #10579 from justinshreve/add-meta-data-keys
Fix array key/meta id logic in WC_Data's meta handling
2016-03-22 14:14:07 +00:00
Mike Jolley 5862785522 Restyle items panel 2016-03-21 18:35:00 +00:00
Justin Shreve 1d35fd6d73 Convert WC_Payment_Tokens (and CC/eCheck tokens) to use the new WC_Data and meta handling code. 2016-03-21 11:06:17 -07:00
Mike Jolley 7be2b129b6 Removed bulk actions from order items panel
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.

Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00