Commit Graph

9148 Commits

Author SHA1 Message Date
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 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
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
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
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 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 d59e7e5721
Edit and arrange imports in MarketingOverviewMultichannel. 2023-01-31 23:39:02 +08:00
louwie17 5f0572664f
Add new `@woocommerce/product-editor` JS package (#36600)
* Bootstrap product-editor package

* Move product section components over to product editor package

* Add changelogs

* Remove unused import leftover from rebase
2023-01-31 09:38:28 -04:00
Joel Thiessen c080886262
Implementation of separate variant slots via refactored components (#36646)
* Adding contants, renaming files, wiring up shipping section with discrete slots for variants and non-variants

* Refactoring pricing section to give discrete slots for variant and non-variant forms

* Refactoring inventory fills to give discrete slots for variant and non-variant products

* Adding additional slot to pricing -> taxes -> advanced

* Renaming api fields component file

* Refactoring images, details and attributes to match others

* Ensure variant field IDs are distinct, organize all product field fill IDs

* Adding changelog

* Simplifying IDs used for slots

* Minor refactor of pricing taxes class field

* Give api fill exports their own registerPlugin scope

* Refactoring WooProductFieldItem to generate unique IDs

* Adding components changelog
2023-01-31 07:19:21 -04:00
Joshua T Flowers 83faf8d328
Add unique sku option to error data when setting product sku (#36612)
* Add unique sku option to error data when setting product sku

* Add changelog entry

* Add permalink template to the sku error data

* Revert "Add permalink template to the sku error data"

This reverts commit a49ee1d878.
2023-01-30 13:07:05 -08:00
Néstor Soriano f601b0d8a5
[COT] Fix inappropriate deletion of order from posts with sync off (#36617)
* Fix inappropriate deletion of order from posts with sync off

When the orders table is authoritative and sync is off, deleting
and order should not delete the order record from the posts table,
this commit fixes that.

Additionally, OrdersTableDataStore::delete will now trigger the
woocommerce_delete_order action in all cases, even when the
method is called while the posts table is authoritative.

* Add changelog file

* Fix: order items were not deleted

* Improve comment in the 'delete' method

* Use delete_items instead of a dedicated method for deleting order items
2023-01-30 12:04:45 -08:00
Atanas Penchev 6c053d3eec
Replace $.ajax() calls with browser-native window.fetch() calls. (#36275) 2023-01-30 18:48:20 +13:00
Gan Eng Chin 449da4e91c
Merge branch 'trunk' into feature/34906-marketing-channels-card 2023-01-29 01:29:31 +08:00
Gan Eng Chin e700232415
Simplify Channels component. 2023-01-29 01:28:14 +08:00
Joel Thiessen 9be843422d
Fixing issue preventing import productes CES exit page from firing (#36656) 2023-01-27 12:14:59 -08:00
Joshua T Flowers c12ae8033d
Tweak product link description and display (#36591)
* Tweak product link description and display

* Add changelog entry

* Fix up edit product link modal tests

* Update changelog entry
2023-01-27 10:59:39 -08:00
Gan Eng Chin 15200103cc
Simplify Channels CSS. 2023-01-28 01:16:31 +08:00
Barry Hughes fffab243c1
Fix the filter "woocommerce_{order_type}_list_table_prepare_items_query_args" (#36649) 2023-01-27 09:16:25 -08:00
Gan Eng Chin 0eb318c1f5
Simplify and remove RecommendedChannels and RecommendedChannelsList components. 2023-01-28 01:12:36 +08:00
Joel Thiessen 79c596cbd0
Updating section and field product fills to support multiple slots (#36592) 2023-01-27 08:42:51 -08:00
Gan Eng Chin 14511ae4d6
Code refactor with SyncStatus and IssueStatus components. 2023-01-28 00:14:50 +08:00
Paul Sealock c9b1d5af41
Fix/stable tag 7.3.0 (#36627)
* Update stable tag to 7.3.0

* changelog
2023-01-28 05:06:23 +13:00
jamelreid 3a13bc42c0 Added changelog 2023-01-27 10:45:59 -05:00
jamelreid 4fdc9e735b Made selector more robust 2023-01-27 10:44:36 -05:00
jamelreid afb82d221c Merge branch 'trunk' into e2e/strict-locator-tweak 2023-01-27 10:42:30 -05:00
Nathan Silveira d5e2ae0474
Move clearQueue call to inside an useEffect (#36626)
* Move clearQueue call to inside an useEffect

That call was causing a React error (Cannot update a component while rendering a different component)

* Move queueForPage declaration to before it's use
2023-01-27 12:33:48 -03:00
barryhughes 1c31040892 Changelog. 2023-01-27 14:12:06 +00:00
Gan Eng Chin 49032b98db
Make data undefined on first load in useRecommendedChannels. 2023-01-27 21:38:38 +08:00
Albert Juhé Lluveras 5c0ae5ba3b Add changelog entry 2023-01-27 14:25:28 +01:00
Albert Juhé Lluveras 9834f1c62d Fix button styles in TT2 2023-01-27 14:25:19 +01:00
Albert Juhé Lluveras f19ec239d5 Remove size constrain in the Coupon button in block themes 2023-01-27 14:25:04 +01:00
Nathan Silveira f1981618ad
Update mySQL version in documentation to run PHP unit tests (#36587)
* Update README.md

Version 5.7.33 is not available for ARM Macs. I tested with version 8.0.32 and the tests work.

* Add changelog
2023-01-27 10:17:39 -03:00
Gan Eng Chin 316aad8b2e
Simplify RegisteredChannelCardBody CSS. 2023-01-27 21:15:40 +08:00
Albert Juhé Lluveras 0e2af88097 Remove size constrain in block themes buttons 2023-01-27 13:52:02 +01:00
Albert Juhé Lluveras 405876b456 Remove size constrain in the Add to Cart button in block themes 2023-01-27 13:40:45 +01:00
Vedanshu Jain dead6d7060
Eliminate duplicate HPOS internal meta keys (#36611) 2023-01-27 15:12:29 +05:30
Grégory Viguier c4428bfc6e Prevented $order_query_args from being overwritten
The filter `woocommerce_order_list_table_prepare_items_query_args` was useless because its result was not used by the next filter.
2023-01-27 10:30:47 +01:00
Gan Eng Chin 0061e34a00
Code refactor on marketing components (#36540) 2023-01-27 16:00:35 +08:00
github-actions[bot] 18c0fe965e
Release: Remove 7.4 change files (#36565)
Delete changelog files from 7.4 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-01-26 16:48:25 -06:00
github-actions[bot] 8c459a7ab7
Prep trunk for 7.5 cycle (#36566)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-01-26 16:48:14 -06:00
Luigi Teschio 18f609eade
Bump WooCommerce blocks package to 9.4.2 (#36624)
* bump WooCommerce blocks package to 9.4.1

* bump WooCommerce blocks package to 9.4.2
2023-01-26 18:57:43 +01:00
Gan Eng Chin c2aad26473
Simplify CardHeaderTitle CSS.
- Use `@include font-size ( 20 )` to generate relative size in rem.
- Use unitless number value for line-height; this is the preferred way according to MDN.
- `font-weight` and `letter-spacing` are not needed.

The UI looks the same before and after this change.
2023-01-27 01:26:37 +08:00
Joshua T Flowers dfe2780e6a
Add default value for backorders (#36607)
* Add default value for backorders

* Add changelog entry
2023-01-26 09:20:10 -08:00
Vedanshu Jain b41969aa35 Coding standard fixes. 2023-01-26 12:14:50 +05:30
Vedanshu Jain 694fb67980 Temporary disable cache before backfilling. 2023-01-26 11:51:28 +05:30
Willington Vega 7ef4fef53a
Fix dynamic property creation warning in `class-woocommerce.php` (#36545)
Declares $api as a public property to the WooCommerce class in order to avoid a deprecation warning that will eventually be an error in upcoming PHP versions.
2023-01-25 17:25:27 -08:00
Nathan Silveira a274057a6e
Create PHP helper functions for adding new tabs (#36583)
* Update documentation on how to add a new field through FormFactory

* Add method to add_tab through FormFactory

* Update ProductForm definition and add Tabs

* Add changelog

* Add test to add_tab and get_tabs methods

* Add changelog for @woocommerce/data

* Add tabs to reducer actions and initial state

* Remove unused function

* Fix unit test

* Increment Tabs TypeScript definition

* Add required fields to Tab class and refactor to reduce lines of code

* Change from filter to action in doc example

* Update method documentation

* Add required fields to test

* Change productform_field test

* Fix form-factory unit test

* Update wrong comment
2023-01-25 18:21:41 -03:00
Ron Rennick bf5adf19d2 add changelog 2023-01-25 16:23:01 -04:00
Ron Rennick e2e28fed0b reduce merged internal meta keys to unique list 2023-01-25 16:17:46 -04:00
Vedanshu Jain 3ff08d23da Clear cache after deleting post. 2023-01-25 21:11:40 +05:30
Vedanshu Jain 4837b80567 Remove infinite loop by unlinking cache and datastore. 2023-01-25 18:36:46 +05:30
Vedanshu Jain 4db8cc8e26 Coding standard fix. 2023-01-25 17:17:00 +05:30