Commit Graph

38179 Commits

Author SHA1 Message Date
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
Julià Mestieri 12be6f3c96 Fixed code standard error. 2020-08-27 09:33:56 +02:00
Julià Mestieri 83434deb42 Added PR feedback. 2020-08-27 09:05:33 +02:00
GREYS 5c648e92df Add KR locale info 2020-08-27 10:40:49 +09:00
GREYS 3070ccf1a9 Add 27 Egypt regions 2020-08-27 09:39:32 +09:00
Romario fefc6193be Replace 'DIRECTORY_SEPARATOR' with '/' 2020-08-26 17:02:07 -05:00
Claudio Sanches c4ccc38780 Fixed use __DIR__ for relative paths 2020-08-26 18:46:44 -03:00
Romario 67a178f4f7 Replace 'DIRECTORY_SEPARATOR' with '/' 2020-08-26 15:50:34 -05:00
Romario 3b90d99d44
Change 'dirname( __FILE__ )' to '__DIR__ ' and include '/'
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-08-26 14:58:22 -05:00
Shiki ecb2936f9e Use different terms to avoid clash with the similar V2 test
I suppose I could have deleted the attribute and term first but I think
this is better and shorter. Maybe.
2020-08-26 23:51:36 +05:30
Shiki face3fe27e OrdersV2: Add test for line items meta_data
This currently fails because it's not implemented yet.
2020-08-26 23:51:36 +05:30
Shiki ad00eb3a98 Add line items meta_data schema test for Orders V2 and V3
This currently fails because the expected meta_data properties are only
available in V3.
2020-08-26 23:51:36 +05:30
Shiki 2a01aa968f WC_Tests_API_Orders: Add test data for site-level attributes 2020-08-26 23:51:36 +05:30
Shiki dc2a4d1ccc WC_Tests_API_Orders: Rearrange order variable for clarity 2020-08-26 23:51:36 +05:30
Shiki 00a5c3101e WC_Tests_API_Orders: Rename first_meta_data to size_* 2020-08-26 23:51:36 +05:30
Shiki d681a8c7a4 Add unit test for an Order's line item meta data. 2020-08-26 23:51:36 +05:30
Shiki 2e366ef76b Orders: Make display_key and _value meta available for v3 and v3
This resolves the intentionally failing
WC_Tests_API_Orders_V2::test_get_item_with_line_items_meta_data.
2020-08-26 23:46:07 +05:30
Shiki 35ed2df4fb Schema: Make display_key and *_value available for v3 and v2
This is just the schema and the actual functionality isn't implemented yet.
2020-08-26 23:46:07 +05:30
Shiki 5ab863e649 Fix formatting in Orders V2 unit test 2020-08-26 23:46:07 +05:30
Shiki 9678a286e3 Orders V3: Reuse WC_Order_Item->get_formatted_meta_data
Previously, I was using my own function. This time, we're using the function
available in WC_Order_Item but sanitizing the results after.
2020-08-26 23:46:07 +05:30
Shiki ea63d5aaf9 Orders V3: Include display_key and display_value in item meta_data 2020-08-26 23:46:07 +05:30
Shiki 90d5a8e7e9 Orders V3 Schema: Add display_key and display_value for meta props 2020-08-26 23:46:07 +05:30
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 8270327f43 Merge branch 'master' into fix/27475 2020-08-26 10:07:44 -03: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
Claudio Sanches 079572ae50 woocommerce/action-build@v2 always build a zip file 2020-08-25 15:07:15 -03:00
Ron Rennick ae96a828ec prevent regenerate image filter loop 2020-08-25 14:31:15 -03:00
Claudio Sanches 889250b4f7
Merge pull request #27482 from woocommerce/update/wc-4.5-rc.1-version
Update version in woocommerce.php for 4.5.0 RC1
2020-08-25 14:21:03 -03:00
Jonathan Sadowski 9211844ace Update version in woocommerce.php for 4.5.0 RC1 2020-08-25 12:19:41 -05:00
Claudio Sanches 77fe18e0a0
Merge pull request #27481 from woocommerce/update/action-build-v2
Updated woocommerce/action-build to v2
2020-08-25 14:01:02 -03:00
jonathansadowski 22eccf4da1
Merge pull request #27480 from woocommerce/update/wc-4.5-rc.1-changelog
Update changelog and readme.txt for 4.5.1 RC.1
2020-08-25 11:49:44 -05:00
Claudio Sanches 59fbab9a42 Updated woocommerce/action-build in nightly builds 2020-08-25 13:42:07 -03:00
Claudio Sanches 4e15abbf53 Updated woocommerce/action-build to v2 2020-08-25 13:41:24 -03:00
Jonathan Sadowski d6d5042ae1 Update changelog and readme.txt for 4.5.1 RC.1 2020-08-25 11:40:38 -05:00
jonathansadowski 209ea6a8bb
Merge pull request #27448 from haydenw/fix-27436
Fix #27436
2020-08-25 09:18:07 -05:00
jonathansadowski 68d1641e5c
Merge pull request #27468 from woocommerce/fix/27467
Rename built-in PayPal payment method to PayPal Standard
2020-08-25 08:42:11 -05:00
Ron Rennick 41a7caae05
Merge pull request #27449 from haydenw/fix-27413
Fix #27413
2020-08-25 10:29:45 -03:00