Commit Graph

50379 Commits

Author SHA1 Message Date
Sebastian Volland 843337d248
Fix docblock type annotations for `$meta_value` parameter. (#33853)
Fix docblock type annotations for `meta_value` parameter.
2022-12-20 03:02:17 -08:00
github-actions[bot] 91281446e8
Update changelog.txt from release 7.2.1 (#36090)
Prep trunk post release 7.2.1

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-20 23:21:53 +13:00
github-actions[bot] 4823a284dc
Prepare Packages for Release (#36084)
Automated change: Prep @woocommerce/create-woo-extension for release.

Co-authored-by: psealock <psealock@users.noreply.github.com>
2022-12-20 21:33:51 +13:00
Dekadinious 35f99dba7d
Update documentation for two methods in abstract-wc-order.php (#34385)
* Update abstract-wc-order.php

My attempt to make the documentation clearer for these two methods. It's almost impossible to remember all nuances here, so I constantly find myself testing this. Better to have it in the documentation.

* Changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-19 17:18:57 -08:00
Paul Sealock 378d5f525e
Create Extension: Fix install scripts (#36067)
* Update install scripts

* changelog
2022-12-20 13:53:59 +13:00
Joshua T Flowers 1d251f217c
Extend product variations data store with generate variations actions (#36058)
* Allow extending of CRUD data stores

* Add generate action to product variations data store

* Add controls to storeConfig

* Update readme with additional store config args

* Move key to catch

* Add changelog entry
2022-12-19 12:45:43 -08:00
rodelgc c4260c935f
Consistent folder structure for E2E and API test results (#35907)
Consistent folder structure for E2E and REST API test results
2022-12-19 14:33:22 +08:00
github-actions[bot] 76810a4445
Delete changelog files based on PR 36065 (#36069)
Delete changelog files for 36065

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-19 13:05:46 +13:00
Paul Sealock 7a22d9a7ff
Fix/requires at least 5.9 (#36065)
* bump requires at least to 5.9

* changelog
2022-12-19 11:25:06 +13:00
github-actions[bot] 1e12453cca
Prep trunk for 7.4 cycle (#36022)
* Prep trunk for 7.4 cycle

* changelog

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2022-12-19 09:55:11 +13:00
github-actions[bot] 6e2f6e9315
Delete changelog files based on PR 35963 (#36064)
Delete changelog files for 35963

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-19 08:47:35 +13:00
github-actions[bot] 54fe53341e
Delete changelog files based on PR 36042 (#36045)
Delete changelog files for 36042

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-19 08:34:47 +13:00
github-actions[bot] 852b347a83
Delete changelog files based on PR 35967 (#36038)
Delete changelog files for 35967

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-19 08:34:25 +13:00
github-actions[bot] 8a2f3859af
Delete changelog files based on PR 35985 (#35994)
Delete changelog files for 35985

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-19 08:33:59 +13:00
Paul Sealock 23299dbafd
Create Extension: Prep for initial release (#36002)
* Add initial changelog

* run changelog release prep tool

* revert package.json version bump
2022-12-19 07:31:26 +13:00
Kamil 024e2382cb
Add an `required` argument to function `wc_dropdown_variation_attribute_options` (#34579)
* Add an `required` argument to function `wc_dropdown_variation_attribute_options`

* Whitespace, changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-16 12:58:45 -08:00
Jorge A. Torres 9c4cb19a2d
Drop use of WP 5.9 function in `quantity-input.php` (#36054) 2022-12-17 09:11:21 +13:00
Moon 62a957c75d
Add aria-label for simple select dropdown in select-control component (#35808)
* Add aria-label for simple select dropdown

* Add changelog

* Use placeholder value

* Allow aria label prop and use label as a fallback

* Update test snapshot

* Add changelog
2022-12-16 09:55:55 -08:00
Niklas 103fec668b
Use Imagick instead of putenv() to only use 1 thread and avoid memory issues with OpenMP (#35339)
* Use Imagick to set threads instead of putenv() (#31942)

* Adapt code to the coding styles

* Changelog and PHPCS fix.

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2022-12-16 09:48:13 -08:00
Maikel David Pérez Gómez d768307e69
Add single product variation sections (#36051) 2022-12-16 14:44:54 -03:00
Maikel David Pérez Gómez a6fa0e71bf
Add product variation visibility toggle (#36020)
* Add svg icons and show them in variations list

* The visibility icon should reflect the current visibility status

* Clicking the visibility icon should toggle on or off the variation visibility and persist these settings on refresh

* Price and quantity should be fade when the variant is not visible

* Add changelog

* Hovering the visibility icon should display a tooltip indicating what clicking this button will do

* Fix linter error

* Fix spinner opacity if button is disabled
2022-12-16 14:44:06 -03:00
Joshua T Flowers 469ca96830
Add endpoint to create all product variations (#35980)
* Add endpoint to create all product variations

* Add changelog entry

* Change endpoint name to generate

* Fix up phpcs errors
2022-12-16 09:25:03 -08:00
Joshua T Flowers d46a1045e8
Add product variation form and routes (#36033)
* Add route for editing product variation

* Fix up ID selector for getItem in CRUD data store

* Add product variation form

* Add changelog entries
2022-12-16 11:20:10 -03:00
Adrian Duffell 915256b709
Add Missing Tracks Events to Tax Settings Conflict Warning (#36042)
* Import Tracks package

* Add tracks event tax_settings_conflict_recommended_settings_clicked

* Add tracks event tax_settings_conflict

* Add tracks event tax_settings_conflict_dismissed

* Add changelog
2022-12-16 16:57:09 +08:00
Matt Sherman c94a5c6f4b
Refactor AttributeField into sub-components (#35997)
* Add className support to ListItem
* Refactor to extract AttributeListItem component
* Use AttributeListItem component in AttributeField
* Extract AttributeEmptyState from AttributeField
* Use AttributeEmptyState in AttributeField
* Add default value for label prop on AddAttributeListItem
* Add props for labels in AddAttributeModal
* Add props for labels in EditAttributeModal
2022-12-15 21:49:02 -05:00
Joel Thiessen 54f22aa437
Adding delayed spotlight to feedback button on current product page (#35865) 2022-12-15 16:09:21 -08:00
Sam Seay 03d52ff13b
Another set of migrations from set-output to GITHUB_OUTPUT (#35843)
Co-authored-by: Roy Ho <roykho77@gmail.com>
2022-12-16 11:41:03 +13:00
Joel Thiessen 6e20f66966
Adding the feedback button on activity panel for the classic product page (#35810) 2022-12-15 14:31:47 -08:00
Joel Thiessen 8405974674
Adding ces exit prompt when product importer abandoned (#35996) 2022-12-15 13:18:35 -08:00
louwie17 895cb1561c
Add/35126 ces exit prompt orders (#35762)
* Add exit tracking for orders

* Update exit page CES action

* Fix order hook name

* Add changelog

* Address PR feedback
2022-12-15 15:50:34 -04:00
Barry Hughes 186dc427b0
Change the default currency for Croatia to Euros (#35963)
* Change the default currency for Croatia to Euros, beginning 2023-01-01.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.

* Simplify: we don't need the date-conditional because we are shipping in 7.3 (post-transition).

* Whitespace.

* Update continents test to account for Croatia currency change.

* Further change to API test for continents/currencies.
2022-12-15 16:26:32 -03:00
Joshua T Flowers 266b61cd4c
Disable irrelevant product tabs when variations exist (#35939)
* Add disabled prop to product form tabs

* Add tooltips to disabled tabs

* Add styling for tooltips when disabled

* Add changelog entry

* Update disabled styles for experimental focus buttons
2022-12-15 11:20:10 -08:00
Fernando Marichal 44cf396be6
Product variation quantity status indicator (#35982)
* Add variation status indicator

* Add changelog

* Add tests

* Fix style

* Rename enum

* Fix lint

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-15 15:20:21 -03:00
Barry Hughes b904fd428d
Additional order list table actions (#36000)
* Move `*_extra_tablenav` hook, introduce equivalent to `restrict_manage_posts` for parity with CPT order list.

* Changelog.

* Add `since` tag to filter docblocks

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-12-15 10:59:18 -03:00
rodelgc 1276d54da5
E2E: Update tests in `create-variable-product.spec.js` to avoid creating variations from all attributes automatically (#36008)
* Update selectors and added some important assertions
* Save product before going to Variations tab
2022-12-15 21:28:31 +08:00
Maikel David Pérez Gómez 393cc629d9
Add pagination to variations list (#35979)
* Add changelog

* Add pagination to variations list

* Apply styles for pagination paddings and to keep it at the bottom of the section card

* Returning back per page option from 2 to 25

* Fix pagination label text from uppercase to normal and font styles

* Update variation footer gap

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-12-15 10:13:29 -03:00
RJ cc9f4b65fc
Enhancement: Tax settings conflict warning (#36010)
* Add WIP error handling when conflicting settings chosen

* add: enhance tax settings conflict warning

* Fix WC_Settings_Tax_Test::test_get_settings_for_default_section

* Wrap texts in i18n method

* Add snackbar

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-12-15 21:04:28 +08:00
Barry Hughes c79de94c0f
Avoid a fatal error (attempt to call method on bool) when forming order edit URLs (#35995)
Avoid a fatal error (attempt to call method on bool) when forming oredr editor URLs.
2022-12-15 09:51:13 -03:00
Adrian Duffell dbbe78c8ae
Add Codisto Extension to Onboarding (#36009)
* WIP

* Update codistoconnect

* Update selective-extensions-bundle for free trial badge

* Add codisto onboarding logo

* Add changelog

* Fix lint issues

* Fix lint issues with necassary spacing this time

* Add link to codisto product page

* Fix lint formatting

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-12-15 20:34:34 +08:00
Adrian Duffell 4ccf3563e7
Add Pinterest Extension to Onboarding Wizard (#36003)
* Add pinterest to OBW

# Conflicts:
#	plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php

* Switch the alt data

* Add changelog

* Update copy
2022-12-15 20:02:25 +08:00
Chi-Hsuan Huang 736395ba3a
Fix wcpay benefits UI padding (#35946)
* Fix wcpay benefits padding

* Add changelog
2022-12-15 19:47:36 +08:00
Luigi Teschio f898488455
Update WooCommerce Blocks to 9.1.1 (#36004) 2022-12-15 10:29:17 +01:00
Barry Hughes 1d91a8e2e3
HPOS sync/deleted twins (#35723) 2022-12-15 09:38:15 +01:00
Néstor Soriano 3f4f1919bd
Include taxes migration in the states migrator helper method (#35967) 2022-12-15 08:34:15 +01:00
Paul Sealock 3d0e8d500d
Rename package from create-extension to create-woo-extension (#35947)
* Rename package from create-extension to create-woo-extension

* update lock file
2022-12-15 17:45:28 +13:00
Barry Hughes a24b4369a2
Bump "tested up to" field (WP is now at 6.1.1). (#35985) 2022-12-14 15:40:55 -08:00
Sam Seay df3687a79f
Fix a bug where changes were added to the change map via callback (#35966) 2022-12-15 11:55:52 +13:00
Maikel David Pérez Gómez 31e6f90e74
Fix product tab to be shown on production build (#35976) 2022-12-14 18:07:55 -03:00
Roy Ho d0a464520d
Add WC active validation (#35891) 2022-12-14 07:35:22 -08:00
Jorge A. Torres 778cb130f2
Allow HPOS screens to work for custom order types (#35658)
* Allow `wc_get_order_types()` to return list of order types that have UI

* Make `PageController` register menu items for all order types required

* Make `PageController` URL generation aware of order types

* Make `ListTable` order type aware

* Make `Edit` order type aware

* Add support to `wc_get_page_screen_id()` for order types

* Make `PageController` order type aware

* Include custom order type screens as WC screens

* Make `get_base_page_url()` in `PageController` public

* Make sure Trash links use the correct URL

* Gather request vars in `$request` in list table

* Add some order type specific filters to ListTable

* Fix wrong reference to orders per page in ListTable

* Make ListTable columns work in all screens

* Make PHPCS happy

* Minor PHPCS fix

* Add changelog

* Set page hidden form field based on the order_type (#35751)

* Add ‘woocommerce_order_list_table_extra_tablenav’ hook

* Fix PHPCS warnings

* Make `wc_get_page_screen_id()` datastore aware

* Make `WC_Admin_Assets::is_order_meta_box_screen()` aware of HPOS screen IDs

* Remove unnecessary `$context` arg from `wc_get_page_screen_id()`

* Add support for custom order types to `PostsRedirectionController`

* Make PHPCS happy

* Only connect COT admin page when COT is enabled

* Properly filter out empty status in ListTable

* Fix warning due to uninitialized var

* Do not rely on `wc_orders_count()` for counting orders in `ListTable`

`wc_orders_count()` assumes that order types correspond to a datastore’s object type, which isn’t necessarily the case, producing incorrect results.
Until this is addressed, it’d be best not to rely on it for types other than orders.

* Improve performance for status counts in ListTable

* Fire both order-type specific and generic hook for default column in ListTable

Co-authored-by: bruce aldridge <bruce.aldridge@automattic.com>
2022-12-14 20:47:05 +05:30