Commit Graph

8100 Commits

Author SHA1 Message Date
Moon f2b6321b1b
Apply shipping smart defaults when country is US and Jetpack is installed (#33788)
* Enable shipping smart defaults when store country is US and Jetpack is installed

* Add changelog

* Remove redundant check
2022-07-13 19:34:56 -07:00
Niels Lange e09469c13c
Update WooCommerce Blocks package to 8.0.0 (#33736) 2022-07-14 13:58:51 +12:00
RJ 6af3ea5867
fix: typos in shipping settings (#33836) 2022-07-13 23:41:22 +08:00
Rommel Castro 70ea12eb81
add CLI `wc com extension install` command (#33775)
Co-authored-by: Thilina Hasantha <thilina.hasantha@gmail.com>
2022-07-13 10:34:03 +02:00
Chi-Hsuan Huang db8ea51d76
Set shipping feature flags to true (#33819)
* Set smart shipping feature flags to true

* Add changelog
2022-07-13 16:27:05 +08:00
aezazs-multidots a0a242f6a7
Ordering of CSV Columns of Revenue Table (#33818)
* Ordering of Text Columns of Revenue Table

* Created changelog entry
2022-07-13 10:33:42 +08:00
jonathansadowski 9c242bcc4c
Update github action to require valid changelog file (#33772)
* Update github action to equire valid changelog file

* Update github action for changelogger to install depedencies and composer

* Make valid changelog files that were invalid
2022-07-12 16:07:12 -05:00
jonathansadowski 38296db283
Remove change file for #33722 (#33740) 2022-07-12 16:00:04 -05:00
Fernando 94d545c35f
Product creation experience: improve inventory copy (#33754)
* Change copy `Manage stock level (quantity)`

* Change copy `Limit purchases to 1 item per order`

* Improve inventory copy and add tooltip

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-07-12 15:42:15 -03:00
Moon 18a4b802ed
Consider WC Admin is disabled when analytics feature is disabled in WC Status widget (#33816)
* Consider WC Admin is disabled when analytics feature is disabled

* Add changelog
2022-07-11 21:15:12 -07:00
Moon 7edec113ef
Use transient to cache Shipping::has_shipping_zones() result (#33813)
* Use transient to cache has_shipping_zones

* Add changelog
2022-07-11 21:14:43 -07:00
Sam Seay c702c66a44
Move all woocommerce-beta-tester release config into woorelease (#33799) 2022-07-12 13:36:05 +12:00
Christopher Allford 3c7f3a7190
Remove WooCommerce 6.7 Changelog Files (#33797)
Removed Changelog File
2022-07-11 10:22:49 -07:00
RJ 5bb03d0188
add: partial spotlight for shipping smart defaults tour (#33801)
- added a dynamic floating div to allow tour kit to track just part of the shipping settings table
2022-07-11 17:17:02 +08:00
Rodrigue a3a5168aea
Remove FB extension from Installed marketing extensions list. (#33781) 2022-07-10 12:10:01 -07:00
Jorge A. Torres 96f2cc30a4
[COT] Implement `delete()` in the COT datastore (#33708)
* `add_meta()` should be more flexible

* Add `delete_order_data_from_custom_order_tables()`

* Add private method `trash_order()` to COT datastore for handling order trashing

* First stab at COT datastore `delete()`

* Delete COT data for orders when deleting its associated post

* Add changelog

* Simplify delete logic

* Minor fixes

* Rework `create()` tests

* Add tests for `delete()`

* Remove unnecessary var
2022-07-08 17:15:10 +05:30
Chi-Hsuan Huang 8952dac7c0
Set up i18n-text-domain rule and fix missing text domain (#33780)
* Set allowedTextDomain to only allow woocommmerce text domain

* Set allowedTextDomain to only allow woocommerce text domain

* Fix wrong or missing i18n text domain

* Add changelog

* Add changelog
2022-07-08 18:37:30 +08:00
Jonathan Lane 537c8c44c7
Couple of Playwright fixes for some flaky tests (#33766)
* Updates to simple product test to reduce flakiness

* Remove focus

* Fix to improve flakiness of order refund test

* Added a wait to help page loads test

* Add a couple more waits to refund tests

* Changelog

* Retry key generation during global setup

* Setup checklist has changed, update

* Update to setup task list

* Add wait for setup checklist

* Update locator for install checklist

* Changelogger: Fix PHPCS violations (#33664)

* Deploy header task variant from task list experiment (#33750)

* Deploy task list experiment 1

* Add changelog

* Fix wrong copy in the payment task (#33749)

* Add headingDescription prop to PaymentGatewaySuggestions list

* Fix payment suggestions heading text

* Add changelog

* Fix missing manage button for TikTok (#33731)

* Fix missing manage button for TikTok

* Add changelog

* Packages: Fix postinstall errors on install (#33724)

* Fix additional payment task name (#33727)

* Rename "Set up additional payment providers" task -> "Set up additional payment options"

* Add changelog

* Remove change files for #33704 (#33734)

* Add shipping class data store (#33765)

* Add initial shipping classes data store

* Add types for the product shipping class store

* Filter out undefined items in list for when an item is deleted

* Add changelog

* Add data store README

* Fix onboarding test

* Skipping flaky test

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
Co-authored-by: louwie17 <lourensschep@gmail.com>
2022-07-07 14:13:00 -06:00
jonathansadowski 481d61c525
Remove change files for #33704 (#33734) 2022-07-07 10:46:40 -05:00
Chi-Hsuan Huang 44c3ab8f74
Fix additional payment task name (#33727)
* Rename "Set up additional payment providers" task -> "Set up additional payment options"

* Add changelog
2022-07-07 11:33:30 +08:00
Chi-Hsuan Huang b48042b60b
Fix missing manage button for TikTok (#33731)
* Fix missing manage button for TikTok

* Add changelog
2022-07-07 10:14:19 +08:00
Chi-Hsuan Huang 6e21f2c9b4
Fix wrong copy in the payment task (#33749)
* Add headingDescription prop to PaymentGatewaySuggestions list

* Fix payment suggestions heading text

* Add changelog
2022-07-07 10:13:27 +08:00
Chi-Hsuan Huang 9c3118fdf4
Deploy header task variant from task list experiment (#33750)
* Deploy task list experiment 1

* Add changelog
2022-07-07 10:11:14 +08:00
Paul Sealock 7229b65bc9
Changelogger: Fix PHPCS violations (#33664) 2022-07-07 08:54:48 +12:00
Jonathan Lane 0cebdf5277
Convert e2e tests to Playwright (#33462)
* Final updates for Playwright

* Update config

* Add uuid dependency

* Increase retries to 2

* Update selectors on shipping page

* Use baseURL instead of hard-coded URL for API

* Clarify comment

* Use baseURL instead of hard-coded URL

* Check to see if an order was created before attempting to delete it

* Add changelog

* Turn on Playwright tests in GitHub

* Increase timeout for CI execution

* Update configuration options (minor edit)

* Fix for checkout flaky test

* Parse orderId from URL

* Check for substring

* Streamline email tests

* Remove .only

* Only clear email logs of messages for test

* Get orderId from page element

* Fix for test not waiting for reset

* Add in second wait for Performance section

* Change significance from minor to patch

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-07-06 14:28:00 -06:00
louwie17 49859c8f84
Fix product variation tooltip (#33741)
* Make sure the default form value tooltip is initialiazed when adding the first variation

* Update copy of default form value tooltip in variations

* Add changelog

* Fix auto formatting

* Add pointer events: none to tooltip to prevent flickering
2022-07-06 13:54:11 -03:00
Ilyas Foo 8d281241a9
Add tracks for shipping smart defaults (#33748)
* Change review shipping task id to 'review-shipping'

* Add click track for shipping-recommendation task from the settings page

* Changelog

* Add test

* Add more specific test param
2022-07-06 20:00:08 +08:00
Moon 74fd45ec16
Add payment icons right next to the Discover other payments link (#33744)
* Add pyament icons

* Add changelog

* Text and logo changes when wc pay is installed and setup

* Use PaymentSuggestions to query plugins

* Make sure image_72x72 exists

* Remove unused namespaces

* Remove stripe2 image -- no longer needed

* Make sure recommended payment is not already active

* Check plugins field to filter out active plugins
2022-07-06 03:24:01 -07:00
Chi-Hsuan Huang b274831334
Update wcpay suggestion UI in payment task (#33717)
* Add WCPayBanner & WCPayBenefits

* Update payment setting & welcome screen to use components from woo onboarding

* Update wcpay suggestion UI in payment task

* Add changelog

* Add WCPayBannerImageCut image and update wcpay banner style

* Update packages/js/onboarding/src/components/WCPayBanner/WCPayBanner.scss

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

* Set .woocommerce-recommended-payments-banner__image_container display: flex

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-06 14:20:11 +08:00
Moon 9b175c64d9
Make store location and rates steps clickable (#33661)
* Make store location and rates clickable

* Add changelog

* Make store_location_completed camelCase

* Fix onCompleteStep logic

* Update plugins/woocommerce-admin/client/tasks/fills/shipping/index.js

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-05 19:13:57 -07:00
Moon 7c723583cb
Add tests for react admin translations (#33510)
* Add switch-language endpoint

* Add translation tests for PHP, react client, and component

* Fix component test

* Add Changelog

* Add Changelog
2022-07-05 17:16:15 -07:00
Christopher Allford 0a2588f6c4
Fixed WooCommerce Beta Tester Zip Build (#33728) 2022-07-06 11:28:56 +12:00
Joel Thiessen 57869a2ab7
Fixing activity panel does not appear after navigating to OBW and back (#33722) 2022-07-05 10:02:46 -07:00
Fernando f9f42ce3c2
Rename event prop from `cross-sell` to `cross_sell` (#33704)
* Rename event prop from `cross-sell` to `cross_sell`

* Added validation to `WC_Tracks_Event::validate_and_sanitize`

* Remove extra tab

* Remove `error_log

* Fix WP_Error message

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-07-05 10:38:29 -03:00
Chi-Hsuan Huang 97f3e2d609
Fix untranslated texts on payment setting page (#33718)
Fix untranslated string in payment setting page
2022-07-05 13:28:31 +08:00
RJ b7ffa1c3d2
Add: Intro tooltips for shipping smart defaults (#33688)
add: intro tooltips for shipping smart defaults

- removed php code for setting 'reviewed' option as it was being set on page load and thus always evaluated to true before the user sees it
- added intro tooltips
2022-07-05 13:02:52 +08:00
Noonan Web Group Limited 538403306c
Update wp-background-process.php to use wp_convert_hr_to_bytes() (#30908)
Update wp-background-process.php to use wp_convert_hr_to_bytes()

Currently the code is typecasting the memory limit to an int. This assumes that the memory limit is in MB, so if you set your memory limit to 4G this will return 4194304 bytes (4.19304 MB.) Instead, we should use the native WordPress function `wp_convert_hr_to_bytes` to handle the conversion into bytes correctly.
2022-07-04 19:23:52 -07:00
Luigi Pulcini 9cecce207a
Add exporter instance parameter to `woocommerce_product_export_row_data` filter (#33390)
Added exporter instance parameter

* added filter docblock and changelog entry
* Tweak changelog, tweak hook version number

Co-authored-by: Luigi Pulcini <luigi@barn2.com>
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-07-04 19:22:13 -07:00
Chi-Hsuan Huang e471d7ce71
Update store details task action url (#33671)
* Update StoreDetails task action url to navigate to the setting page

* Add changelog

* Update complete logic of StoreDetails task

* Update store details unit tests for new task completion logic
2022-07-05 10:10:36 +08:00
Chi-Hsuan Huang da38571824
Fix wrong link and copy in payment setting page (#33716)
* Fix wrong link and copy in payment setting page

* Add changelog
2022-07-05 10:10:09 +08:00
Chi-Hsuan Huang 20b266743e
Fix wrong link in setup payments screen (#33715)
* Fix wrong link in Set up payments screen

* Add changelog
2022-07-05 09:00:12 +08:00
Luigi Pulcini 63dd5eda6f
Added mechanism to customize data before AJAX requests in `meta-boxes-order.js` (#33563)
Added `triggerHandler` before each ajax request.

* Added namespace to event name
* Linting.

Co-authored-by: Luigi Pulcini <luigi@barn2.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-07-04 17:09:13 -07:00
Jorge A. Torres bddb6621ee
[COT] Implement order bulk actions (#33687)
Introduce `Admin\Orders\PageController` to manage admin pages for orders

* Change orders menu registration & initialization to use `Admin\Orders\PageController`
* Implement bulk actions in orders ListTable
* Unnecessary import
* Make PHPCS happy
* Add changelog
* Address feedback
2022-07-04 16:57:01 -07:00
Joel Thiessen 6c13fdf0ce
Making product image meta box more prominent as a default (#33707) 2022-07-04 11:55:18 -07:00
Chi-Hsuan Huang 4707dcbec0
Fix wrong copy in the payments settings for a country that WCPay is not supported (#33665)
* Fix wrong copy in payment recommendations

* Add changelog
2022-07-04 16:58:10 +08:00
Moon 76f9a1fc57
Fix export functionality on Analytic pages (#33709)
* Import correct controls

* Add changelog

* Add changelog
2022-07-04 12:55:39 +08:00
Moon 6a8f124022
Fix Uncaught DOMException on WooCommerce -> Extensions page. (#33711)
* Add .commerce to wrap selector

* Add changelog

* More specific selector

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-04 12:41:32 +08:00
Ilyas Foo dea22904e0
Fix marketing task completion logic (#33676)
* Add marketing action task on clicking Manage

* Revert marketing completion after installing any marketing plugin

* Changelog
2022-07-01 14:28:45 -07:00
Corey McKrill d15770132b
Revert "Update method for getting Reports API cache version number" (#33706)
This reverts commit bccc80366d.

When we merged this PR, we thought the Woo mobile apps would have enough time to implement some corresponding changes on their side. That turned out not to be the case. Without the ability to force a refresh of the analytics cache, this PR causes the apps to have a greater risk of showing users stale analytics data that they can’t immediately update.
2022-07-01 12:28:30 -07:00
Chi-Hsuan Huang f1ce6ec30c
Update WCPay to include a mention of in-person payments for Canada (#33669)
* Update wcpay to include a mention of in-person payments for Canada

* Add changelog
2022-07-01 13:51:54 +08:00
Moon f8e8b6ff04
Style fix for the print shipping banner close modal (#33587)
* Style fix for the close modal

* Add changelog
2022-06-30 14:05:00 -07:00
Matthew Hodge 6cb6fd02df
Added a filter to set fopen mode for streams that dont support a+ (#33652)
Added a filter to set fopen mode for streams that dont support a+

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-06-30 10:34:02 -07:00
AnnaMag 3fc11126a4
Include Tracks indicator property for block editor on product update. (#33321)
* Include Tracks property indicating block editor on product update.

* Add changelog

* In a block editor the Update button does not have the selector.

* Remove - from Tracks even property.

* Refine a condition of a non-empty object.

* Incorporate feedback: add callback for rendering the Update button.

* Add recent feedback- jQuery way of handling post render execution.

* Remove `console.log

* Fix `product_update` event recording

* Removed `hasRecordedEvent` and fixed `description validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-06-30 11:48:21 +02:00
Chi-Hsuan Huang 41ecb1ed6f
Fix wrong copy in the payments task on the Home Task list (#33663)
* Fix wrong copy in the payments task on the Home Task list

* Add changelog
2022-06-30 15:23:03 +08:00
Ilyas Foo d6ccaa67de
Shipping recommendation task set location step manual navigation (#33667)
* Adds capability for store location step to be manually navigated

* Add test

* Changelog
2022-06-30 14:45:52 +08:00
Chi-Hsuan Huang 2dc3d87e1c
Payment task: fix wrong copy in the accordion link (#33662)
* Fix wrong copy in the accordion link for payment task

* Add changelog
2022-06-30 12:20:23 +08:00
Tam Mullen def11b77d9
Update daily smoke test to add k6 smoke tests (#33658)
* Add k6 test scenario to the daily smoke test action.

* Add blank patch changelog for daily smoke update
2022-06-29 16:01:37 -06:00
Jorge A. Torres a80e0fe203
[COT] Implement create() method in COT datastore (#33341) 2022-06-29 08:54:29 -03:00
Moon feb3ab0581
Update shipping logic when OBW is skipped (#33630)
* Update shipping task fields when shipping smart default feature is enabled.

* Always display the shipping task regardless of having a physical product

* Updated text copy for the fields

* Do not display the step description if it is not the current step

* Added a banner for the shipping printing step

Remove description if the it is not the current step

* Add changelog

* Fix namespace conflict after the rebase

* Re-use wcs banner from the experimental shipping recommendation

* Delete ShippingLabelPrinting -- replaced by wcs banner from experimental-shipping-recommendation

* Add TOS link

* Remove ShippingPrintLabel styles -- no longer needed

* Minor refactor

* Move description set logic to getSteps()

* Use map to override step fields

* Remove unnecessary feature check

* Remove description in the map func

* Render ShipStation banner if plugins includes woocommerce-shipstation-integration
2022-06-29 00:40:42 -07:00
Chi-Hsuan Huang 88a66e6983
Update review shipping options task complete logic (#33650)
* Update review shipping options task complete logic

* Add changelog
2022-06-29 15:34:09 +08:00
Chi-Hsuan Huang 2e167ca088
Fix borken react admin commands (#33649)
* Fix admin build:packages and test:packages

* Add changelog
2022-06-29 13:02:56 +08:00
Ilyas Foo 1daa1c07fe
Add tests for shipping recommendation task (#33633)
* Move redirect function to utils to easily mock

* Add test

* Changelog
2022-06-29 11:24:25 +08:00
Christopher Allford 2e87b32034
Removed WooCommerce 6.7 Changelog Files (#33643)
Removed Changelog Files
2022-06-28 13:22:18 -07:00
jonathansadowski d48a0b2d90
Add helper tool for making sure build, lint, and test are run through Turborepo (#33573)
* Add helper tool for making sure build, lint, and test are run through Turborepo

* Update node version for require-turbo
2022-06-28 13:17:05 -05:00
Roy Ho 98cf4e7160
Add PR numbers to changelog entries on code freeze process (#33627)
* Add PR numbers to changelog entries on code freeze process

* Add markdown links to PR
2022-06-28 11:15:39 -07:00
Joshua T Flowers 0a5b912288
Move tracks _ui and _ut properties out of filtered tracks properties (#33621)
* Move tracks _ui and _ut properties out of filtered tracks properties

* Add tests around tracks properties

* Fix broken variable name

* Add changelog entry
2022-06-28 09:43:17 -04:00
Ilyas Foo b178e8a1f6
Add new flow shipping recommendation task (#33620)
* Plugins component skip button is now optional

* Add link from payment settings page

* Add new experimental shipping task flow

* Changelog

* Update plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/ExperimentalShippingRecommendation.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Rename all tracks to shipping_recommendation

* Add back skip installer bind

* Pass plugins list to pluginSlugs to be more predictable

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-28 13:53:03 +08:00
Moon e9006b56df
Add logic to set the default shipping options on homescreen (#33547)
* Add logic to set the default shipping options

* Set the flat rate cost to 15 (temp cost)

* Add changelog

* Update plugins/woocommerce/src/Internal/Admin/Homescreen.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Run the changes only if shipping-smart-defaults is enabled

* Assume user is going to sell physical products if obw is skipped or the store details has not been completed

* Make sure store country is set by an actual user by checking the value of woocommerce_store_addres

* Remove flat late logic

* Use woocommerce_store_address. store_address is always empty

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-27 20:23:13 -07:00
Chi-Hsuan Huang 5eea5ab072
Fix shipping display logic United Kingdom country code (#33629)
* Fix shipping display logic country code UK -> GB

* Add changelog
2022-06-28 11:15:01 +08:00
Roy Ho 14066bdeae
Add phpcs-changed (#33584)
* Add phpcs-changed

* Put report flag value in quotes

* Use phpcs action workflow instead

* Remove no longer used phpcs script

* Remove phpcs ignore rule

* Use proper name for code sniffer step
2022-06-27 11:46:29 -07:00
Pierre Carrier 10e1e62b8e
class-wc-geolocation.php: hide blog URL from third-party providers (#31941)
* includes/class-wc-geolocation.php: hide URL.
* Add changelog.
* Make phpcs happy.

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-24 17:34:29 -03:00
Dekadinious 2c721c7c88
Fixes issue #33335 (#33431)
* Fixes issue #33335

Check for an empty string instead of an empty variable.

* Update wc-product-functions.php

* Update wc-product-functions.php

* Changelog

* Fix cases when $term is false or empty array

Co-authored-by: Peter Fabian <peter.fabian.github@gmail.com>
2022-06-24 17:48:17 +02:00
RJ d2967e0ee8
Fixed missing wcpay setup task (#33590)
- task fill page was missing for the woocommerce-payments task
2022-06-24 17:06:43 +08:00
RJ 54b72dcae1
Fix: improve woocommerce-admin plugin deactivation notice message (#33592)
* Fix: improve wca deactivation notice message

* Update plugins/woocommerce/src/Internal/Admin/Loader.php

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2022-06-24 17:00:42 +08:00
RJ c9e0cccc19
fix payments banner experiment test (#33589)
test needed to be updated as the component did not call useExperiment directly anymore
2022-06-24 13:06:11 +08:00
Chi-Hsuan Huang 417b694e1e
Fix local site url in woocommerce readme (#33579)
* Fix local wp site url in woocommerce/README.md

* Add changelog
2022-06-24 09:32:27 +08:00
Chi-Hsuan Huang 49b07dd9a8
Update shipping task display logic (#33533)
* Update display shipping task logic

* Add changelog

* Update ReviewShippingOptions.php

* Update ReviewShippingOptions.php

* Update ReviewShippingOptions.php

* Update shipping task display logic

* Add doc comments for can_view

* Update comment

* Update shipping task display logic to prevent showing two task simultaneously
2022-06-23 15:56:19 +08:00
Chi-Hsuan Huang 93c15e9f7d
Switch to ESLint to fix admin lint command (#33577)
* Switch woo admin lint command from wp-script to eslint

* Add changelog
2022-06-23 12:00:28 +08:00
Chi-Hsuan Huang dcbae453f8
Update shipping recommendations display logic (#33529)
* Update shipping recommendations display logic

* Add todo comment

* Add changelog

* Render null for shipping recommendations if store only sells digital products

* Fix onboarding product type

* Update plugins/woocommerce-admin/client/shipping/test/experimental-shipping-recommendations.tsx

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

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-06-23 09:54:38 +08:00
nigeljamesstevenson 77a93cc7ad
Update e2e README port number, remove Nx install PreRequisite steps (#33558)
Update e2e README port number, remove Nx install
2022-06-22 19:00:28 -06:00
Ilyas Foo 9c4c3834a7
Fix payments settings banner experiment logic (#33549)
* Delegate payment experiment logic into its own hook and rearrange the checking logic to be before the experiment is called

* Changelog
2022-06-22 16:45:31 +08:00
David Stone c8cb9877a2
Show generic error when trying to process a checkout while offline (#30860)
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-21 17:02:14 -03:00
Paul Sealock a80462d594
Beta Tester: Prep for release (#33463) 2022-06-22 07:26:15 +12:00
Christopher Allford f6e065026e
Fixed Unit Test Suite (#33543)
This commit adds a missing `"test"` command
to the WooCommerce `package.json` file.
2022-06-21 12:11:43 -07:00
Johan de Jong ca524a7266
Add sort method to hide hidden columns in products sortable (#31866)
Co-authored-by: Jorge Torres <jorge@0xbad.com>
2022-06-21 15:26:43 -03:00
Mathias Reker ⚡️ ef8cf9f460
Ordered interfaces (#33488)
Orders the interfaces in an implements or interface extends clause.
2022-06-21 17:42:39 +02:00
David Marín 9095b65d0e
Add $transaction_id to payment_complete hooks (#28930)
Add $transaction_id to payment_complete hooks

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-21 11:21:26 -03:00
Michael P. Pfeiffer 958d083600
Fix broken design of Single Product template in block themes and on-sale badge being partially hidden (#33511)
* Fix broken design of Single Product template in block themes and on sale badge being partially hidden

* Update changelog to mention Twenty Twenty-Two explicitly.

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2022-06-21 16:26:40 +05:30
Néstor Soriano 3b089f97dc
[PHP 8.1] Fix code that throws deprecation notices in tests in PHP 8.1 (#31333)
* Fix phpcs errors and warnings

* Fix code that throw deprecation notices in PHP 8.1

The deprecation notices are about:
- Various "passing null to parameter (...) is deprecated"
- Usage of strftime
- Using "false" as if it was an empty array
- Mismatching return type of implemented interfaces,
  that's fixed by adding #[\ReturnTypeWillChange]

* Fix some more code that throw deprecation notices in PHP 8.1

* Small commenting/formatting fixes.

* Add changelog file

* Formatting.

Co-authored-by: Peter Fabian <peter.fabian.github@gmail.com>
2022-06-21 12:16:44 +02:00
Chi-Hsuan Huang e412d5912b
Migrate `@woocommerce/data` item store to TS (#33482)
Migrate item store to TS
2022-06-21 16:46:30 +08:00
Chi-Hsuan Huang 7068c78101
Fix JS lint errors (#33484)
* Fix @woocommerce/data lint errors

* Fix internal-e2e-builds lint error

* Fix lint errors
2022-06-21 16:37:34 +08:00
Chi-Hsuan Huang 8825e06e46
Fix feature flags (#33532) 2022-06-21 15:48:30 +08:00
Chi-Hsuan Huang 420ed1e81f
Add shipping-smart-defaults and shipping-setting-tour feature flags (#33531)
* Add shipping-smart-defaults and shipping-setting-tour feature flags

* Add changelog
2022-06-21 14:24:47 +08:00
Luigi Teschio a53b44f6ef
Update WooCommerce Blocks package to 7.8.3 (#33514) 2022-06-20 16:34:29 -03:00
Brian 820963d450
Adjust DKK Currency Symbol (#33509)
Update Danish currency symbol per CLDR R41.
2022-06-20 10:34:42 -07:00
Kamil cea8aaf53d
Remove legacy image sizes which were planned for removal into 4.6.0 (#32709) 2022-06-20 12:00:33 +02:00
saboanca 5948858476
Add extra hook in email setup_locale and restore_locale functions. (#33254) 2022-06-20 11:40:33 +02:00
Dharmesh Patel 3abb3dfa8e
Added local pickup handling in `get_tax_location()`. (#33330) 2022-06-20 11:29:11 +02:00
Vedanshu Jain 87ccf73da7
Convert null and '' to 0 before verification. (#33453)
During migration $wpdb->prepare would force null and empty values to be zero for %f placeholder. This was causing verification logic to fail, which is being addressed in this commit.

The alternative was to insert null values without running them via $wpdb->prepare, but that seemed less safer than converting to zero because it would have to done manually since $wpdb->prepare wouldn't support it.
2022-06-20 09:43:10 +02:00
Christopher Allford 71456382c4
Add Client Components Documentation To WooCommerce Core (#33507)
This commit adds documentation for WooCommerce's client component commands. This should make it easier to know what commands to run to work in these components.
2022-06-17 15:32:29 -07:00