Commit Graph

9219 Commits

Author SHA1 Message Date
Ilyas Foo 052bb39e8a
Temporary remove free trial terms from Avalara tax task (#36888)
* Remove free trial terms from Avalara tax task

* Changelog
2023-02-20 13:56:34 +08:00
Chi-Hsuan Huang 2d5fdfe578
Add a unit test for `woocommerce_admin_experimental_onboarding_tasklists` filter (#36827)
* Add a unit test for woocommerce_admin_experimental_onboarding_tasklists filter

* Add changelog

* Reformat

* Update plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/features/onboarding-tasks/task-lists.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-02-20 09:03:41 +08:00
Chi-Hsuan Huang 30409fa8c3
Update default payment gateway list (#36550)
* Remove Klarna payments from North America and remove Amazon pay from CA

* Update payment gateway list ordering priority

* Add changelog

* Sort gateways by recommendation_priority

* Fix DefaultPaymentGateways.php

Fix lint

Fix paypal

Fix comment

* Remove unneed comment

* Change eway priority to show after square
2023-02-20 09:02:57 +08:00
Moon 7d8247b069
Remove id column from experimental product import sample files (#36857)
* Remove ID column

* Add changelog
2023-02-17 14:11:43 -08:00
Barry Hughes 85be0f5e45
Fix decimal points for NOK currency (#36780) 2023-02-17 14:02:10 -08:00
Barry Hughes 96100062c0
Switched matching of screen ID with the untranslated string. (#36854) 2023-02-17 13:31:36 -08:00
Saad Tarhi 0de41672f5
Update WooCommerce blocks package to 9.6.1 (#36852) 2023-02-17 22:17:42 +01:00
Nathan Silveira 2ad2b79ac6
Fix inconsistencies on Analytics > Orders table when using date_paid or date_completed (#36876)
* Fix inconsistencies on Analytics > Orders table when using date_paid or date_completed

* Fix sniff

* Fix unit test
2023-02-17 17:52:10 -03:00
Barry Hughes 8a9f7fdb76
Update plugins/woocommerce/changelog/fix-36474 2023-02-17 10:52:18 -08:00
Saad Tarhi c1f232225a Keep only one changelog file 2023-02-17 17:06:18 +01:00
nigeljamesstevenson 4b8e24cc9f
Make the selector a bit more strict to avoid collision (#36499) 2023-02-17 15:56:07 +00:00
Saad Tarhi e434d021f1 Revert the .gitignore change 2023-02-17 16:48:56 +01:00
Saad Tarhi 1e1111f329 Run "pnpm --filter=woocommerce changelog add" 2023-02-17 16:15:31 +01:00
Saad Tarhi d940569d50 Run "composer update -W woocommerce/woocommerce-blocks" 2023-02-17 16:13:19 +01:00
Saad Tarhi d3c22d52c9 Bump Woo Blocks version to 9.6.1 in composer.json 2023-02-17 15:51:20 +01:00
Nathan Silveira 9d7e503519
Add date sorting configuration for Analytics (#36492)
* Include fields date_paid and date_completed to wp_wc_order_stats

TODO: add script to create new columns in the database

* Add update script and new columns in get_schema

* Add new configuration in Analytics > Settings to configure type of date used in Revenue report

* Change date_column_name to date_paid

TODO: This will be configurable in future

* Add date type config field

* Use customizable date field in DataStore

* Change label

* Fix linter errors

* Remove blank line

* Put default column name back to date_created

* Make date_paid and date_completed nullable to help with unit tests

* Remove new table creation in update function and use query method instead of get_var

* Extend stats constructor

* Improve date type configuration description

* Set date column name default to date_created to test if build passes

* Fix phpcs issue on constructor

* Remove cache bypass added by mistake

* Improve changelog

* Fill date_paid and date_completed for refunds to avoid problems whem they are being used to sort
Fix unit tests when date_paid or date_completed are being used as sort date

* Change default to date_created

* Bump update script to 7.5.0

* Add prefix and postmeta variables for script
2023-02-17 10:29:36 -03:00
nigeljamesstevenson 3b58651bd6
Playwright 1.30.0 update (#36789) 2023-02-17 10:31:06 +00:00
nigeljamesstevenson e36d330afa
E2e/update command for e2e (#35287) 2023-02-17 10:28:15 +00:00
Chi-Hsuan Huang ad2f126a32
Have "Grow your store" appear first in marketing task by default (#36826)
* Have "Grow your store" appear first by default

* Add changelog

* Remove PLUGIN_LIST_DISPLAY_ORDER and use ALLOWED_PLUGIN_LISTS instead
2023-02-17 11:28:20 +08:00
Chi-Hsuan Huang dcba4456cf
Add SlotFill for marketing overview screen (#36828)
* Add slot for marketing overview section slotfill

* Add changelog

* Remove unneed changes

* Add changelog
2023-02-17 09:46:52 +08:00
Barry Hughes 28a6ed6656
Translate the labels for units of measure (#36708) 2023-02-16 17:16:30 -08:00
barryhughes 86005db0d1 Changelog 2023-02-16 10:23:59 -08:00
hsing 1c24708e25 Update cart form quantity and coupon code input style 2023-02-16 10:19:35 -08:00
Fernando Marichal ab6d3a45af
Show attribute creation form when there are no attributes (#36606)
* Add attribute creation form

* Add changelog

* Check `Used for variations` by default

* Fix lint

* Fix lint

* Fix `create-variable-product.spec` e2e tests

* Fix do not show form with local attributes

* Fix lint

* Fix tests

* Refactor e2e test fix

* Replaced `wp_kses_post` with `esc_html_e`

* Fix lint

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-02-16 10:52:12 -04:00
Peter Fabian 8ccfedfa4f Hardcoding the string instead of refering to value
...that's only available later or not at all in some contexts.
2023-02-16 15:16:56 +01:00
Peter Fabian 0c254c03c3 Switched matching of screen ID with the untranslated string. 2023-02-16 14:31:35 +01:00
Saad Tarhi cef5009a21 Run "pnpm --filter=woocommerce changelog add" 2023-02-16 11:34:40 +01:00
Saad Tarhi 469eb72766 Run composer update woocommerce/woocommerce-blocks 2023-02-16 11:31:19 +01:00
Saad Tarhi a6241d8bc7 Bump Woo Blocks version to 9.6.0 in composer.json 2023-02-16 11:29:11 +01:00
aniketpatel32 0e7c13d883
Fix: Ampersand changed to &amp on product attribute export #36520 (#36525) 2023-02-16 09:15:03 +01:00
Corey McKrill 23f52e040c
Update plugins/woocommerce/src/Utilities/I18nUtil.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-02-15 16:42:41 -08:00
Corey McKrill e016fb1093
Update plugins/woocommerce/src/Utilities/I18nUtil.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-02-15 16:42:10 -08:00
Corey McKrill 76e7260362
Clean up linting errors 2023-02-15 15:20:25 -08:00
Corey McKrill b336652e0d
Return the input string if it's not a recognized unit of measure
Rather than returning an empty string as the label for an unknown
unit of measure, this allows a merchant to use a custom unit of measure
for something and still have it appear in the UI.
2023-02-15 15:10:36 -08:00
Corey McKrill 9691159d09
Switch back to context-less gettext for unit translations
While the extra context would be beneficial for translators, these
particular strings have already been translated for many lanugages
and adding the context would invalidate the translations, which could
cause a visual regression for merchants if the new strings don't get
reapproved before the next version is released.
2023-02-15 14:12:17 -08:00
Nadir Seghir c28bb8708e fix function call 2023-02-15 16:58:26 +01:00
Nadir Seghir 2efe0a0f6a add tracking for local pickup 2023-02-15 16:41:26 +01:00
Atanas Penchev 55af1d1365
FlexSlider legacy browser code clean-up (#36690) 2023-02-14 12:08:07 +01:00
Sam Seay e4303a7b25
Add smooth generator to the beta tester userscript (#36676) 2023-02-14 18:34:47 +13:00
Tomek Wytrębowicz c5cbc8d4ab
Update `config@3.3.7` (from `3.3.3`) (#33828)
* Update `config@3.3.7` (from `3.3.3`)

Add it to syncpack, to avoid `ReferenceError: node_env_var_name is not defined` when external extension imports and transforms the `admin-e2e-tests` directly from `node_modules`.

Include https://github.com/node-config/node-config/pull/642
2023-02-14 18:34:00 +13:00
Peter Fabian 906c84b85e
Make the "state" checkout field optional for BG and HU (#36701)
* Make state optional for BG and HU.

* Add changelog.

* PHPCS spacing fix

* Hide State field for Hungary.

* Unhide the State in Hungary.

Some extensions might still use it e.g. for shipping purposes.

* Merge branch 'trunk' into fix/hu-and-bg-state-optional
2023-02-13 15:45:54 -08:00
github-actions[bot] 2da44aea66
Delete changelog files based on PR 36624 (#36631)
Delete changelog files for 36624

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-13 14:18:36 -06:00
github-actions[bot] 19afaccb9d
Delete changelog files based on PR 36736 (#36744)
Delete changelog files for 36736

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-13 14:17:00 -06:00
github-actions[bot] 55fc851dba
Delete changelog files based on PR 36714 (#36717)
Delete changelog files for 36714

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-13 14:16:43 -06:00
github-actions[bot] 98f325c776
Delete changelog files based on PR 36456 (#36582)
Delete changelog files for 36456

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-13 14:16:22 -06:00
Corey McKrill 9eb6437d19
Remove opinionated styles from buttons in block themes so they inherit theme styles more accurately (#36651)
This PR removes several CSS lines that were enforcing specific styles (mostly padding) to buttons. This is in order to better inherit the styles provided by the theme.
2023-02-13 11:47:07 -08:00
Ron Rennick 73a6475a3d
ensure unit test install ABSPATH is a real path (#36641)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-02-13 09:13:57 +01:00
Corey McKrill 5b27b02508
Fix linting issues 2023-02-08 22:44:24 +01:00
Jon Lane 4927dc0352 Changelog 2023-02-08 10:57:44 +01:00
Jon Lane f9f14f5b00 Update Playwright 1.28.0 -> 1.30.0 2023-02-08 10:52:54 +01:00
Jon Lane 3739c0869a Need to run config after starting 2023-02-08 10:31:16 +01:00
Jon Lane c8863ddb3c Incorporated feedback from review 2023-02-07 16:41:49 +01:00
Ahmed dc616bd4c6 update changelog 2023-02-07 11:14:40 +01:00
Ahmed 35384a4fe6 Fix decimal points for NOK 2023-02-07 11:10:59 +01:00
Jon Lane d5cf0b4fd5 Merge branch 'trunk' into e2e/update-command-for-e2e
# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/README.md
2023-02-06 13:53:12 +01:00
Gan Eng Chin b717ce9645
Merge branch 'trunk' into feature/34906-marketing-channels-card 2023-02-04 02:33:01 +08:00
Albert Juhé Lluveras 4971eaa350 Increase TT2 styles specificity so they aren't overridden by block theme styles 2023-02-03 11:33:03 +01:00
Albert Juhé Lluveras 659566ed0d Fix variable products options and add to cart form not wrapping on different lines 2023-02-03 11:27:11 +01:00
Kevin Ruscoe 3828aabbef
clean up sass variable names (#28908) 2023-02-03 10:54:45 +01:00
Vedanshu Jain b5ae765b93 Use correct class name. 2023-02-03 14:17:54 +05:30
Vedanshu Jain c678ce7248 Remove get_from_datastore as it was not being used. 2023-02-03 14:14:26 +05:30
Corey McKrill a42eede13a
Add unit tests 2023-02-02 16:51:50 -08:00
Corey McKrill ad561d81bf
Update remaining labels for dimensions units 2023-02-02 16:33:43 -08:00
Seghir Nadir 7459aec50e
Bump WooCommerce blocks package to 9.4.3 (#36736)
* Update woocommerce-blocks to 9.4.3

* Add changelog file

---------

Co-authored-by: Jonathan Sadowski <sadowski@automattic.com>
2023-02-02 18:17:34 -06:00
Corey McKrill 54de988f25
Update labels for weight units 2023-02-02 16:08:44 -08:00
Moon 604ffe3fec
Mark purchase tests skipped temporarily (#36741)
* Mark tests skipped due to change in endpoint behavior

* Add changelog
2023-02-02 17:43:13 -06:00
Joshua T Flowers 89438cf873
Remove variations logic from the AttributeControl component (#36563)
* Move attribute data changes out of attribute control

* Move dynamic text to props

* Add onModalOpen callback

* Add onModal close prop

* Add changelog entry

* Use closeModal for edit attribute modal

* Add onEdit callback

* Extract util to get unique attribute id

* Rename editingAttribute to currentAttribute

* Rename showAttributeModal to isNewModalVisible

* Rename AddAttributeModal to NewAttributeModal

* Fix up handle add attributes

* Add onRemove callback for attibutes

* Fix up modal styling classes

* Fix up closing edit modal

* Fix up modal title for options

* Handle PR feedback

* Separate handlers for edit and new modal callbacks

* Update event names to be option/attribute specific

* Use default callback functions

* Handle PR feedback
2023-02-02 13:04:32 -08:00
Mahdi Taleghani 5d0c82f5c3
Change order of checkout address fields for Iran (#36491)
* add Iran country to get_country_locale

* create changelog file

* fix Code sniff convention for spacing
2023-02-02 10:58:49 -08:00
Gan Eng Chin c9214abe1f
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card 2023-02-03 00:54:51 +08:00
Gan Eng Chin 67c09f63ea
Merge branch 'trunk' into feature/34906-marketing-channels-card 2023-02-03 00:53:21 +08:00
Gan Eng Chin 7bb042fcd2
Simplify CSS for CardHeaderDescription. 2023-02-02 21:50:36 +08:00
nigeljamesstevenson 7c84271ee2
update smoke test daily workflow to run api tests first (#36494) 2023-02-02 12:04:47 +00:00
Gan Eng Chin 048906ad80
Change Campaigns CSS to use @include font-size(). 2023-02-02 19:06:17 +08:00
Leif Singer d0a2b582fe
Consolidate eslint versions (#36700)
* pin eslint in .syncpackrc

run `pnpm run sync-dependencies` to ensure pinned version is used across projects, then run `pnpm install` to update `pnpm-lock.yaml`

* add changelog files

ran `pnpm run --no-bail --filter='[HEAD^1]' changelog add --significance=patch --type=dev --entry='Update eslint to 8.32.0 across the monorepo.'`

* re-run `pnpm install` to fix what broke while merging
2023-02-02 23:25:04 +13:00
Gan Eng Chin 7b068bf908
Code refactor for Campaigns card CSS. 2023-02-02 17:52:22 +08:00
Gan Eng Chin c17f336acc
Code refactor for Campaigns card. 2023-02-02 17:47:42 +08:00
Gan Eng Chin 0abe368962
Display error state in Campaigns card. 2023-02-02 17:17:29 +08:00
Barry Hughes 463082fb28
Revert/36294 (#36714)
* Revert "Update spelling of Cancelled to Canceled for US English. (#36294)"

This reverts commit e588c560bf.

* Changelog note
2023-02-01 13:59:42 -06:00
Gan Eng Chin 743c0e5085
Set per_page to 100 for getCampaigns.
100 is the maximum limit allowed by the API.

We do this because the API does not return total number of rows, so we use 100 to get "all" rows, to support pagination in the UI.
2023-02-02 01:03:15 +08:00
Gan Eng Chin 183fc48132
Show CardFooter and Pagination only when it is needed.
This means when total is more than perPage.
2023-02-01 20:29:32 +08:00
Gan Eng Chin eda6f194b9
Use perPage constant instead of literal 5. 2023-02-01 20:27:07 +08:00
Gan Eng Chin 274ea3dd60
Use Link component in Campaigns.
This allows fast client-side navigation.
2023-02-01 20:23:14 +08:00
Gan Eng Chin 29154425cb
Check description before rendering FlexItem.
This is to eliminate the unneeded flex gap when there is no description.
2023-02-01 20:17:53 +08:00
Gan Eng Chin c342cbb98d
Change to color variable in Campaigns CSS. 2023-02-01 20:09:17 +08:00
Gan Eng Chin cd7b5f2c96
Fetch and display campaigns with wp.data. 2023-02-01 19:02:03 +08:00
Corey McKrill cdff039569
Update products settings to use I18nUtil for unit labels 2023-01-31 17:26:14 -08:00
Corey McKrill 31d5b45443
Add changelog file 2023-01-31 17:16:32 -08:00
Corey McKrill 45069b1bf7
Update weight/dim formatting to use translated labels 2023-01-31 17:14:07 -08:00
Corey McKrill 21bae97e82
Add I18nUtil class 2023-01-31 17:12:11 -08:00
Corey McKrill f5bdbbaa20
Add i18n file for units 2023-01-31 17:11:27 -08:00
IanDelMar eeebcb9a6c
Properly deprecate woocommerce_my_account_my_orders_columns filter (#36356)
* Use WC_Deprecated_Filter_Hooks to deprecate filter

* Add changelog file

* fix since tag in comment

* Revert docblock changes
2023-01-31 13:02:42 -08:00
Gan Eng Chin 46adb0dc25
Rename Channels to RegisteredChannels. 2023-02-01 02:58:49 +08:00
barryhughes 4c427ef6da Changelog. 2023-01-31 09:56:43 -08:00
Gan Eng Chin 630bd0ab17
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card 2023-02-01 00:52:48 +08:00
Gan Eng Chin f050bb79b5
Rename Channel to RegisteredChannel.
This is for better clarity and consistency.
2023-02-01 00:52:35 +08:00
Angelo Ghigi 09a1634bb2 Disable product info in Status Widget when stock management is disabled
There's no need to show the two products cells in Status Widget table when stock management is disabled, otherwise you'll get 2 links pointing nowhere (specific report pages are disabled and you'll get an "unauthorized" error)
2023-01-31 17:39:10 +01:00
Gan Eng Chin 177fc59dea
Simplify rendering code in MarketingOverviewMultichannel. 2023-02-01 00:29:38 +08:00
Gan Eng Chin 3384ad576d
Remove unused import. 2023-02-01 00:20:04 +08:00
Gan Eng Chin d69f7f00b7
Fix ids typescript error in Campaigns. 2023-02-01 00:18:53 +08:00
Gan Eng Chin 76102143ff
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
Conflicts:
	plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-01-31 23:50:03 +08:00