Akeda Bagus
7ac8232d2c
Make sure to init the upgrader and clean plugins cache before activate.
2019-07-11 15:58:04 +07:00
Akeda Bagus
b57f05fde9
Add missing description in docblock.
2019-07-11 15:58:04 +07:00
Akeda Bagus
69a4aa926a
Fix typo in error message.
2019-07-11 15:58:04 +07:00
Akeda Bagus
7adc256344
Move subscription check as part of installation steps.
2019-07-11 15:58:03 +07:00
Akeda Bagus
a6e089e47b
Use WP_REST_Server::get_raw_data to get body from the request.
2019-07-11 15:58:03 +07:00
Akeda Bagus
4cf69e350e
Rename filename for helper REST API controller.
2019-07-11 15:55:16 +07:00
Akeda Bagus
72ba4ed2e5
Include helper product install class in main helper class.
2019-07-11 15:55:16 +07:00
Akeda Bagus
61b0d974f4
Add reset state.
2019-07-11 15:55:16 +07:00
Akeda Bagus
0f5a33d543
Add authentication for helper request.
2019-07-11 15:55:16 +07:00
Akeda Bagus
d088aea85d
Initial work of adding product install API on top of helper.
2019-07-11 15:55:11 +07:00
Beka Rice
3c2e3cc9aa
Only set paying customer prop when required
2019-07-10 18:36:43 -04:00
Rodrigo Primo
e5857e91f9
Merge branch 'master' into fix/23508
2019-07-10 16:11:07 -03:00
Claudio Sanches
c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
...
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches
5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
...
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Claudio Sanches
22726bd74d
Merge pull request #24120 from woocommerce/fix/24110
...
add filter for product import image separator
2019-07-10 14:30:34 -03:00
Ron Rennick
71d7f2c1bb
remove trailing space
2019-07-10 14:01:38 -03:00
Gerhard Potgieter
2734b190c1
Merge pull request #23881 from ionutcalara/master
...
Update find matching variation method inner query
2019-07-10 15:53:30 +02:00
Gerhard Potgieter
49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
...
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Gerhard Potgieter
9ca6dad11e
Merge pull request #23433 from justlevine/master
...
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Ron Rennick
64476263b8
add filter for product import image separator
2019-07-10 09:13:05 -03:00
Mike Jolley
c928188831
Update from master
2019-07-10 12:57:02 +01:00
aslamshekh
3df0769366
I have done with few changes which is suggested.
2019-07-10 14:52:59 +05:30
Gerhard
98c24b1090
Merge branch 'master' into pr/23043
2019-07-10 10:34:52 +02:00
aslamshekh
15eaaebdeb
Fix-24115, Downloads report not getting 503 any more, If previously downloaded files are removed from product
2019-07-10 12:58:07 +05:30
Gerhard Potgieter
600da8cee2
Merge pull request #24112 from woocommerce/fix/tax-class-initialization
...
Fix Tax Class table initialization
2019-07-10 08:38:31 +02:00
Claudio Sanches
08d301779b
Set max index length for slug in tax class table
2019-07-09 17:59:16 -03:00
Andy Mardell
9d4e7f2e12
Rename filters
2019-07-09 21:22:41 +01:00
Claudio Sanches
d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
...
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches
18b876a95c
Always load generate code button
...
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
Claudio Sanches
6e6ca196f9
Merge branch 'master' into fix/23340
2019-07-09 16:32:43 -03:00
Rodrigo Primo
53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
...
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
Claudio Sanches
0e5c0eeccd
Merge pull request #23091 from woocommerce/fix/23087
...
Move settings save functionality to wp_loaded hook
2019-07-09 15:47:41 -03:00
Rodrigo Primo
2827b57060
Merge pull request #23785 from woocommerce/update/14361
...
Use WP 5.0 determine_locale() function
2019-07-09 15:46:47 -03:00
Claudio Sanches
da00ef76cc
Merge pull request #24111 from alerobertson/add/tag-operator-shortcode
...
Add tag_operator to products shortcode
2019-07-09 15:37:43 -03:00
Claudio Sanches
6c0ef10016
Do not save create taxes with empty names
2019-07-09 15:26:07 -03:00
Claudio Sanches
56240c9633
Prevent saving empty tax classes into the database
2019-07-09 15:23:46 -03:00
Claudio Sanches
b178f1be1f
Set initial tax classes
2019-07-09 15:13:02 -03:00
Claudio Sanches
1425b0c3b6
Crate tables before create options
2019-07-09 15:12:34 -03:00
Claudio Sanches
958a970255
Include missing wc_tax_rate_classes in WC_Install::get_tables
2019-07-09 15:02:07 -03:00
Rodrigo Primo
34e5018137
Merge pull request #23262 from woocommerce/fix/23257
...
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
alerobertson
b7ab7b81c9
Add tag_operator to products shortcode
...
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches
92253ea862
Merge pull request #23773 from woocommerce/fix/23744
...
PayPal pass billing address when shipping address option disabled
2019-07-09 12:48:07 -03:00
Claudio Sanches
32996d2fdd
Merge branch 'master' into pr/23043
2019-07-09 12:39:40 -03:00
vedanshujain
dd783615cc
Use helper method instead of `wp_list_pluck` to avoid notices
...
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.
We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
Diego
f95f73c548
Added arguments to filter `woocommerce_ajax_order_item`
2019-07-09 13:31:47 +01:00
vedanshujain
e2577b3a06
[Setup] Make PostCode optional as few countries don't use them
...
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Gerhard Potgieter
a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
...
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard Potgieter
013ee83b47
Merge pull request #23189 from woocommerce/tracks/coupons
...
Tracks: Add coupons view events
2019-07-09 11:04:43 +02:00
Gerhard
7038c73ab4
Merge branch 'master' into update/exclude-compiled-assets-from-git
2019-07-09 10:57:40 +02:00
Claudio Sanches
01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
...
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
Claudio Sanches
55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
...
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Claudio Sanches
c1223e3890
Fixed meta: label
2019-07-08 18:52:03 -03:00
Claudio Sanches
8b04f8d6cc
Merge pull request #23150 from woocommerce/fix/23135
...
Made WooCommerce roles translatable
2019-07-08 18:39:33 -03:00
Claudio Sanches
fb19ffe48f
Avoid infinity loop caused by PHP warning
2019-07-08 18:38:03 -03:00
Claudio Sanches
db06d3dbae
Merge branch 'master' into update/22164-tax-rate-class-table
2019-07-08 18:12:23 -03:00
Claudio Sanches
b54997d9f5
Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221
2019-07-08 17:55:07 -03:00
Claudio Sanches
adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
...
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches
c131225825
Merge pull request #24050 from woocommerce/update/23930
...
Add support for namespaced Jetpack tracks_get_identity
2019-07-08 16:48:01 -03:00
Claudio Sanches
a4b8184464
Merge pull request #23950 from parmarhardip/fix-23944
...
Currency changes applied for 'São Tomé and Príncipe dobra' and 'Mauritanian ouguiya'
2019-07-08 16:12:53 -03:00
Claudio Sanches
da99bc8ca0
Merge branch 'master' into feature/feature-plugin-packages
2019-07-08 14:33:21 -03:00
Paul Sealock
2d2ef711b8
Pass in select id
2019-07-08 11:41:52 +12:00
Paul Sealock
bc23340909
Use #doaction to target bulk actions
2019-07-05 17:02:30 +12:00
Paul Sealock
7af9d1813d
Tracks: Add coupons view events
2019-07-05 16:46:58 +12:00
Paul Sealock
8777dc4c01
Revert title to WooCommerce Admin
2019-07-05 16:11:35 +12:00
Paul Sealock
1116e5516d
update 'free' usage and wc-admin description
2019-07-05 16:10:10 +12:00
Rodrigo Primo
b648647893
Merge pull request #23741 from woocommerce/feature/23728
...
Allows customize buyer name in orders list screen
2019-07-04 16:23:43 -03:00
Rodrigo Primo
9eed45af4e
Merge pull request #23740 from woocommerce/fix/23735
...
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-07-04 16:20:11 -03:00
Rodrigo Primo
4712f75f67
Merge branch 'master' into fix/23508
2019-07-04 16:13:01 -03:00
Rodrigo Primo
4de12633d6
Merge pull request #24073 from woocommerce/fix/status-helper-disconnected-typo
...
Fix missing space and closing <strong> tag in WooCommerce.com disconnect message
2019-07-04 16:05:59 -03:00
Rodrigo Primo
9325e233d7
Merge pull request #23190 from woocommerce/tracks/status-events
...
Tracks: Status page events
2019-07-04 15:21:07 -03:00
oscargare
2c8e45830a
Added new action "woocommerce_product_read" ( #23181 )
...
* Added new action "woocommerce_read_product_data"
* Added new action woocommerce_product_read
2019-07-04 14:17:34 -03:00
vedanshujain
8ab6cb2b5a
Round late when rounding at subtotal to reduce rounding error.
...
We were earlier rounding different tax rate values while they are merged, even if rounding at subtotal setting is enabled. This increases the rounding error, especially when prices are inclusive of taxes, and thus there is a chance that the total will be slightly different from when add the original values. For egs: https://github.com/woocommerce/woocommerce/issues/23917 .
This commit changes this behavior to round *after* we have summed all the precise unround values. Similar for items prices, we now round as late as possible, if rounding at subtotal is enabled.
2019-07-04 22:34:29 +05:30
Rodrigo Primo
a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
...
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard Potgieter
213e52852c
Merge pull request #23968 from woocommerce/fix/23954
...
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Gerhard Potgieter
a91d271ae2
Merge pull request #23776 from woocommerce/fix/23699
...
Moved the JS enqueue from get_instance_form_fields to admin_footer hook.
2019-07-04 13:13:35 +02:00
Gerhard Potgieter
12fbfa5677
Merge pull request #22927 from woocommerce/update/22895
...
Allow "Thanks" wording in emails to be reworded by admin
2019-07-04 12:43:00 +02:00
Gerhard
52ef1d0b5f
Remove esc_html call, it messes with the code tags.
2019-07-04 11:33:05 +02:00
Gerhard Potgieter
c484fdd6d9
Merge pull request #24023 from woocommerce/fix/engine-php-notice
...
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-07-04 10:55:03 +02:00
Gerhard
d4eb233843
Deprecate email_footer_replace_site_title and use replace_placeholders
2019-07-04 09:36:05 +02:00
Daniel Bitzer
20625e9a45
Fix missing space and closing <strong> tag
...
Strong tag was not being echoed and space was missing after full stop.
2019-07-04 16:57:50 +09:30
Gerhard Potgieter
c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
...
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Gerhard Potgieter
007fc457a3
Merge pull request #24020 from woocommerce/fix/plural-forms-usage
...
Correct singular form usage in class-wc-admin-report.php
2019-07-04 09:23:14 +02:00
Gerhard Potgieter
762f051080
Merge pull request #24071 from woocommerce/add/action_log-excluded-comment-type
...
WC_Comments: Add action_log to excluded types in wp_count_comments
2019-07-04 09:18:03 +02:00
Gerhard Potgieter
54cab8086c
Merge pull request #23998 from yash-webkul/patch-1
...
Update class-wc-ajax.php
2019-07-04 09:17:03 +02:00
Gerhard
5d604329fc
Reword postfix to suffix
2019-07-04 09:07:02 +02:00
Gerhard
9e2ba43d3b
Forgot the 9
2019-07-04 09:05:05 +02:00
Gerhard
164f09e9c7
Remove abiguous characters that are dificult to read.
2019-07-04 09:00:15 +02:00
Paul Sealock
08224c06f2
Add facebook and wc-admin to 'obw_recommended' Tracks event properties
2019-07-04 13:07:18 +12:00
Timmy Crawford
e5b9f508bc
WC_Comments: Add action_log to excluded comment_types in wp_count_comments
2019-07-03 15:06:21 -07:00
Gerhard
538edcaac0
Make button text translatable.
2019-07-03 22:57:08 +02:00
Gerhard
24fc4948c0
Add generate coupon code button for quick coupon code generation.
2019-07-03 22:48:30 +02:00
Mark Senff
9c013b132b
Update html-product-attribute.php
2019-07-03 07:30:32 -04:00
Gerhard
8a972ee5c3
Add check for empty string when checking meta_value since checking an empty string in mysql against an int results in a 0 value.
2019-07-03 12:37:28 +02:00
Gerhard
7ff9788450
Use plugin_path instead of plugin_url.
2019-07-03 11:49:51 +02:00
Gerhard
77e8e36f72
Add notice when assets are not built, introduce grunt assets task for compiling and minifying assets.
2019-07-03 11:46:28 +02:00
Paul Sealock
01f428d34f
install plugin
2019-07-03 13:12:24 +12:00
Paul Sealock
b65ce3dd26
OBW: Add wc-admin to recommended page
2019-07-03 13:02:07 +12:00
Timmy Crawford
6f6265f8e3
Track views of the last step in the OBW.
2019-07-02 14:56:08 -07:00
Timmy Crawford
3f6d5eb49a
Tracks: Fix marketing signup track.
2019-07-02 14:47:41 -07:00
Peter Fabian
6727fdba62
Updated constants' names to better reflect their usage.
2019-07-02 18:44:43 +02:00
Claudio Sanches
cb12b30c85
Fixed @since tag version
2019-07-02 12:51:36 -03:00
Rodrigo Primo
737f6af5e8
Introduce file type check for tax rate importer
2019-07-02 10:44:21 -03:00
Rodrigo Primo
cabf9de71a
Added nonce check to CSV importer actions
2019-07-02 10:37:46 -03:00
Rodrigo Primo
18813662dd
Fix link to documentation about WordPress and PHP minimum requirements
2019-07-02 09:19:39 -03:00
Gerhard
f74c32c17b
Add return
2019-07-02 10:25:32 +02:00
Gerhard
e08279d190
Add support for namespaced Jetpack tracks_get_identity from Jetpack 7.5
2019-07-02 10:20:57 +02:00
Andy Mardell
821d387c19
Add full-stop to inline comment
2019-07-01 08:31:10 +01:00
Rodrigo Primo
b08fd05a7d
Fix: check if DB_NAME is defined before using it
...
WooCommerce relies on the constant DB_NAME to display information about the database tables in the system status page. The problem is that this constant is not always defined (e.g., when the plugin HyperDB is used to replace the standard wpdb class). When that is the case, WooCommerce will incorrectly say that its core tables are missing and the following PHP warning will be generated:
```
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP)
wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php:708
```
To fix this, this commit checks to see if DB_NAME is defined before using it. When the constant is not set, WooCommerce will display the following message to the users instead of the list of supposedly missing tables:
```
Database information: Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.
```
2019-06-28 17:57:54 -03:00
Jeff Stieler
3bf58f2d48
Tracks: fix blog ID retrieval from Jetpack options.
...
JavaScripty syntax resulted in boolean values.
2019-06-27 14:15:17 -06:00
Boro Sitnikovski
a7f5d87f5e
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-06-27 17:34:08 +02:00
Rodrigo Primo
68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
...
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00
Rodrigo Primo
f3b0d755fd
Correct singular form usage in class-wc-admin-report.php
...
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Andy Mardell
f2152e665e
Allow notice type changes when updating cart
2019-06-27 14:54:35 +01:00
Rodrigo Primo
3f2cacb1be
Use phpcbf to fix phpcs violations in class-wc-admin-report.php
2019-06-27 10:48:31 -03:00
Rodrigo Primo
12d03d8d57
Merge pull request #23863 from Jon007/patch-2
...
Avoid attempting to cache expired sessions
2019-06-27 10:15:39 -03:00
Kris Shannon
3945694e37
Force string comparison for customer_id
...
In 203dba5
a check against the current user id was introduced.
This check is always failing because of a type mismatch causing an unnecessary insert/update query against the database.
2019-06-27 18:40:39 +10:00
Gerhard Potgieter
698625ce1d
WP & PHP Upgrade Notices ( #23975 )
...
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.
* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1
* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.
* Add missing variables for adding nag class
* Add styling to dashboard widget
* Rework css to use exclamation instead
* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.
* Update constant to reflect minimum requirements.
* Don't show banner. Fix undefined variable.
* Remove dashboard widget
* Update banner link to docs site
* Add link to docs page where instructions live for updating
* Change button text
* Add UTM params to docs link
* Moved the msg logic from template to php file.
* Bail out early when PHP and WP versions are ok.
* Added missing translation functiog
* Extracted notice function from reset_admin_notices.
To follow suit with other similar functions in the file.
* Synchronize fetching of WP version.
* Removed unused functions.
* Corrected indent.
* Reduce number of variables and fixed coding standards
* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley
a0a58cfb15
update from master
2019-06-26 15:26:47 +01:00
Mike Jolley
48e1dc5bec
Remove init_packages from class-woocommerce
2019-06-25 13:12:14 +01:00
MD0123-Hardip
60cafccb37
added new line in update-function.php file
2019-06-25 15:20:26 +05:30
MD0123-Hardip
530d53c428
added new 370 function for currency updater.
2019-06-25 15:17:16 +05:30
Yash Kapoor
84fd2bbca9
Update class-wc-ajax.php
...
Removed unused code.
2019-06-25 10:58:56 +05:30
Claudio Sanches
deec93f8ca
Merge pull request #23769 from mch0lic/master
...
Forward query (GET) parameters when executing a batch REST API request.
2019-06-24 12:39:36 -03:00
Claudio Sanches
1f73c63a57
Merge pull request #23909 from woocommerce/fix/23895
...
Explicitly check 0 value attributes when looking up variations.
2019-06-24 12:35:39 -03:00
Claudio Sanches
45f1ac63e0
Merge pull request #23935 from malviyaritesh/fix/23931-sale-tooltip
...
Change misleading tooltip for product sale meta box
2019-06-24 12:35:04 -03:00
Claudio Sanches
fe4dfea8eb
Merge pull request #23771 from woocommerce/fix/23756
...
Fix Top rated shortcode results
2019-06-24 12:18:57 -03:00
Claudio Sanches
912ee38836
Merge pull request #23812 from woocommerce/fix/rest-api-customers-type
...
Fixed a typo in customers endpoint
2019-06-24 12:18:15 -03:00
Claudio Sanches
606c0417a9
Merge pull request #23837 from woocommerce/fix/23834
...
Make NL postcode validation more flexible
2019-06-24 12:17:53 -03:00
Claudio Sanches
8d0e2f632b
Merge pull request #23878 from woocommerce/fix/23865
...
Shows city as an optional field for Singapore
2019-06-24 12:17:30 -03:00
Claudio Sanches
c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
...
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Claudio Sanches
35c4183cad
Merge pull request #23966 from woocommerce/fix/23946
...
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-24 12:11:47 -03:00
Claudio Sanches
09408d9296
Merge pull request #23967 from woocommerce/fix/23947
...
Fix phone number format to accept "(", and ")"
2019-06-24 12:09:09 -03:00
aslamshekh
dce3f4907f
Fix - 23913, Delete product query transients when removing terms via wp_remove_object_terms()
2019-06-24 18:58:20 +05:30
Mike Jolley
558a330291
Update version/path getters
2019-06-21 20:00:03 +01:00
Mike Jolley
6bfe8d63c5
Load Packge files
2019-06-21 19:58:38 +01:00
Mike Jolley
d31f6f70a2
Package init method
2019-06-21 17:28:46 +01:00
Mike Jolley
e3dc79481d
Init the blocks library using autoloading
2019-06-21 15:03:28 +01:00
Mike Jolley
ed0a4aae1f
update shipping saving in setup wizard
2019-06-21 13:59:51 +01:00
Mike Jolley
3a1c401a5b
update status report
2019-06-21 13:59:40 +01:00
Mike Jolley
833ad116c6
Update webhooks
2019-06-21 13:59:32 +01:00
Mike Jolley
ab37649474
get_endpoint_data helper
2019-06-21 13:59:25 +01:00
Mike Jolley
5b105d0c7f
Init the API and add to status report
2019-06-21 13:40:53 +01:00
Mike Jolley
950f31a9e0
Remove abstract rest class that is in the package
2019-06-21 13:40:10 +01:00
Mike Jolley
8b41b03f2e
Remove blocks files
2019-06-21 12:23:41 +01:00
Gerhard
9212ee5082
Add check before calling wc_delete_order_item for taxes to make sure order is editable.
2019-06-20 15:01:01 +02:00
Peter Fabian
a6a26633a4
Removed extra check if the code is executed within admin.
2019-06-20 14:07:52 +02:00
MD0123-Hardip
a01d59e581
added db currency updater for both currency
2019-06-20 16:17:23 +05:30
Claudio Sanches
02aafa1948
Merge pull request #23911 from woocommerce/update/23887
...
Update auto username generation description
2019-06-19 20:22:02 -03:00
Claudio Sanches
88100b8f8e
Merge pull request #23926 from malviyaritesh/fix/23922-quote-in-pass
...
Stop unslashing password while registering user
2019-06-19 19:39:39 -03:00
Claudio Sanches
e759317ef4
Merge pull request #23891 from malviyaritesh/fix/23888
...
Send boolean as expected, not string
2019-06-19 19:36:34 -03:00
Claudio Sanches
569e8a5b8f
Merge pull request #23925 from webdados/patch-2
...
Display Status > Logs timestamp with the Y-m-d H:i:s format
2019-06-19 19:11:13 -03:00
Claudio Sanches
84c8a2c165
Merge pull request #23936 from malviyaritesh/fix/23923-categories-link
...
Add missing post_type=product query var in url
2019-06-19 18:59:20 -03:00
Claudio Sanches
6989532274
Allow display multiple error messages through registration validation
2019-06-19 18:09:28 -03:00
Claudio Sanches
7073c6b3a2
Allow "(", and ")" in wc_format_phone_number()
2019-06-19 17:39:08 -03:00
Claudio Sanches
d17b96646c
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-19 17:19:13 -03:00
Mike Jolley
145cf3b770
Remove rest includes and controllers init
2019-06-19 11:56:51 +01:00
Mike Jolley
ce3a6cbbf8
Remove old include
2019-06-19 11:54:55 +01:00
Mike Jolley
78f9ea59ed
Moved auth and exception classes to main includes directory - these are shared between legacy and new API. The package may replace these in the future.
2019-06-19 11:52:50 +01:00
Mike Jolley
7451659b24
Delete REST API abstract classes
2019-06-19 11:49:28 +01:00
Mike Jolley
03e60ebb7c
Delete REST API classes
2019-06-19 11:48:12 +01:00
Mike Jolley
6ca9dac7d7
Remove REST API autoloader
2019-06-19 11:44:57 +01:00
Mike Jolley
9a07e92eba
Remove parent construct call since init() is used.
2019-06-19 11:31:04 +01:00
Mike Jolley
038bac16f5
Update paths to legacy API and implement init method.
2019-06-19 11:29:49 +01:00
Mike Jolley
00a8ef5d4d
Move legacy API files from /api/ to /legacy/api
2019-06-19 11:23:47 +01:00
Albert Juhé Lluveras
9e641e08dd
Merge pull request #23953 from woocommerce/fix/tracks-pixel-fixed
...
Set Tracks image position to fixed
2019-06-19 10:41:39 +02:00
Jonathan Moore
d8470aa45a
implementing review from @claudiosanches
2019-06-18 21:20:39 +01:00
Claudio Sanches
4061f870a2
Merge pull request #23720 from parmarhardip/FIX-23589
...
fix- 23589 I have fixed pricing issue.
2019-06-18 16:04:45 -03:00
Claudio Sanches
e18481e795
Merge pull request #23824 from woocommerce/fix/23799
...
Update Emogrifier library
2019-06-18 16:03:40 -03:00
Claudio Sanches
e849a5e044
Merge pull request #23877 from jdeeburke/fix/apply-coupon-fatal
...
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-18 16:00:39 -03:00
Claudio Sanches
a36dcf8aae
Merge pull request #23849 from woocommerce/fix/wc-tracker-reviews
...
Tracker: fix review count
2019-06-18 15:52:25 -03:00
Claudio Sanches
96787d62f9
Merge pull request #23828 from Jon007/patch-1
...
Avoid outputting a rating of zero when product has comments without a review rating.
2019-06-18 15:51:55 -03:00
Claudio Sanches
bf01eccfcd
Merge pull request #23840 from unfulvio/23839-do-not-throw-notice-rest-api-includes
...
[#23839 ] Do not throw autoloader notice if following notice instructions
2019-06-18 15:51:22 -03:00
Albert Juhé Lluveras
26c2d49586
Set Tracks image position to fixed
2019-06-18 13:05:30 +02:00
MD0123-Hardip
715528e58e
changes applied
2019-06-18 12:07:55 +05:30
rmalviya
4190e9fd4b
Add missing post_type=product in url
...
Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923 .
2019-06-14 12:28:08 +05:30
rmalviya
0e896f82fa
Change misleading tooltip for product sale meta box
...
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931 .
2019-06-14 11:12:54 +05:30
rmalviya
5df3621640
Do not unslash password when resetting
...
Similar to PR(#23926 ) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya
01025f9628
Stop unslashing password while registering user
...
After 79ff1b10e
password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922 .
2019-06-14 09:16:21 +05:30
Marco Almeida
3b7be608e4
Display Status > Log timestamp with the Y-m-d H:i:s format
...
Display WooCommerce > Statis > Log timestamp, when using WC_Log_Handler_DB, with the Y-m-d H:i:s format instead of the WordPress global date and time format options, because we need more detail on the shown timestamps and that might not be compatible with what we want for our global options.
2019-06-13 10:58:41 +01:00
Claudio Sanches
3ce6acec74
Updated outdated codex URLs
2019-06-12 19:31:01 -03:00
Claudio Sanches
5624af43a7
Updated docs about increasing memory allocated to php
2019-06-12 19:04:24 -03:00
Gerhard
84b6fa144f
Update description for automatic username generation to reflect how it actually works.
2019-06-12 12:13:41 +02:00
Gerhard
3894d156e6
Explicitly check 0 value attributes when looking up variations.
2019-06-12 11:27:27 +02:00
justlevine
efb8b9af57
Added missing quote
...
Quote missing between `placeholder` and `data-input-classes` attributes.
2019-06-11 20:47:22 +03:00
rmalviya
5bf8adf2dd
Send boolean as expected, not string
...
Originally checkout.js:336 expected string but changed to boolean
with 4ad370985
. Send boolean for `reload` in json and fix #23888 .
2019-06-08 20:12:44 +05:30
Claudio Sanches
47c370809e
Prevents taxes columns from being removed when the order is no longer editable
2019-06-07 10:07:32 -03:00
Jeff Stieler
05fd441145
Add payment method to order status change tracking.
2019-06-07 12:52:22 +02:00
Jeff Stieler
1bd9a7d9a7
Use a consistent tracks event naming scheme.
2019-06-07 12:31:42 +02:00
Jeff Stieler
e251557550
Track when users click “add order” from an order edit screen.
2019-06-07 12:21:04 +02:00
Ionut Calara
26dfe11493
Update find matching variation method inner query
...
Fix variation query to prevent the order by being ignored in some mysql
and mariadb versions. The order by has been moved outside and a left
join was added.
2019-06-07 13:05:01 +03:00
Jeff Stieler
6c90d9da57
Track order actions.
2019-06-07 10:55:33 +02:00
Claudio Sanches
c0a9b57d72
Shows city as an optional field for Singapore
2019-06-06 20:13:55 -03:00
Jared Burke
332c94c13a
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-06 15:37:08 -05:00
Dan Wyman
3edd30757b
Tracker: apply coding standards.
2019-06-06 13:23:11 -07:00
Jeff Stieler
f9d064e778
Track changes to order creation date.
2019-06-06 17:09:50 +02:00
Fulvio Notarstefano
aba51d4c76
[ #23839 ] Use false arg in class_exists()
2019-06-06 09:56:30 +08:00
Risto Niinemets
dbc9719d76
Use order raw address instead of formatted for filter
2019-06-04 08:13:40 +03:00
Jonathan Moore
9e8debd7ba
Avoid attempting to cache expired sessions
...
get_session() attempts to cache a session even if it is already expired.
The code used passes negative expiry seconds to wp_cache_add if the session expired in the past:
wp_cache_add( $this->get_cache_prefix() . $customer_id, $value, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );
Depending on the caching layers used this will give errors in the logs such as:
ERR invalid expire time in setex in /var/www/html/wp-content/plugins/redis-cache/includes/predis/src/Client.php:370
as reported on: https://wordpress.org/support/topic/error-when-trying-to-get-a-get-a-cache-not-available/
2019-06-03 22:11:46 +01:00
Ajay Ghaghretiya
c9bcce3a31
#23850 Fixed the coupon usage limit issue when apply coupon from admin panel ( #23851 )
...
* fix the coupon usage limit issue
* fix the if condition for the usage limit
* fixed coding standard
* fix the if conditions for coupon usage limit per user
2019-06-03 10:47:32 -03:00
Risto Niinemets
de1dfbb1b4
Allow filtering formatted shipping address
2019-06-03 09:18:36 +03:00
Claudio Sanches
3a47453d68
Improve regex
2019-06-01 11:52:15 -03:00
Dan Wyman
7355fadfdd
Tracker: fix review count.
...
Fixes #23848
2019-05-30 12:45:47 -07:00
Fulvio Notarstefano
ab1ba58128
[ #23839 ] Do not throw an autoloader notice if following the notice recommendation
2019-05-29 12:47:26 +08:00
Claudio Sanches
b5da70c74a
Introduced woocommerce_search_products_post_statuses filter
2019-05-28 21:05:26 -03:00
Claudio Sanches
e04e9ae521
Make NL postcode validation more flexible
...
Allows postcode without spaces and in lowercase.
2019-05-28 20:51:07 -03:00
Claudio Sanches
2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
...
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Claudio Sanches
2fdf6de827
Merge pull request #23764 from jorgept/patch-1
...
Update class-wc-countries.php
2019-05-28 18:19:41 -03:00
Claudio Sanches
c28af404ad
Merge pull request #23814 from woocommerce/add/x-sendfile-file-filter
...
Add filters to file paths passed to the different xsendfile like backends
2019-05-28 17:41:49 -03:00
Jonathan Moore
5d6574a00a
rating optional = generate_product_data incorrect
...
If rating is not mandatory on comments, generate_product_data() produces incorrect output.
For example items with comments but no reviews are output with rating of zero which is getting flagged in google webmasters tools under the heading "Rating is missing required best and/or worst values".
The output google is objecting to is eg:
"aggregateRating":{"@type":"AggregateRating","ratingValue":"0","reviewCount":1}}
postmeta in this case is:
_wc_average_rating 0
_wc_rating_count 0.0
_wc_review_count 1
product lookup table is reporting
rating_count 0
average_rating 0.00
the meta is correct and reflected in the product object, it is the test that is wrong since
if $product->get_review_count()
may be true even if there are no ratings.
This is solved by substituting get_rating_count() which has the correct number of ratings.
2019-05-28 07:38:07 +01:00
Rodrigo Primo
000c95ea88
Merge pull request #23659 from woocommerce/add/wc-admin-install-nudge
...
Add wc-admin notice.
2019-05-27 12:29:43 -03:00
Rodrigo Primo
ff1020a787
Merge pull request #23787 from woocommerce/fix/tracks-cookie-set-action
...
Tracks: set cookie on admin_init insead of wp_loaded
2019-05-27 12:16:27 -03:00
Rodrigo Primo
67663836c0
Merge pull request #23739 from woocommerce/fix/23737
...
Remove administrative message from refund reason
2019-05-27 12:12:07 -03:00
Rodrigo Primo
ce6f6a6ddb
Merge pull request #23772 from woocommerce/fix/OBW-tracks-not-enabled
...
Tracks: Add check for OBW is-opting-in
2019-05-27 12:09:00 -03:00
Gerhard Potgieter
b2ed079520
Manual orders coupon usage limits by email ( #23775 )
...
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.
* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Gerhard
f5c5ced6b8
Update Emogirifier library
2019-05-27 11:39:33 +02:00
Peter Westwood
4448235a16
Coding Standards: Add missing space.
2019-05-24 18:15:24 -06:00
Peter Westwood
f70dcc6a01
Add filters to file paths passed to the different xsendfile like backends.
...
Different server configurations can require different paths to be sent and it isn't always possible for a plugin to know the correct path for a platform.
These filters will allow a hosting provider to install a platform level configuration via an `mu-plugin` to make sure things work in there configuration.
2019-05-24 17:10:17 -06:00
Claudio Sanches
3a79970289
Fixed a typo in customers endpoint
2019-05-24 15:34:25 -03:00
Claudio Sanches
61346720c7
Allow enforce password strength meter on checkout
2019-05-24 15:27:26 -03:00
Valerie
136613f539
OBW Shipping: Update labels description
...
- replace "Print shipping labels at home" heading with
"Did you know you can print shipping labels at home?"
- Use new description for WooCommerce Services:
"'Use WooCommerce Shipping (powered by WooCommerce Services & Jetpack)
to save time at the post office by printing your shipping labels
at home."
- do not capitalize post office
2019-05-23 22:17:17 -04:00
Valerie
b379739ea6
OBW Shipping: Switch label and zone sections
2019-05-23 22:17:13 -04:00
Valerie
6d77056e77
OBW: Fix stranded ul closing tag
2019-05-23 22:17:03 -04:00
Iulia Cazan
f49cec5108
Coding standard updates
2019-05-23 08:58:13 +03:00
Claudio Sanches
17da960abe
Merge pull request #23137 from woocommerce/fix/23051
...
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Claudio Sanches
15aa298585
Merge pull request #23159 from woocommerce/fix/23157
...
If orderby is used on static homepage, force query to be a page query
2019-05-22 21:17:01 -03:00
Claudio Sanches
dc35b89df7
Merge pull request #23178 from davidofug/master
...
Uganda Billing/Shipping address
2019-05-22 21:07:09 -03:00
Claudio Sanches
793519137a
Merge pull request #23794 from woocommerce/update/23792
...
Introduce wc_load_cart to dynamically load the cart
2019-05-22 20:51:09 -03:00
Claudio Sanches
28d49031d3
Merge pull request #23695 from james-allan/calc-base-zip-city
...
Calculate base store taxes including the store's zip and city
2019-05-22 20:49:57 -03:00
Claudio Sanches
8ea6c7c80e
Merge pull request #23651 from woocommerce/update/register-rest-routes
...
Set register_rest_route override to TRUE in Blocks REST API
2019-05-22 20:49:15 -03:00
Claudio Sanches
359fd9d7d5
Merge pull request #23791 from woocommerce/fix/23630
...
Clear notices when calling cart-errors.php template
2019-05-22 20:40:21 -03:00
Claudio Sanches
91a8592ebb
Fixed conditional logic
2019-05-22 20:16:10 -03:00
Claudio Sanches
688d35e206
Merge pull request #23562 from benhuson/update/23558-related-product-order
...
Update/23558 Related product order
2019-05-22 19:59:25 -03:00
Claudio Sanches
3cc3565e61
Merge pull request #23774 from connorhu/patch-1
...
fixed availability schema protocol
2019-05-22 18:07:05 -03:00
Gerhard
f6d9faa062
Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart.
2019-05-22 12:24:31 +02:00
sergey.r
98586f10f4
Catch WC_REST_Exception while calling do_action( "woocommerce_rest_insert_{$this->post_type}_object"
2019-05-22 13:00:34 +03:00
Gerhard
3a49e7a53b
Clear notices after calling checkout/cart-errors.php to avoid duplicate notices on the cart page. cart-errors.php does not output notices but a general notice message yet error notices are still enqueued before calling the template.
2019-05-22 09:49:53 +02:00
Paul Sealock
f7e56be638
Tracks: set cookie on admin_init
2019-05-22 12:14:28 +12:00
Claudio Sanches
196d5e77cb
Merge pull request #23041 from woocommerce/update/21701
...
Add hooks for helper subscription changes
2019-05-21 18:27:15 -03:00
Paul Sealock
c74d5b30ca
Tracks: use woocommerce_apply_user_tracking and woocommerce_apply_tracking
2019-05-22 09:18:34 +12:00
Claudio Sanches
edd0e7de8c
Bump template versions
2019-05-21 17:53:03 -03:00
Claudio Sanches
22f9cdcb0d
Allow {woocommerce} placeholder in lowercase
2019-05-21 17:47:54 -03:00
Claudio Sanches
4a99a11009
Merge branch 'master' into update/22895
2019-05-21 17:46:16 -03:00
Rodrigo Primo
870ea9a935
Merge pull request #23704 from woocommerce/fix/23703
...
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-21 17:24:43 -03:00
Claudio Sanches
bd36434174
Use WP 5.0 determine_locale() function
2019-05-21 17:19:50 -03:00
Rodrigo Primo
fbdfb7b87f
Merge pull request #23468 from woocommerce/update/23366
...
Return WP_Error messages from wp_insert_user()
2019-05-21 17:10:32 -03:00
Rodrigo Primo
ae50379f7e
Merge pull request #23325 from woocommerce/fix/rest-api-purge-invalid-orders
...
[REST API] Stop orders being created if invalid data is sent
2019-05-21 16:36:04 -03:00
Rodrigo Primo
5a15713f95
Merge pull request #23207 from woocommerce/update/23205
...
Introduce `parse_published_field` in CSV importer
2019-05-21 16:24:03 -03:00
Rodrigo Primo
c21a69ff6d
Complement WC_Product_CSV_Importer::parse_published_field() phpdoc
...
Add a phrase to WC_Product_CSV_Importer::parse_published_field() phpdoc
to note that 'true' and 'false' are also supported to set product
published status.
2019-05-21 15:55:41 -03:00
Rodrigo Primo
3fed0d7cbc
Merge pull request #23112 from woocommerce/fix/persistent-cart-filter
...
Persistent cart improvements
2019-05-21 15:07:55 -03:00
Karoly Gossler
a135f02f41
fixed availability schema protocol
...
As you can see in the example, the scheme only can be on http:
https://schema.org/InStock
The Google Search console has also marked it invalid.
2019-05-21 09:10:56 +02:00
Iulia Cazan
051277d26e
Rename the hook
2019-05-21 09:20:46 +03:00
Iulia Cazan
1187563c93
Transform the filter into action, rewrite the piece of code to pass the coding standards, remove markup restriction.
2019-05-21 09:18:15 +03:00
Gerhard
70231461b2
Refactor logic for passing no_shipping, it should only be passed when no shipping items are available.
2019-05-21 08:11:36 +02:00
Paul Sealock
ca4e79bdd1
Tracks: Add check for OBW is-opting-in
2019-05-21 12:20:25 +12:00
Claudio Sanches
a2301dc0cb
Removed deprecated PHPCS flags
2019-05-20 17:06:41 -03:00
Claudio Sanches
5eaf71b483
Fixed coding standards
2019-05-20 17:04:24 -03:00
Claudio Sanches
cc6d7996fd
Restored WC_Shortcode_Products::order_by_rating_post_clauses
2019-05-20 16:57:14 -03:00
Gerhard
8332bed7bc
Do not pass no_shipping when not using send shipping address options in paypal, it still needs to use the billing details.
2019-05-20 14:59:48 +02:00
Peter Fabian
91839ce078
Moved the JS enqueue from get_instance_form_fields to admin_footer action hook.
...
This should prevent multiple enqueues.
2019-05-20 12:56:01 +02:00
Mindaugas Budreika
d67381148a
Forward query (GET) parameters when executing a batch REST API request.
2019-05-20 14:24:48 +04:00
jorgept
e214a85a8c
Update class-wc-countries.php
...
Add MZ array
postcode => false,
hidden => true
2019-05-19 22:23:36 +01:00
Ibrahim
0db84aec56
Fixes #23756
2019-05-18 21:04:13 +05:30
Timmy Crawford
01f1749684
Change version compare.
2019-05-17 13:53:38 -07:00
Timmy Crawford
43cd7dc04c
Add wc-admin notice.
2019-05-17 13:53:37 -07:00
Rodrigo Primo
f8642f2fbb
Remove code duplication from OBW payment gateway logic
...
In #23690 we implemented a few changes to the logic to decide which
payment gateways to display in the onboarding wizard. When working on
this code, we noticed that there was a bit of duplication in it that was
not necessary (see
https://github.com/woocommerce/woocommerce/pull/23690#discussion_r284004924 ).
We opted to remove this duplication in a different commit, since that PR
was included in a patch release.
2019-05-17 10:32:06 -03:00
Iulia Cazan
a1ac64aa30
Implement a new filter that allows for custom info or extra actions to be exposed for each of the attachments selected in the Product gallery
2019-05-17 12:03:40 +03:00
Claudio Sanches
d807119121
Introduced woocommerce_admin_order_buyer_name filter
2019-05-16 19:02:57 -03:00
Claudio Sanches
144f011065
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-05-16 18:27:08 -03:00
Claudio Sanches
f5bab51c6a
Improve refund reason when changing order status to refunded
...
Refund reasons are public, can be visualized on emails, and shall not
contain any sensitive data or administration information.
2019-05-16 17:57:28 -03:00
Gerhard Potgieter
afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
...
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard
0eef8654f6
payapal enabled setting defaults to false
2019-05-16 16:08:46 +02:00
Gerhard
99b183e5bb
Refactor paypal and stripe combined logic, add fallback to specified settings when previously saved settings were detected by no option present for the enabled setting.
2019-05-16 15:35:29 +02:00
Gerhard
b0a831b64f
OWB: Check PayPal by default when Stripe not available.
2019-05-16 15:26:58 +02:00
Gerhard Potgieter
945330c219
Merge pull request #23634 from woocommerce/fix/23626
...
Update PayPal capture_payment method triggers
2019-05-16 15:17:58 +02:00
Gerhard Potgieter
173b706ccb
Merge pull request #23734 from woocommerce/fix/23676-2
...
Dashboard stock queries should only include published products
2019-05-16 15:16:18 +02:00
Rodrigo Primo
a247e08ad0
Fix query used to get the number of low stock products in the dashboard
...
This commits changes the query used to get the number of low stock
products in the WooCommerce Status widget in the admin dashboard. This
query should only count published products and ignore products with
other statuses to match the behavior used in the low stock report.
2019-05-16 09:45:44 -03:00
Gerhard Potgieter
10abe6d4be
Merge pull request #23731 from djboris88/fix/wc-order-wrong-param-type-phpdocs
...
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 14:43:30 +02:00
Rodrigo Primo
6e976c7f0c
Remove unnecessary conditions from out of stock query
...
In the query to get the number of out of stock products for the admin
dashboard widget, it is not necessary to use `1=1` and also not
necessary to use `posts.post_type IN ( 'product', 'product_variation' )`
as only products are added to wp_wc_product_meta_lookup.
2019-05-16 09:41:52 -03:00
Gerhard Potgieter
58a04d42e5
Merge pull request #23697 from sokolby/patch-1
...
Add Filter for wc_prices_include_tax() function return
2019-05-16 14:37:50 +02:00
Gerhard Potgieter
9f0e1a6e64
Merge pull request #23534 from woocommerce/fix/233880-alt
...
Revise update stock logic
2019-05-16 14:15:13 +02:00
Gerhard Potgieter
d8f145c2ca
Merge pull request #23714 from woocommerce/fix/23692
...
Add back backward compatibility for coupon expiry_date meta field
2019-05-16 14:10:03 +02:00
Gerhard Potgieter
2cfc7b64c1
Merge pull request #23713 from woocommerce/fix/webhooks-object-caching
...
Use WC_Cache_Helper::get_cache_prefix for webhook count cache
2019-05-16 14:07:27 +02:00
Gerhard Potgieter
f76cf57ce8
Merge pull request #23546 from woocommerce/fix/23533
...
Version template caching
2019-05-16 14:01:25 +02:00
Boris Djemrovski
c45e06a130
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 12:04:34 +02:00
Peter Fabian
207042f7df
Put back the manage stock check for lookup table.
2019-05-16 10:57:42 +02:00
parmarhardip
470b0a5424
I have updated the code with suggestion and tested it. Please review from your side.
2019-05-16 10:24:00 +05:30
Rodrigo Primo
33ee11dd62
Merge pull request #23638 from woocommerce/update/23632
...
woocommerce_product_post_type_link_parent_category_only filter
2019-05-15 15:59:12 -03:00
Peter Fabian
9f0fb0b404
Foxed the use to correct stock quantity parameter.
2019-05-15 16:18:24 +02:00
Peter Fabian
1d29b36c4c
Removed comments that are no longer relevant.
2019-05-15 15:46:53 +02:00
Gerhard Potgieter
30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
...
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
Peter Fabian
af7950910c
Removed the transaction and locking code.
...
NOWAIT is not supported on MySQL server 5.5,
SELECT ... FOR UPDATE can leave lingering locks on InnoDB ("When InnoDB performs a complete rollback of a transaction, all locks set by the transaction are released. However, if just a single SQL statement is rolled back as a result of an error, some of the locks set by the statement may be preserved. This happens because InnoDB stores row locks in a format such that it cannot know afterward which lock was set by which statement.", via https://dev.mysql.com/doc/refman/5.5/en/innodb-deadlock-detection.html )
2019-05-15 15:09:16 +02:00
Peter Fabian
68a325249f
Removed the extra parameter that didn't make sense.
...
Also get_data_for_lookup_table should not be checking db value of _manage_stock as that can be in the process of being changed.
2019-05-15 14:20:27 +02:00
parmarhardip
d5337fac70
fix- 23589 I have fixed pricing issue.
2019-05-15 17:49:46 +05:30
Gerhard
aadc7a1069
Add todo
2019-05-15 11:23:41 +02:00
Gerhard
8ed1a647bc
Restore backward compatibility meta_key for coupon date_expires. @todo: migrate expiry_date in next release to date_expires
2019-05-15 11:21:52 +02:00
Gerhard
3d57a4b474
Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix.
2019-05-15 10:47:50 +02:00
sokolby
cb9f765eb2
Fix prefix filter name
2019-05-15 11:44:54 +03:00
James Allan
6069854d9f
Replace wc_get_base_location() with individual getters
2019-05-15 15:43:15 +10:00
Claudio Sanches
b68b35336f
Prevent negative prices for products
2019-05-14 13:22:06 -03:00
Claudio Sanches
9fd6e6d974
Added new $abs arg to wc_format_decimal() function
2019-05-14 13:15:42 -03:00
Claudio Sanches
836083c064
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-14 12:52:54 -03:00
Andrey Barashkov
58132056bd
Add Filter for wc_prices_include_tax() function return
...
It's great to have a filter, because there are some scenarios when it is necessary to create custom logic for displaying prices.
2019-05-14 13:14:50 +03:00
Tatu
968a0561bb
Add additional check for cart persistence
2019-05-14 12:47:06 +03:00
Gerhard Potgieter
b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
...
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard
486321161c
Update usage of get_used_coupon_codes to get_coupon_codes
2019-05-14 11:21:27 +02:00
Gerhard
efe3e4c5d6
Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes.
2019-05-14 11:19:48 +02:00
Tatu
44c6d0b36c
Compatibility for persistent cart disabled case
...
If woocommerce_persistent_cart_enabled filter was set to false the cart would be emptied while logged in. This fixes also that case. Now the guest session is removed from the woocommerce_sessions table after successful login whether the persistent cart is set enabled or disabled and the guest session cart is carried over to logged in user session.
2019-05-14 11:24:21 +03:00
Daniel Bitzer
0705730121
Add WC_Abstract_Order::get_coupons()
2019-05-14 15:46:48 +09:30
Gerhard
b694efcb63
Klarna should not be featured.
2019-05-14 07:36:15 +02:00
James Allan
45b461639e
Calculate base store taxes including the store's zip and city
2019-05-14 13:43:57 +10:00
Gerhard
e131b01133
Modify payment gateway placement, defaults and new logos.
2019-05-13 15:54:44 +02:00
Gerhard
31acfbcb4a
Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better.
2019-05-13 14:40:54 +02:00
Tatu
71e94e9c08
Add mention of $old_session_key parameter
2019-05-13 15:20:39 +03:00
Tatu
bfad881f32
Removes the $old_session_key default value
...
Fix for the issue #23686
2019-05-13 14:27:28 +03:00
Tatu
4266cc9eaa
Update class-wc-session-handler.php
2019-05-13 12:27:01 +03:00
Gerhard
36cab83d76
Update out of stock dashboard widget to use same query as in reporting, this only counts published products.
2019-05-13 11:02:50 +02:00
Tatu
4a725f3f3e
Delete guest session after user logs in
...
Logging in to the user account makes a copy of the guest session and possible cart content. This causes conflicts in situations where there are only single quantities of products left and real time product availability checks are in place. While this kind of single quantity items are at time in two carts for the same visitor the checking of product availability fails. Deleting the same visitors guest cart solves this issue.
2019-05-13 02:14:52 +03:00
Hassan Yousefi
a50464d781
WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912
2019-05-11 20:45:54 +04:30
Claudio Sanches
c96ed877af
Merge pull request #23660 from gocodebox/master
...
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter
249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
...
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter
a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
...
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter
64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
...
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter
b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
...
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter
32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
...
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter
18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
...
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter
8c665d6572
Merge pull request #23615 from parmarhardip/23596
...
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter
902cc1f0b0
Merge branch 'master' into fix/23606
2019-05-10 11:12:54 +02:00
Gerhard Potgieter
46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
...
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter
364093056d
Merge pull request #23580 from woocommerce/report-bug-link
...
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter
0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
...
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter
984357fb41
Merge pull request #23597 from woocommerce/fix/23509
...
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter
6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
...
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00
Gerhard Potgieter
d2c7d8c86e
Merge pull request #23535 from woocommerce/fix/23518
...
Fix: parameter values should be converted back as well when building form fields
2019-05-10 10:43:28 +02:00
Gerhard Potgieter
ab90cefad4
Merge pull request #23519 from woocommerce/fix/OBW-tracks-scripts
...
Tracks: Fix OBW scripts
2019-05-10 10:41:37 +02:00
Gerhard Potgieter
81bfb9cacb
Merge pull request #23529 from woocommerce/update/23512
...
Define $wpdb tables as early as possible, before init
2019-05-10 10:38:15 +02:00
Gerhard Potgieter
07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
...
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter
250d891c48
Merge pull request #23515 from woocommerce/fix/default-api-version-webhooks
...
Bump default WC API version used when creating webhook
2019-05-10 10:34:43 +02:00
Gerhard Potgieter
002b5ebade
Merge pull request #23499 from woocommerce/fix/23497
...
[3.6.x] Stop removing backslash from passwords
2019-05-10 10:30:13 +02:00
Gerhard Potgieter
af574f6484
Merge pull request #23456 from woocommerce/fix/23447
...
Disable export of scheduled action posts
2019-05-10 10:27:34 +02:00
Gerhard Potgieter
df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
...
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Gerhard Potgieter
5c630271c8
Merge pull request #23430 from dimadin/rs/no-states
...
Do not use state for Serbia
2019-05-10 10:18:11 +02:00
Thomas Patrick Levy
4e58b098e5
update filter
2019-05-09 15:49:03 -07:00
Claudio Sanches
04c598be09
Revert sanitization
2019-05-09 17:28:19 -03:00
Claudio Sanches
caf68b1405
Sets $new_user_args as array by default
2019-05-09 17:08:15 -03:00
Claudio Sanches
96c65d1a4d
Uses "." instead of empty spaces to join words and avoid illegal username
2019-05-09 17:04:48 -03:00
Claudio Sanches
fb8af18eb4
Sanitize only one time
2019-05-09 17:04:27 -03:00
Claudio Sanches
b8d86ccce3
Introduced new woocommerce_new_customer_username filter
2019-05-09 17:02:47 -03:00
Claudio Sanches
20cd0152e8
Improve woocommerce_generated_customer_username filter
2019-05-09 17:01:30 -03:00
Claudio Sanches
c2836c5e75
Try prevent errors caused by illegal logins
2019-05-09 16:56:47 -03:00
Dan Wyman
6123c6066d
Corrects WC Tracker's order total calculation.
...
Fixes #23669
2019-05-09 12:03:33 -07:00