Boro Sitnikovski
d302e18a9b
Rename `informational` to `info` in the phpdoc
2017-05-18 10:32:25 +02:00
Mike Jolley
e23acb3719
Fix shop page when using shop base and UTF8 shop page slug
...
To test, set shop page slug and name to `חנות` then set permalinks to
shop base.
Repeat that before and after patch.
Shop page 404 errors before patch.
Fixes #15111
2017-05-17 18:13:32 +01:00
Mike Jolley
956b1a6181
Adds storefront/theme step to the setup wizard
...
Also includes a background install to get Storefront installed and
activated on demand.
To test, use a default theme and go to wp-admin/index.php?page=wc-setup
The theme step will be after payments!
2017-05-17 17:42:18 +01:00
Beka Rice
8885d58799
Fix: Re-add date for wc_create_refund
2017-05-17 04:46:56 -04:00
Mike Jolley
34a7f9b3dd
Merge pull request #15084 from ryelle/add/profile-field-improvements
...
Customer Profiles: copy billing address to shipping address
2017-05-16 20:31:05 +01:00
Kelly Dwan
3cb3a1b085
Style & escaping fixes, based on review feedback
2017-05-16 14:01:14 -04:00
Mike Jolley
7205a8e020
Merge pull request #15090 from woocommerce/fix/14763
...
Use site locale for customer emails.
2017-05-16 17:27:39 +01:00
Claudio Sanches
f471a8d846
Merge pull request #15098 from woocommerce/fix/15087
...
If backorders are enabled, do not make variable products out of stock.
2017-05-16 12:45:10 -03:00
Claudio Sanches
21baa5d230
Merge pull request #15095 from woocommerce/fix/15056
...
Support searches < 3 chars but with limiting.
2017-05-16 12:44:04 -03:00
Claudio Sanches
f7c26dee7b
Merge pull request #15079 from woocommerce/fix/settings-api-base-location
...
Fix 'base location' not being returned via the settings API.
2017-05-16 12:41:28 -03:00
Claudio Sanches
8a987ec822
Merge pull request #15072 from woocommerce/fix/15057
...
Make calculate tax function clear taxes if disabled on recalculation
2017-05-16 12:38:41 -03:00
claudiulodro
73b7b2d91b
Typo
2017-05-16 06:31:52 -07:00
Mike Jolley
cb76f38f11
If backorders are enabled, do not make variable products out of stock.
...
Fixes #15087
2017-05-16 13:06:38 +01:00
Mike Jolley
351b0e0c67
Support limiting in search_customers
2017-05-16 10:16:57 +01:00
Mike Jolley
bf613bc922
Limit results to 20 for short strings and allow < 3 chars
2017-05-16 10:16:04 +01:00
Mike Jolley
59e9477730
Merge pull request #15094 from bekarice/fix/php-fatal-undefined-function
...
Fix Fatal Error: undefined function
2017-05-16 09:34:38 +01:00
Mike Jolley
7ad295d64d
Merge pull request #15076 from woocommerce/feature/14385
...
Show login form on the "pay for order" step
2017-05-16 09:31:53 +01:00
Beka Rice
562c50a3b0
Fix Fatal Error: undefined function
2017-05-16 04:04:47 -04:00
claudiulodro
46b9190c9f
Remove extra restore_locale
2017-05-15 18:11:23 -07:00
claudiulodro
19047ffb00
Better way of doing it
2017-05-15 18:09:24 -07:00
claudiulodro
838b175f67
Use store language in customer emails
2017-05-15 14:34:37 -07:00
Kelly Dwan
ce06a92e57
Profiles: Add get_user_meta helper, which can fall back on core user fields when applicable, such as first_name, last_name, and email for billing fields.
2017-05-15 17:10:31 -04:00
Kelly Dwan
faea811a92
Customer profile: Add a “Copy from billing” button to shipping user meta fields
2017-05-15 17:09:02 -04:00
Claudiu Lodromanean
05132f724c
Merge pull request #15067 from woocommerce/fix/15047
...
$post global is not required in meta box callback
2017-05-15 10:35:07 -07:00
Justin Shreve
0c5588aac7
Makes sure that the 'base location' setting is returned to the /settings/general endpoint correctly. It uses a special setting type that the API didn't handle properly.
2017-05-15 10:21:06 -07:00
Mike Jolley
cfce278840
If logged out, show a form on the payment step so the customer can login.
...
Closes #14385
To test, create an order pending payment for a USER. If you use the
‘payment’ link on the edit order screen logged out you should see a
login form.
If you create an order and associate no user account, no form should be
shown and you don’t need to login.
2017-05-15 16:53:06 +01:00
Mike Jolley
dd798d219e
Make calculate tax function clear taxes if disabled on recalculation
...
Fixes #15057
2017-05-15 14:55:39 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
31651e41cb
Merge pull request #15063 from rasmusbe/unused-vars
...
Remove unused local variables
2017-05-15 12:45:54 +01:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Mike Jolley
87b66cec90
Merge pull request #15061 from rasmusbe/fix-array-duplicates
...
Remove duplicate entries from defined arrays
2017-05-15 12:33:20 +01:00
Mike Jolley
7c63c21eaf
$post global is not required in meta box callback
...
Fixes #15047
2017-05-15 12:29:11 +01:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Mike Jolley
99e63a8ca9
Merge pull request #15054 from woocommerce/improvement/14795
...
Integrate WC_Order_Query
2017-05-15 10:24:47 +01:00
Rasmus Bengtsson
51fd482206
Remove duplicate entries from defined arrays
2017-05-15 10:48:02 +02:00
claudiulodro
9e9b9b86ba
Cant use empty check in customer query var
2017-05-14 17:05:46 -07:00
claudiulodro
cec2c3b7dc
Couple requested changes
2017-05-13 12:22:22 -07:00
claudiulodro
d9c5536cf2
formatting
2017-05-12 15:31:34 -07:00
claudiulodro
fe40e9b96a
Make date queries work properly
2017-05-12 15:25:15 -07:00
claudiulodro
5b578c389f
Use previous filter name
2017-05-12 13:14:52 -07:00
claudiulodro
eee2ef82e8
Deprecate ->get_orders
2017-05-12 13:06:17 -07:00
claudiulodro
2ce90b3eb6
Slightly better date handling
2017-05-12 12:59:54 -07:00
Mike Jolley
0334ed255a
Merge pull request #15041 from woocommerce/fix/14985-address
...
Update all customer fields when updating via checkout
2017-05-12 19:48:20 +01:00
Mike Jolley
5e9f908df7
Merge pull request #15051 from reescott/fixlogtable
...
Fix #14967 by adding log_id as the secondary sorting column to log list.
2017-05-12 19:47:18 +01:00
claudiulodro
3861e32803
Migrate wc_get_orders
2017-05-12 11:45:01 -07:00
Scott Rees
b7b75c83f7
Fix #14967 by adding log_id as the secondary sorting column to log list.
2017-05-12 10:22:31 -07:00
Claudio Sanches
a273deffcb
Merge pull request #15042 from woocommerce/fix/14978
...
Ensure get_plugin_updates exists
2017-05-12 13:40:54 -03:00
Mike Jolley
3d7533e02b
Correct variable name
2017-05-12 12:09:05 +01:00
Mike Jolley
6797b2229d
Ensure get_plugin_updates exists
...
Fixes #14978
2017-05-12 10:56:43 +01:00
Mike Jolley
de4e2fc667
Update all customer fields when updating via checkout
...
Adds set_customer_address_fields helper to make it more DRY
Fixes #14985
2017-05-12 10:43:14 +01:00
Diego Zanella
8fd1366bba
#15038 Made WC_Checkout::get_posted_data() public
2017-05-12 10:23:10 +01:00
Claudiu Lodromanean
c6fc0003c3
Merge pull request #14971 from woocommerce/improvement/13646
...
WC_*_Query date queries
2017-05-11 21:43:41 -07:00
Claudio Sanches
663c1d5f51
Merge pull request #15012 from woocommerce/fix/14994
...
Correctly set rating during updates
2017-05-10 19:08:38 -03:00
Claudio Sanches
44c20f40d7
Merge pull request #15015 from woocommerce/fix/14973
...
Check we have a valid order in wc_get_payment_gateway_by_order
2017-05-10 18:35:36 -03:00
claudiulodro
e31cbfd5c4
Formatting for readibility
2017-05-10 14:33:29 -07:00
claudiulodro
d461ea86d6
Use local timezone for yyyy-mm-dd queries
2017-05-10 13:08:47 -07:00
Ninos Ego
89113cf6b2
Added filter for cookie name
2017-05-10 21:46:43 +02:00
claudiulodro
db1d5ac987
Simplify logic
2017-05-10 12:02:15 -07:00
Mike Jolley
7c82087bcd
Check we have a valid order in wc_get_payment_gateway_by_order
...
Fixes #14973
2017-05-10 19:54:20 +01:00
claudiulodro
a0727fb8a1
Change to date array
2017-05-10 11:49:11 -07:00
Mike Jolley
37a544dd6f
Ensure needle is set
...
Fixes #15004
2017-05-10 19:30:34 +01:00
Mike Jolley
523cf5d4ed
Protect against missing order in admin assets
...
Closes #15000
2017-05-10 19:26:30 +01:00
Mike Jolley
cd9119443a
Correctly set rating during updates
...
Fixes #14994
2017-05-10 19:21:38 +01:00
Mike Jolley
bc4d36fd3f
Add abspath checks
...
Closes #14999
2017-05-10 19:03:19 +01:00
Claudio Sanches
75def72ff7
Merge pull request #15009 from woocommerce/fix/14970
...
is_ip_address should be static
2017-05-10 14:48:45 -03:00
Mike Jolley
3ca4ec7927
is_ip_address should be static
...
Fixes #14970
2017-05-10 18:43:34 +01:00
Mike Jolley
55497b8671
Use VAT for norway
2017-05-10 17:48:03 +01:00
Tobias Schutter
3695414bcf
Added scalar check to order item meta
2017-05-10 11:28:32 +02:00
claudiulodro
5625eaf6fd
Docblock
2017-05-09 14:57:24 -07:00
claudiulodro
5d86b2f001
Formatting
2017-05-09 14:55:39 -07:00
claudiulodro
93835f69db
New working date query format
2017-05-09 14:49:45 -07:00
claudiulodro
c89e389b3f
Good progress towards better date queries
2017-05-09 11:37:45 -07:00
Mike Jolley
79efb68554
Undo wrong commit
2017-05-09 19:20:36 +01:00
Mike Jolley
19fb7ac079
Fix hardcoded table name
2017-05-09 19:17:24 +01:00
Mike Jolley
2ed5404d8f
Merge pull request #14963 from woocommerce/bekarice-fix/duplicate-stock-reduction-paypal
...
Bekarice fix/duplicate stock reduction paypal
2017-05-09 18:23:36 +01:00
Mike Jolley
d9a8de7c16
Ensure order object exists and pass through to avoid requery
2017-05-09 18:20:42 +01:00
Mike Jolley
275e0661ed
Merge branch 'fix/duplicate-stock-reduction-paypal' of https://github.com/bekarice/woocommerce into bekarice-fix/duplicate-stock-reduction-paypal
2017-05-09 18:12:45 +01:00
Mike Jolley
478b12f7e8
has_attributes for variations
...
Fixes #14959
2017-05-09 16:39:41 +01:00
Rasmus
98833fa9c5
Fix param documentation for WC_Product::is_type
2017-05-09 14:10:27 +02:00
Mike Jolley
8c896c3e2a
Merge pull request #14948 from woocommerce/pr/14936
...
Tweaks to Pr/14936
2017-05-09 11:28:31 +01:00
pixedelic
45d13ff1b2
added filters on zoom / flexslider / photoswipe enabling
2017-05-09 08:44:20 +02:00
Beka Rice
1c240bb014
Use order data store for stock checks in case of custom order types
2017-05-08 17:58:01 -04:00
Diego Zanella
3f3f2bdc2c
New filters for customer total spent
...
* Added new filters to allow altering the calculation of customer's total spent:
* `woocommerce_customer_get_total_spent`
* `woocommerce_customer_get_total_spent_query`
2017-05-08 19:39:13 +01:00
Claudio Sanches
58fa8542b6
Merge pull request #14933 from woocommerce/fix/14815
...
Use numeric, not decimal
2017-05-08 15:36:39 -03:00
Mike Jolley
e0583d2cd9
Merge branch 'master' into update/14848
...
# Conflicts:
# includes/class-wc-structured-data.php
2017-05-08 19:13:12 +01:00
Mike Jolley
61352adbf1
Make query code match and remove unneeded index
2017-05-08 19:09:55 +01:00
Mike Jolley
a741f2c7bf
Make other queries match the new query in 14936
2017-05-08 19:08:59 +01:00
Mike Jolley
26bc5ab35b
Merge branch 'master' into pr/14936
2017-05-08 18:54:54 +01:00
Claudio Sanches
e92b93f992
Merge pull request #14937 from woocommerce/fix/gallery-noscript-and-alignment
...
Gallery fixes
2017-05-08 14:45:41 -03:00
Claudio Sanches
1e2b62a1fe
Merge pull request #14935 from woocommerce/fix/14909
...
Correctly exclude terms in wc_get_related_products
2017-05-08 14:45:06 -03:00
Claudio Sanches
d2fb33c7d4
Merge pull request #14934 from woocommerce/fix/14151
...
Only set reply-to if the email + name is set.
2017-05-08 14:43:39 -03:00
Mike Jolley
f4941420b0
Merge pull request #14942 from woocommerce/fix/14917
...
Properly save order items in legacy REST API
2017-05-08 18:17:34 +01:00
Claudio Sanches
ec5df6450c
Merge pull request #14931 from woocommerce/fix/14854
...
Hide offers from structured markup when blank
2017-05-08 14:01:58 -03:00
Claudio Sanches
257594a67c
Merge pull request #14945 from woocommerce/pr/14875
...
Pr/14875
2017-05-08 13:56:12 -03:00
Mike Jolley
3c57508f56
Correct variable name in order structured data
...
Fixes #14944
2017-05-08 17:46:40 +01:00
Mike Jolley
03a69e1d44
Prepend new item keys with `$items_key` to make them unique.
...
Fixes #14875
2017-05-08 17:44:10 +01:00
Jason Judge
1156cf9e0d
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2017-05-08 17:26:46 +01:00
Jason Judge
0a5d9f9a3a
Issue #14900 Make INNER select explit.
2017-05-08 17:25:31 +01:00
Mike Jolley
7d956ca797
If prices are the same for all variations, use price not priceSpecification
...
Closes #14848
2017-05-08 16:53:27 +01:00
Claudio Sanches
7ba011a3b8
Properly save order items in legacy REST API
...
Closes #14917
2017-05-08 12:37:33 -03:00
Jason Judge
02fed84dc0
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2017-05-08 15:26:36 +01:00
Mike Jolley
e84092b900
wc_attribute_taxonomy_id_by_name should use wc_sanitize_taxonomy_name to prevent breaking special chars
...
Fixes #14920
2017-05-08 15:01:04 +01:00
Jason Judge
9bd56b312f
Issue #14900 Make implicit array cast to boolean an explixit check.
2017-05-08 14:39:08 +01:00
Mike Jolley
af949b73ec
Add noscript style for gallery
...
Fixes #14882
2017-05-08 14:35:23 +01:00
Mike Jolley
bdd3eba7c4
Use correct full size for variation images
...
Closes #14866
2017-05-08 14:35:07 +01:00
Mike Jolley
b961d6fb74
Correctly exclude terms in wc_get_related_products
...
Fixes #14909
2017-05-08 14:15:16 +01:00
Mike Jolley
a4ad49a8e3
Only set reply-to if the email + name is set.
...
Closes #14151
2017-05-08 12:50:39 +01:00
Mike Jolley
885e332f5a
Use numeric, not decimal
...
Closes #14815
2017-05-08 12:34:00 +01:00
Mike Jolley
c7e9a4c809
Hide offers from structured markup when blank
...
Fixes #14854
2017-05-08 11:59:33 +01:00
Mike Jolley
dd3be1278b
Merge pull request #14733 from woocommerce/feature/13646
...
WC_Object_Query & WC_Order_Query
2017-05-07 14:24:12 +01:00
Jason Judge
3dd5acfd47
Issue #14900 Tidy up code (long lines and commented old lines removed).
2017-05-05 22:44:27 +01:00
Jason Judge
980de0cd52
Issue #14900 Some fixes and variable name changes.
2017-05-05 21:54:04 +01:00
Claudio Sanches
c0e71a2238
Merge pull request #14797 from woocommerce/fix/14426-1
...
Standardize rating HTML in all templates
2017-05-05 17:47:28 -03:00
Claudio Sanches
b43fec3bd7
Merge pull request #14910 from woocommerce/fix/ip-address
...
Check if IP address is valid
2017-05-05 17:46:36 -03:00
Jason Judge
105a77a693
Issue #14900 Restructure _wc_term_recount() query.
...
I will split the super-long lines, and remove the commented old lines,
but just wanted something functional to test in production for tonight.
2017-05-05 21:38:25 +01:00
Claudio Sanches
95f2033f88
Merge pull request #14895 from franticpsyx/tweak-wc-display-item-meta
...
[3.0] Tweak meta display value rendering in `wc_display_item_meta`
2017-05-05 17:09:03 -03:00
Claudio Sanches
d39e317182
Merge pull request #14891 from woocommerce/zipcode-validation-FR
...
Add zipcode validation for France
2017-05-05 17:07:42 -03:00
Claudio Sanches
08db8cebec
Check if IP address is valid
2017-05-05 16:58:08 -03:00
claudiulodro
05f3283c75
Remove debug
2017-05-05 09:18:15 -07:00
claudiulodro
afe1a0dd21
Use term name for tax-based attribute reorder
2017-05-05 09:15:27 -07:00
Manos Psychogyiopoulos
bbf0be1205
Tweak meta display value rendering in wc_display_item_meta
2017-05-05 16:11:49 +03:00
corsonr
96bfb45b02
Add zipcode validation for France
...
Add zipcode validation for France and oversea territory.
2017-05-05 09:52:03 +02:00
Claudio Sanches
1753406dc0
Fixed warning when no customer country is defined.
...
Fixes #14850
2017-05-04 18:54:44 -03:00
Claudio Sanches
9930099b98
Merge pull request #14846 from woocommerce/fix/non-numeric-warning-order
...
Fix non numeric warning for orders.
2017-05-04 18:35:51 -03:00
Claudio Sanches
bc24b0e728
Merge pull request #14869 from ovidiumght/master
...
Wrong attribute param annotations
2017-05-04 13:51:35 -03:00
Claudio Sanches
b5385a6a20
Merge pull request #14864 from woocommerce/fix/14857
...
Introduced woocommerce_shop_order_search_results filter
2017-05-04 13:40:39 -03:00
Boro Sitnikovski
f493afe718
intval -> floatval
2017-05-04 10:09:16 +02:00
Beka Rice
adf0851117
Fix: mark stock as reduced in wc_reduce_stock_levels()
2017-05-04 03:52:38 -04:00
Ovidiu Magheitu
497c0ecae1
Wrong attribute param annotations
2017-05-04 09:48:05 +03:00
Claudio Sanches
abfedafd46
Merge pull request #14842 from woocommerce/fix/14799
...
Get outdated plugins using get_plugin_updates()
2017-05-03 18:42:17 -03:00
Claudio Sanches
421c9a3ba7
Introduced woocommerce_shop_order_search_results filter
...
Closes #14857
2017-05-03 18:14:41 -03:00
Claudio Sanches
84dfaf3c09
Merge pull request #14851 from franticpsyx/clone-meta-data
...
[3.0] Clone each meta stdClass object when cloning a WC_Data object
2017-05-03 18:03:54 -03:00
Claudio Sanches
12bd41dd4b
Merge pull request #14849 from franticpsyx/fix-get-price-html-from-to-fallback
...
[3.0] Incorrect use of `wc_format_price_range` in `get_price_html_from_to`
2017-05-03 17:40:40 -03:00
Claudio Sanches
6f126d7c60
Merge pull request #14853 from woocommerce/fix/14818
...
Improve "Save Order" button to reproduce WordPress post/page behavior
2017-05-03 17:36:22 -03:00
Claudio Sanches
63552c9757
Fixed conflict between global attributes and custom attributes.
...
Check if is a custom attribute before trying to get an ID from a global attribute.
2017-05-03 16:30:50 -03:00
Claudio Sanches
67258ec8da
Improve "Save Order" button to reproduce WordPress post/page behavior
...
Display "Create" when order is in "auto-draft" status and then display only "Update" after.
Closes #14818
2017-05-03 15:06:06 -03:00
Claudio Sanches
7edf10e9e1
Merge pull request #14843 from woocommerce/fix/14831
...
[REST API] Adds missing "id" in shipping zone methods endpoint
2017-05-03 13:37:56 -03:00
Manos Psychogyiopoulos
8f7671f066
Clone each meta object when cloning WC_Data object to avoid modifying original meta stdClass objects
2017-05-03 16:37:01 +03:00
Manos Psychogyiopoulos
faa53edc2b
Call `wc_format_sale_price` in `get_price_html_from_to`
2017-05-03 15:13:29 +03:00
Boro Sitnikovski
8f63211f1c
Fix non numeric warning for orders.
2017-05-03 08:31:35 +02:00
Claudio Sanches
7b5d56c643
[REST API] Adds missing "id" in shipping zone methods endpoint
...
This missing "id" will break CLI.
Added as duplicated with `instance_id` to keep backwards compatibility.
Fixes #14831
2017-05-02 20:37:03 -03:00
Claudio Sanches
9ae846ccad
Get outdated plugins using get_plugin_updates()
...
plugins_api() does a query for each plugin in api.wordpress.org that can takes 15 seconds, what is bad when have a lot of installed plugins and causing "gateway timeout" issues in System Status page.
get_plugin_updates() have already all available updates saved in cache.
Fixes #14799
2017-05-02 19:04:26 -03:00
Claudio Sanches
ed5877f395
Improve docblocks
2017-05-02 16:48:00 -03:00
Akeda Bagus
881929b9b3
Fix small typo in the docblock.
2017-04-29 13:52:14 +07:00
Claudio Sanches
ad09564ff3
Removed extra comment
2017-04-28 20:08:37 -03:00
Claudio Sanches
26a6dfa803
Applied wc_get_star_rating_html() to rating filter widget
2017-04-28 20:01:01 -03:00
Claudio Sanches
1d65c9d8b7
Better screen reader support
2017-04-28 19:59:50 -03:00
Claudio Sanches
5826a9bce0
Display total of customer reviews and applied to rating template
2017-04-28 19:56:05 -03:00
Claudio Sanches
685b999357
Fixed missing variable
2017-04-28 19:41:11 -03:00