Commit Graph

34933 Commits

Author SHA1 Message Date
Ron Rennick a605ced14c introduce WC_Round_Tax class 2020-06-30 16:13:49 -03:00
Peter Fabian 7231c6addd
Merge pull request #26863 from woocommerce/update/wc-admin-1.3.0-rc.2
Bump wc-admin version 1.3.0-rc.2
2020-06-30 13:28:04 +02: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 ca963af1b1
Merge pull request #26541 from jeffreyscottfrench/Fix--calc_shipping_country-default-value
Fixes #26540 - Set Select a country option value as default on shipping calculator
2020-06-30 10:35:19 +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
Néstor Soriano cf64c40ace
Merge pull request #26611 from woocommerce/fix/25387
Fix stock status update when saving a variable product
2020-06-29 15:46:30 +02:00
Nestor Soriano 391474c5ef Fix code sniffer errors in class-wc-tests-product.php 2020-06-29 15:20:49 +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
Claudio Sanches a92da3de46
Merge pull request #26352 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.8.4
2020-06-25 22:07:13 -03:00
Renovate Bot 9dcbd48e67
Update dependency autoprefixer to v9.8.4 2020-06-26 00:48:50 +00:00
Paul Sealock 75cd74fe24 Bump wc-admin version 1.3.0-rc.2 2020-06-25 15:23:50 +12: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 524b7e7876
Merge pull request #26840 from woocommerce/test/template-cache-clearing
add template cache unit test
2020-06-23 13:32:52 -03:00
Claudio Sanches c192c4082e
Merge pull request #26649 from woocommerce/renovate/mocha-7.x
Update dependency mocha to v7.2.0
2020-06-23 13:06:46 -03:00
Renovate Bot 1551775307
Update dependency mocha to v7.2.0 2020-06-23 14:46:03 +00:00
Claudio Sanches d1bd90fc8f
Merge pull request #26714 from woocommerce/dependabot/npm_and_yarn/websocket-extensions-0.1.4
Bump websocket-extensions from 0.1.3 to 0.1.4
2020-06-23 11:29:17 -03:00
Claudio Sanches 6b1fe47901
Merge pull request #26790 from woocommerce/renovate/docker-wordpress-5.x
Update wordpress Docker tag to v5.4.2
2020-06-23 10:12:24 -03:00
Peter Fabian a442f183ad
Merge pull request #26849 from woocommerce/fix/26845
Put back the remove element for multiselects on selectWoo
2020-06-23 15:00:02 +02:00
Néstor Soriano fbe03ba256
Merge pull request #26848 from woocommerce/update/wc-admin-1.3.0-rc.1
Bump wc-admin to 1.3.0-rc.1
2020-06-23 14:54:55 +02:00
Renovate Bot 151c905eb2
Update wordpress Docker tag to v5.4.2 2020-06-23 12:40:48 +00:00
Peter Fabian 56d343e26a Added minified files. 2020-06-23 13:12:10 +02:00
Peter Fabian 3b0dd45fcf Put back the remove element for multiselects. 2020-06-23 12:38:43 +02:00
Paul Sealock 7ae8bd53d0 Bump wc-admin to 1.3.0-rc.1 2020-06-23 21:49:59 +12:00
Peter Fabian 568997493c
Merge pull request #26807 from woocommerce/fix/reserve-stock-update-query
Update reserved stock when a row already exists
2020-06-23 11:03:20 +02:00
Ron Rennick 59f2bdbe46 add template cache unit test 2020-06-22 16:05:29 -03:00
dependabot[bot] ff0945c183
Bump websocket-extensions from 0.1.3 to 0.1.4
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-22 17:08:32 +00:00
Ron Rennick fbc66f3b2b
Merge pull request #26432 from woocommerce/add/npm-publish
Add npm publish script for /tests/e2e
2020-06-22 14:05:47 -03:00
Ron Rennick 7d181230e7 update package-lock with master merge 2020-06-22 13:48:52 -03:00
Ron Rennick ee151bbd95 Merge branch 'master' into add/npm-publish 2020-06-22 13:46:54 -03:00
Claudio Sanches f21c92d0b6
Merge pull request #26804 from woocommerce/fix/obw-e2e-test
E2E: Fix OBW e2e test to account for the new Home Screen
2020-06-22 11:46:06 -03:00
Tam Mullen 720c1a1910
Merge pull request #26771 from woocommerce/update/wc-issue-templates
Update GitHub issue templates to request more details
2020-06-22 12:09:21 +01:00
Peter Fabian 60955a9926
Merge pull request #26829 from IanDelMar/patch-2
Fix typo in composer.json
2020-06-22 12:36:39 +02:00
Christopher Allford 05adbd718d
Merge pull request #26742 from woocommerce/update/git-hook-pre-push
Added pre-push hook to prevent accidental pushes to master
2020-06-21 11:28:00 -07:00
IanDelMar bff2cab4c0
Fix typo 2020-06-21 13:26:51 +02: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
Mike Jolley 00f1246553 Update reserved stock when a row already exists 2020-06-18 12:09:57 +01:00
Julia Amosova 281057eee8 Adjust various conditions of the OBW e2e test to make it pass 2020-06-17 17:20:12 -04:00
Ron Rennick 6743073a0f introduce woocommerce_enable_nocache_headers filter 2020-06-17 15:02:09 -03: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 f2487c16af
Merge pull request #26782 from woocommerce/update/woocommerce-blocks-2.7.1
Update woocommerce/woocommerce-blocks to v2.7.1
2020-06-16 18:36:08 +02:00
Ron Rennick 239476ddc5 create ready page after initialization script 2020-06-16 12:29:43 -03:00
Peter Fabian 40f7c2d474 Update min files and selectWoo, coding standards. 2020-06-16 17:22:10 +02:00
Peter Fabian 14a26aca2c Update min files and selectWoo 2020-06-16 17:15:12 +02:00
Albert Juhé Lluveras 55fba0e79b Update woocommerce/woocommerce-blocks to v2.7.1 2020-06-16 16:24:40 +02:00
Peter Fabian 9e2129e09b
Merge pull request #26778 from woocommerce/update/wc-admin-1.3.0-beta-1
Version bump wc-admin 1.3.0-beta.1
2020-06-16 15:30:05 +02:00
Peter Fabian 67ab59d176 Update composer.lock 2020-06-16 15:01:40 +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