Claudio Sanches
529fa3eb58
[REST API] Improve how handle product and variations images #11310
2016-06-30 13:03:52 -03:00
kongper
132c848b38
Closes woothemes/woocommerce#11309
2016-06-30 14:38:41 +02:00
Mike Jolley
a942cfade8
Make sure page ID is > 0
...
Closes #11305
2016-06-30 12:23:41 +01:00
Mike Jolley
930cc3fbd3
Use notice type
...
Closes #11307
2016-06-30 12:10:27 +01:00
Mike Jolley
f7bfb39c77
Merge pull request #11291 from rodrigoprimo/improve-wc-orders-count-performance
...
Improve wc_orders_count() performance by running a query to count only posts of the given status
2016-06-30 09:34:17 +01:00
Mike Jolley
53e75f3d4d
Merge pull request #11300 from rspublishing/update-class-wc-meta-box-coupon-data.php
...
Updates class-wc-meta-box-coupon-data.php
2016-06-30 09:32:40 +01:00
Mike Jolley
361ab507d2
Cast class to array
...
Closes #11294
2016-06-30 08:47:06 +01:00
Mike Jolley
02f8e12ed5
Remove h1 and legacy icon, switch to nav element
...
Closes #11296
2016-06-30 08:39:04 +01:00
rspublishing
63c0445957
Replacing link
2016-06-30 09:25:39 +02:00
rspublishing
1a0f5ae723
Updates the includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php file
2016-06-30 09:16:52 +02:00
Claudio Sanches
411585e8c8
Updated the default sorting of product_category shortcode, closes #11295
2016-06-30 04:16:22 -03:00
Claudio Sanches
f8377fd55b
Removed dead variable
2016-06-30 02:21:11 -03:00
Rodrigo Primo
3c485fc2a1
Use WC_Cache_Helper::get_cache_prefix() to generate the cache key for wc_orders_count()
2016-06-29 16:19:47 -03:00
Rodrigo Primo
1a394fbe02
Improve wc_orders_count() performance by running a query to count only posts of the given status
...
The function wc_orders_count() is called on every admin page. WooCommerce core uses it to count only orders with the status 'processing' and typically a site has only a few of those orders. But since wc_orders_count() calls internally wp_post_count() this means that MySQL will have to count the number of orders of all status. Thus, in a site with a significant number of orders, this query can be slow.
This commit changes wc_orders_count() function to query directly the database to get the number of orders for a given status instead of using wp_post_count(). On a WooCommerce installation I manage, the old query takes about 2 seconds to run and the new query takes 0.002 seconds.
2016-06-29 15:04:59 -03:00
Mike Jolley
a9918043b9
Only show available on backorder if notifying customer
2016-06-29 15:51:20 +01:00
Mike Jolley
92c670acde
Fix - woocommerce_local_pickup_methods comparison by stripping instance IDs before the check.
...
@claudiosmweb Seems that local_pickup in zones did not get base tax
applied due to method id mismatch.
2016-06-29 15:23:42 +01:00
Mike Jolley
697b24e262
Merge pull request #11285 from frozzare/pr/woocommerce_quantity_input
...
Set min and max value to empty string if not set
2016-06-29 14:03:32 +01:00
Fredrik Forsmo
755ede10a3
Set min and max value to empty string if not set
2016-06-29 13:13:11 +02:00
Mike Jolley
9a77620cc4
Split download permission query from order retrieval to reduce overhead.
...
Closes #11274 @claudiosmweb
2016-06-29 12:06:03 +01:00
Mike Jolley
01a2acabdc
Should be empty check
...
#11283
2016-06-29 10:44:27 +01:00
Mike Jolley
0780d94d0b
Merge pull request #11283 from frozzare/patch-1
...
Add isset to `home` args to fix PHP Notice
2016-06-29 10:43:43 +01:00
Mike Jolley
ccd6389ecc
Merge pull request #11244 from woothemes/password-reset-flow
...
Password resets with cookies
2016-06-29 10:43:24 +01:00
Fredrik Forsmo
fd7b910afa
Add isset to `home` args to fix PHP Notice
...
Fixes #11282
2016-06-29 09:27:28 +02:00
Shohei Tanaka
2ce84d0854
add JP (Japan) postcode format
...
match the postcode validation for Japan
2016-06-29 06:54:59 +09:00
Claudio Sanches
96626ac6fb
Merge pull request #11275 from helgatheviking/master
...
fix link to Shipping zones from deprecated free shipping method
2016-06-28 15:28:12 -03:00
Claudio Sanches
7701d4ce99
Merge pull request #11277 from coderkevin/fix/checkout-section-urls
...
Fix checkout gateway section urls (#11273 )
2016-06-28 15:18:32 -03:00
Kevin Killingsworth
89fda4204e
Fix checkout gateway section urls ( #11273 )
...
Fixes issue #11273
Changes from class name to gateway id for section name.
2016-06-28 12:48:03 -05:00
Claudio Sanches
ff50570b5c
[REST API] Check if tax subtotal exists before to prevent errors, closes #11270
2016-06-28 14:44:01 -03:00
Kathy Darling
f5cb48c76f
fix link to Shipping zones from deprecated free shipping method
2016-06-28 10:31:26 -05:00
Mike Jolley
007bf780d1
Merge pull request #11272 from lordgiotto/master
...
Added $notice as second argument of "woocommerce_demo_store" filter
2016-06-28 16:26:19 +01:00
Lorenzo
449b3a949d
Added $notice as second argument of "woocommerce_demo_store" filter
2016-06-28 16:26:26 +02:00
Mike Jolley
adf0c2152e
Fix - Don't sync ratings right away; meta won't exist in some cases.
2016-06-28 15:24:37 +01:00
Claudio Sanches
53552f8028
Require create webhook secret in the REST API
2016-06-27 21:55:54 -03:00
Claudio Sanches
c7579c5f0b
[REST API] Add "number" property to orders endpoint, closes #11250
2016-06-27 21:53:08 -03:00
Claudio Sanches
cde356b259
Merge pull request #11261 from woothemes/fix-11245
...
Product coupon validation logic
2016-06-27 21:11:33 -03:00
Mike Jolley
2bbb1453fb
External product SKU
2016-06-27 16:04:49 +01:00
Mike Jolley
48bba78cae
Only apply new logic to product coupons
2016-06-27 15:58:08 +01:00
Mike Jolley
01b48e699a
Fix exclude_product_ids prop
2016-06-27 15:02:58 +01:00
Mike Jolley
0ed58784fd
Fix - add validate_excluded_items function to validate product coupons before applying them
2016-06-27 15:02:32 +01:00
Mike Jolley
8a46831eb1
Made coupon valid check more readable
2016-06-27 14:59:50 +01:00
Mike Jolley
931660038a
Update debug mode wording
...
Closes #11258
2016-06-27 12:28:46 +01:00
Mike Jolley
b1d4ce3276
Only show mysql notice if mysql in version string
...
Closes #11254
2016-06-27 12:23:47 +01:00
Mike Jolley
3ed7e3574a
Merge pull request #11252 from jluisfreitas/patch-2
...
add PT (Portugal) postcode format
2016-06-27 11:53:05 +01:00
Mike Jolley
6898a79005
If the cart shortcode is used on checkout, hide the totals area
2016-06-27 11:42:50 +01:00
JLuis Freitas
977cd19e7a
add PT (Portugal) postcode format
2016-06-25 15:05:39 +01:00
Claudio Sanches
df075875b4
Improved wc_webhook_generate_secret()
2016-06-24 14:32:06 -03:00
Claudio Sanches
34a28d6841
[CLI] Allow filter the product variable types, closes #11240
2016-06-24 12:36:34 -03:00
Claudio Sanches
fd5d1e2085
Improve webhook secret generation in admin screen
2016-06-24 12:22:07 -03:00
Mike Jolley
6649500b79
Merge branch 'group-notices-11226'
...
# Conflicts:
# assets/js/frontend/checkout.min.js
2016-06-24 16:01:03 +01:00
Mike Jolley
c8cce05c4d
Use a cookie and redirect instead of query string
2016-06-24 15:06:01 +01:00