Commit Graph

20118 Commits

Author SHA1 Message Date
Claudio Sanches 32a3d29bd9
Merge pull request #26798 from danielmorell/patch-1
Fixed wc_get_order function name in doc block
2020-07-01 12:37:06 -03:00
Claudio Sanches 7647a122ab
Merge pull request #26920 from alamgircsebd/fix/wrong-capabilites-use-on-add-order-note
Fix - wrong capabilities use on add order note issue fixed
2020-07-01 11:42:45 -03:00
Ron Rennick 84f5e61dbf
Merge pull request #26858 from woocommerce/fix/25833-2
add Google weblight user agent check
2020-07-01 09:31:35 -03:00
Alamgir 5cda3967ff Fix - wrong capabilites use on add order note issue fixed 2020-07-01 10:14:22 +06:00
Claudio Sanches c3608f3b57
Merge pull request #26878 from woocommerce/fix/26787
Moved synchronous webhook execution into a shutdown function
2020-06-30 16:34:12 -03:00
Peter Fabian 64bbb09eb2
Merge pull request #26518 from lipemat/patch-1
Fix set cache loop when no attributes exist
2020-06-30 12:03:37 +02:00
Néstor Soriano 3a77066262
Merge pull request #26554 from jeffreyscottfrench/Fix--select_country-default-value
Sets "Select a country / region..." option element's value attribute to default in checkout page.
2020-06-30 10:34:06 +02:00
Nestor Soriano 9aa3c54bd9 Fix variable product stock status not being properly set on save
When a product is saved its validate_props method is invoked,
and this recalculates the stock_status property based on whether
the product manages stock or not, the stock quantity, and the
value of the woocommerce_notify_no_stock_amount option.

In the case of variable products, and when stock is managed, the stock
was set to "instock" when the current stock was enough, but only
if the "stock_quantity" property was in the list of changed properties
for the object (the method in the base product class doen't check
for changed properties). This is a problem because the
wc_update_product_stock function updates stock_quantity but via direct
database modification, and thus stock_quantity isn't considered
modified. Therefore stock modifications via wc_update_product_stock
don't update stock_status on the product (e.g. when going from 0 to 1
after a refund the stock status will remain as "outofstock").

The fix consists of removing the check for changed properties since
it's not done anyway in the other cases (when stock is below the
woocommerce_notify_no_stock_amount threshold) nor in the base class.

Also, validate_props is refactored for readabiliyy, and an useless
set_stock_status() call placed right before save()
in wc_update_product_stock is removed.
2020-06-29 14:32:17 +02:00
Néstor Soriano 7b3e902952
Merge pull request #26629 from woocommerce/fix/25552
Schedule a deferred product sync for products with parent on delete.
2020-06-29 14:15:10 +02:00
Christopher Allford 7331036d17 Moved synchronous webhook execution into a shutdown function
One of the problems with synchronous webhooks is that they are executed as soon as the related action is. Since we may call an action multiple times in the process of updating something, this causes only the first action to trigger the hook. This differs from asynchronous execution because in that case, the web hook will be executed after the entire request has completed.
2020-06-25 16:54:17 -07:00
Ron Rennick ce70d6ad7a add Google weblight user agent check 2020-06-24 14:26:25 -03:00
Ron Rennick e9f71ac24c
Merge pull request #26802 from woocommerce/fix/25833
introduce woocommerce_enable_nocache_headers filter
2020-06-23 13:35:13 -03:00
Ron Rennick e56ef185b0
Merge pull request #26809 from woocommerce/fix/25606
remove privacy page dropdown
2020-06-23 13:34:33 -03:00
Ron Rennick 4a9fb66a39 update comment to accurate description 2020-06-18 10:56:31 -03:00
Ron Rennick a88a708286 remove privacy page dropdown 2020-06-18 10:40:17 -03:00
Ron Rennick 6743073a0f introduce woocommerce_enable_nocache_headers filter 2020-06-17 15:02:09 -03:00
Daniel Morell 94e317f9f8
Fixed wc_get_order function name
The WC_Abstract_Order __construct() method doc block had the wc_get_order() method referred to as get_order().
2020-06-17 10:49:40 -05:00
Ron Rennick 3763d3b428
Merge pull request #25982 from leewillis77/feature/add-label-to-taxonomies
Add label to unlabelled taxonomies
2020-06-17 10:54:50 -03:00
Peter Fabian 14a26aca2c Update min files and selectWoo 2020-06-16 17:15:12 +02:00
Peter Fabian 418d95298a Merge branch 'master' into update/wc-admin-1.3.0-beta-1
# Conflicts:
#	composer.lock
2020-06-16 14:58:43 +02:00
Peter Fabian 35ee21f837
Merge pull request #26754 from woocommerce/fix/25544
Encode HTML entities in product attributes
2020-06-16 14:29:19 +02:00
Peter Fabian bb2cf2e8dc Removed deprecated method call. 2020-06-16 13:18:05 +02:00
Peter Fabian ce740fdb44
Merge pull request #26739 from woocommerce/fix/24800
Export: properly escape commas in attribute values
2020-06-16 12:56:40 +02:00
Peter Fabian dc0d567137
Merge pull request #26775 from woocommerce/update/php7.2
Show notice to update to latest PHP if version is < 7.2
2020-06-16 12:56:15 +02:00
Peter Fabian c35c4f1f08
Merge pull request #26395 from woocommerce/revert-26226-revert-25708-update/reserve-stock-for-checkout
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-06-16 11:38:10 +02:00
Peter Fabian 32037e37dd
Merge pull request #26625 from woocommerce/add/homescreen-option
Homescreen: Enable for new stores and add Features Setting section
2020-06-15 21:54:06 +02:00
Peter Fabian 0c96b1452d
Merge pull request #26685 from woocommerce/fix/26248
Removed the notice for untested minor version updates
2020-06-15 21:40:22 +02:00
Vedanshu Jain 8dcb48219b
Merge pull request #26752 from woocommerce/fix/25143
Add template cache clearing
2020-06-15 23:47:24 +05:30
vedanshujain 513b517b5b Show notice to update to latest PHP if version is < 7.2 2020-06-15 21:51:03 +05:30
vedanshujain 34e5d3daa3 Use single sentence for easier translations. 2020-06-15 19:09:52 +05:30
vedanshujain b8a1a69b2b Updated annotations to 4.3 2020-06-15 18:55:00 +05:30
Paul Sealock c7ad889f93 Homescreen: add option and setting 2020-06-15 13:38:02 +12:00
jonathansadowski 386eecda62
Merge pull request #26729 from woocommerce/fix/26367
Update saving of comment_type for reviews to account for WP 5.5 changes
2020-06-12 10:36:28 -05:00
Vedanshu Jain 60ffc7ab99
Merge pull request #26583 from woocommerce/fix/26582
Fix regression caused by merging #25092 conflicting with #24828
2020-06-12 15:13:21 +05:30
Ron Rennick 4a8af2ec5d
Merge pull request #26706 from dorelidan/patch-1
Update wc-template-functions.php
2020-06-11 16:23:39 -03:00
Jonathan Sadowski 4d6aad4ecb Encode HTML entities in product attributes 2020-06-11 14:10:05 -05:00
Ron Rennick dd5cd361bc introduce wc_set_template_cache(), wc_clear_template_cache() 2020-06-11 14:06:56 -03:00
Peter Fabian 296112cbea
Merge pull request #26237 from woocommerce/fix/24000
Fix adding product variant to cart using `add-to-cart` parameter (#24000)
2020-06-11 13:13:12 +02:00
Peter Fabian 439562e854
Merge pull request #23971 from woocommerce/refactor/23783
Better template caching for container environments
2020-06-11 10:13:46 +02:00
Jonathan Sadowski 5b232ff489 Export: properly escape commas in attribute values 2020-06-09 16:01:32 -05:00
Jonathan Sadowski f9731bb2ed Update saving of comment_type for product reviews to account for WP 5.5 default comment_type 2020-06-08 17:36:34 -05:00
Julia Amosova 6d3ce36fb4
Merge pull request #26720 from woocommerce/fix/26665
Remove check for existing term when parsing category via CSV & instead catch an existing term error when adding new category to the database
2020-06-08 16:04:31 -04:00
Julia Amosova 7982efb3df Fix the @return description of the CSV Import categories parsing function 2020-06-08 15:03:00 -04:00
Julia Amosova ea17484e42 Remove check for existing term when parsing category & add better error handling 2020-06-07 20:59:23 -04:00
Dor Elidan 4b6e56b02a
Update wc-template-functions.php 2020-06-05 18:22:34 +03:00
vedanshujain 79e13edff0 This commit adds two changes for reserved stock functionality:
1. Use '0000-00-00 00:00:00' instead of CURRENT_TIMESTAMP as default value to support MySQL 5.6
2. Return early if DB version is less than 430 because then it would mean that required wc_reserved_stock table might not be present.
2020-06-05 19:20:06 +05:30
vedanshujain e00f79417f Alert in status report if base table is not present.
Also add a tool to rerun the check. This needs newer API version to work.
2020-06-05 18:26:49 +05:30
Vedanshu Jain b45373fe0c Revert "Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout"" 2020-06-05 15:18:01 +05:30
Vedanshu Jain 6564847802
Merge pull request #26454 from woocommerce/enhancement/verify-db
Add `verify_base_db` method to check if all base tables are present.
2020-06-05 15:15:39 +05:30
vedanshujain e0de059f23 Use seperate db version to better track changes 2020-06-04 22:38:13 +05:30