Commit Graph

35967 Commits

Author SHA1 Message Date
Renovate Bot debe085284
Pin dependencies 2020-09-05 13:43:24 +00:00
Rodrigo Primo 7d1fb6d375
Merge pull request #27496 from jgreys/add/krw-locale-info
Add KR locale info
2020-09-05 10:01:05 -03:00
jonathansadowski 802a31e0d8
Merge pull request #27581 from woocommerce/fix/obw-e2e-test-wc-4-5
Fix OBW e2e test to reflect changes in WooCommerce 4.5 release
2020-09-04 11:44:52 -05:00
Julia Amosova e224cd4b1b Update how disablement of the extensions download is handled in OBW test 2020-09-04 11:47:02 -04:00
Julia Amosova 4ca4f37969 Update recommended business features checkbox selector in OBW test 2020-09-03 16:23:19 -04:00
Julia Amosova 552545c0ac Update number of industries in the loop from 10 to 9 2020-09-03 13:17:47 -04:00
jonathansadowski ecb25d7dc8
Merge pull request #27572 from woocommerce/update/bump-wc-admin-to-1.5.0-rc.4
Bump WooCommerce Admin to 1.5.0-rc.4; WooCommerce to 4.5.0-rc.3
2020-09-02 19:21:52 -05:00
Christopher Allford c898e1de03 Fixed failing E2E test 2020-09-02 16:14:25 -07:00
Christopher Allford f5771ebd0a Fixed failing E2E test 2020-09-02 16:13:20 -07:00
Jonathan Sadowski d637db8201 Update composer.lock 2020-09-02 17:26:15 -05:00
Jonathan Sadowski 2e75ca64e8 Bump to WC 4.5.0-rc.3 in woocommerce.php 2020-09-02 17:03:23 -05:00
Jonathan Sadowski a70cef214a Bump WooCommerce Admin to 1.5.0-rc.4 2020-09-02 16:33:26 -05:00
jonathansadowski dd0a8769d6
Merge pull request #27571 from woocommerce/update/readme-changelog-and-version-for-4.5.0-rc2
Prepare for WC 4.5.0-rc2. Update changelog, readme, and version number.
2020-09-02 15:41:03 -05:00
Jonathan Sadowski 7352c4ab40 Prepare for WC 4.5.0-rc2. Update changelog, readme, and version number. 2020-09-02 14:39:17 -05:00
jonathansadowski 53c22ba4e4
Merge pull request #27508 from woocommerce/fix/27419
Fix filter by attribute widget now working for "Any..." attributes
2020-09-02 13:32:54 -05:00
jonathansadowski 57e83f9120
Merge pull request #27557 from woocommerce/update/bump-wc-admin-to-1.5.0-rc3
Bump wc-admin to 1.5.0-rc.3
2020-09-02 13:20:54 -05:00
Nestor Soriano 417bcf8fff Split the query for counting terms in the filter by attributes widget.
For performance reasons the query is split in two: one for simple
products and variations with a concrete attribute value, and another
one for variations having "Any..." as the attribute value.
2020-09-02 16:22:25 +02:00
Jonathan Sadowski 456851c827 Bump wc-admin to 1.5.0-rc.3 2020-09-01 13:50:02 -05:00
jonathansadowski 86f8788525
Merge pull request #27509 from woocommerce/fix/creating-variations-for-numeric-attributes
Fix "Create variations from all attributes" for numeric attribute values
2020-09-01 13:40:52 -05:00
Nestor Soriano 07b62dabbd Improve the query to retrieve "Any..."-attributed variations in filtering widget
The new query doesn't need empty attribute entries in the meta table,
therefore the code that generates them and the migration to backfill
the missing existing ones have been removed.
2020-09-01 16:47:41 +02:00
Nestor Soriano 53351fcc2f Update wc_product_attribute_uasort_comparison to accept null entries
When set_attributes is used on WC_Product to remove existing attributes
the wc_product_attribute_uasort_comparison ends up being called
with a null argument, and this breaks tests in PHP 7.4 since
null is used as an array. This commit modifies the function so that
if null is passed no array access is attempted.
2020-08-31 16:49:29 +02:00
Nestor Soriano 3a583feab1 Change filter by attributes widget to count products, not variations.
Right now the filter by attributes widget counts available variations
(for variation products). This is confusing since the counter shows
numbers that are higher than the actual count of products displayed.

This commit changes the query used by the widget so that instead
of counting variations it returns the parent product ids, and then
counts the distinct values. This also covers the case of products
where some of the variations have concrete values and some have
"Any..." values.
2020-08-31 12:22:33 +02:00
Claudio Sanches 5f1d2a8a2c
Merge pull request #27387 from woocommerce/fix/27385-twenty-twenty-notices
Fixes to notice styles in Twenty Twenty
2020-08-28 17:24:33 -03:00
Claudio Sanches 09630202e7
Merge pull request #27459 from jgreys/fix/27360
Fix white space character #27360
2020-08-28 17:23:12 -03:00
Ron Rennick bbdafb5cb1
Merge pull request #26196 from fitimvata/master
Add filter woocommerce_cart_item_required_stock_is_not_enough
2020-08-28 15:34:46 -03:00
Ron Rennick af162d8bed
Updated `@since` for the filter 2020-08-28 15:33:43 -03:00
Ron Rennick 00e38b51ef
Merge pull request #26327 from sandeshjangam/patch-1
New after order details action added
2020-08-28 15:27:17 -03:00
Ron Rennick 38190e2dcd
Merge branch 'master' into patch-1 2020-08-28 15:26:56 -03:00
Ron Rennick 122de48325
Update template version 2020-08-28 15:25:26 -03:00
Ron Rennick d998c6334d
Merge pull request #26976 from JoryHogeveen/patch-1
Public access to WC_Install::get_core_capabilities()
2020-08-28 15:12:51 -03:00
Ron Rennick a88cb8ab8e
Merge pull request #27437 from georgejipa/master
Remove the second occurrence of woocommerce_add_{$notice_type} filter
2020-08-28 14:10:43 -03:00
jonathansadowski 00dca53b8c
Merge pull request #27500 from woocommerce/update/readme-2
Readme Tweaks & Screenshot updates
2020-08-28 08:56:47 -05:00
Nestor Soriano d691692dcd Fix: "Create variations from all attributes" on numeric attribute values
When "Create variations from all attributes" is used to create
variations it generates term relationship entries for all the generated
variations, however that doesn't happen when the term can be interpreted
as a numeric value. This is because in that case product->get_attributes
returns the attribute values as numbers, but the code that generates
the term relationships expect those to always be strings.
When manually adding a given variation this doesn't happen.

The fix is to simply strval-ize the value before using it, but it might
be worth investigating why this is happening.
2020-08-28 11:49:31 +02:00
Nestor Soriano 602f58a7a9 Add data migration to backfill missing attributes meta for variations.
The previous commit fixes a bug that causes the "attribute_" metadata
with an empty value to not be created when a new variation attribute
is added to the product (so that all variations have the attribute
with a value of "Any..."). This commit adds a data migration to
backfill the missing metadata for existing variations.
2020-08-28 09:38:16 +02:00
Claudio Sanches 085b4b53fa
Merge pull request #27487 from woocommerce/update/choice-of-words
Improve choice of words
2020-08-27 19:30:54 -03:00
Nestor Soriano 1113201f8b Update meta 'attribute_' values when variation attributes are added or removed.
When a new variation attribute is added, the corresponding 'attribute_'
meta entries are added for all variations with an empty value;
and when an existing variation attribute is removed, the existing
'attribute_' meta entries are deleted for all variations.

This is necessary for the filter by attribute widget to work properly
when variations exist with a value of "Any..." for attributes.
2020-08-27 16:10:41 +02:00
Gerhard 2b1458c1b5 Add new storefront screenshots 2020-08-27 12:35:35 +02:00
Nestor Soriano a75da34a45 Fix filter by attribute widget now working for "Any..." attributes
When a variation product has an attribute with a value of "Any...",
and there's a filter by attribute widget for that attribute, then
that product won't be included in the counts displayed in the widget
(and if the count ends up being zero, the attribute won't be shown
in the widget).

This happens before since Woo 4.4, this widget works by looking at
entries in the term relationships table for varitions too
(used to do so for simple products and for "main" variable products
only), see PR #26260; but there are no such entries for
"Any..." attributes.

This commit fixes that by extending the SQL query used by the widget
to look for variations that have empty attribute values in the meta
table too.
2020-08-27 10:59:15 +02:00
GREYS 5c648e92df Add KR locale info 2020-08-27 10:40:49 +09:00
Gerhard b1e015717e Remove developers main heading section, developer section moved under the main description as a subheading. 2020-08-26 15:47:07 +02:00
Ron Rennick 25ab294e3e
Merge pull request #27456 from IanDelMar/gitattributes
LF line endings on checkout for PHP files
2020-08-26 09:20:41 -03:00
Ron Rennick c582ce2fd2
Merge pull request #27453 from arkadywtf/master
Fix PHP docblock summary for wc_get_coupon_id_by_code
2020-08-26 09:15:23 -03:00
Claudio Sanches 5240682f38 Improve choice of words 2020-08-25 18:03:03 -03:00
jonathansadowski c537a3f632
Merge pull request #27484 from woocommerce/fix/paypal-unit-tests
Fix paypal unit tests
2020-08-25 15:41:28 -05:00
Claudio Sanches 2b6d9a1074
Merge pull request #27485 from woocommerce/update/gh-workflows
woocommerce/action-build@v2 always build a zip file
2020-08-25 16:30:44 -03:00
Claudio Sanches ae3a444721 Merge branch 'fix/paypal-unit-tests' of github.com:woocommerce/woocommerce into fix/paypal-unit-tests 2020-08-25 16:15:03 -03:00
Claudio Sanches a133e56ebd Fixed unit tests 2020-08-25 16:13:49 -03:00
Ron Rennick e11ec4729e Include method title in name change 2020-08-25 16:13:28 -03:00
Ron Rennick 81dae70033 phpcs fixes 2020-08-25 15:41:31 -03:00
Ron Rennick de79f1a3cd update unit tests for included Paypal gate name change 2020-08-25 15:36:50 -03:00