Commit Graph

47373 Commits

Author SHA1 Message Date
Josh Betz 58aca9855e PoC: Allow auto-draft in API orders
For some operations in the API, like calculating taxes or shipping, it's
helpful to be able to have an order saved in the database. Having an
order object with an ID lets us perform other API actions on that order.
However, we also don't necessarily want these to show up on certain
screens.

Here we adopt the auto-draft status from core WordPress as a way to save
an order as a discrete object while signalling that it's not ready to
action yet.

Suggestions:

* auto-draft might not make sense given that it's used in core. We might
  want to use something like `draft` instead.
* We may want to track this separate set of statuses (trash, auto-draft)
  in a more official way, so we don't have to copy/paste around the
  codebase.
2022-01-12 14:53:52 -06:00
jamelreid 503fada6fb Removed duplicate plugins/woocommerce 2022-01-12 15:47:45 -05:00
jamelreid d49a68079e Imported and used removePathDuplicates method 2022-01-12 15:44:41 -05:00
Joshua T Flowers 583590ecf9 Add Magento migration note (https://github.com/woocommerce/woocommerce-admin/pull/8145)
* Add Magento migration note

* Add changelog entry
2022-01-12 15:41:12 -05:00
Joshua T Flowers 287b00d11b Add REST endpoint to retrieve address locales (https://github.com/woocommerce/woocommerce-admin/pull/8116)
* Add REST endpoint to retrieve address locales

* Add changelog entry
2022-01-12 15:40:52 -05:00
jamelreid 059346a725 Added removePathDuplicates method
This method ensures that we can execute tests using a relative path with or without `plugins/woocommerce` and/or `tests/e2e` prepended on the test file path.
2022-01-12 14:00:00 -05:00
Vedanshu Jain 6e08e1802f
Checkout tweaks for 2022 compatibility (#31619) 2022-01-12 13:17:49 -05:00
dnwjn f48358403e Add comments 2022-01-12 18:30:08 +01:00
Lucas Bustamante 926fed6828 Store test-results.json file in the project under test folder 2022-01-12 14:09:38 -03:00
Josh Betz 947b9c8ff1 Add doc comment for WC_REST_Coupons_Controller::prepare_objects_query 2022-01-12 11:06:44 -06:00
Josh Betz a88a7255b1 Fix infinite loop
Oops. We can't call $this->prepare_objects_query() unconditionally inside
prepare_objects_query(). This was my fault 🙃

b43af2ae16

To explicitly reference the parent implementation, we use `parent::`
2022-01-12 11:01:53 -06:00
Lucas Bustamante 1a6708b57c Keep the test-results.json file in the root dir of e2e-environment 2022-01-12 13:50:10 -03:00
Lucas Bustamante 037c6205d0 Remove extra space 2022-01-12 13:46:42 -03:00
Lucas Bustamante e124d4125a Add changelog 2022-01-12 13:44:32 -03:00
Lucas Bustamante 2cbedb1dc8 Show full path to test-result.json file 2022-01-12 13:39:38 -03:00
Peter Fabian 38931e401b
Merge pull request #31395 from woocommerce/fix/remove-old-images
Removed assets referred to from deprecated functions.
2022-01-12 16:21:51 +01:00
Kevin Ang d974373b1f
Use inline `onload` event instead of jQuery `load` 2022-01-12 08:30:05 -06:00
Moon 29d4e96114 Make sure WP_ENVIRONMENT_TYPE is defined before checking the value (https://github.com/woocommerce/woocommerce-admin/pull/8133) 2022-01-12 14:48:20 +08:00
Ilyas Foo a0ffceec06 Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8151)
* Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8083)

* Add wc-pay-welcome-screen flags

* Add wc pay welcome page from wc calpyso bridge

* Add changelog

* Rename var to pageViewTimestamp to prevent confusion

* Remove unused code

* Make sure hasViewedWelcomePage is a boolean value

* Simplify storeViewWelcome

* Add payments remind me later note (https://github.com/woocommerce/woocommerce-admin/pull/8085)

* Add payments remind me later note

Fix wcpay path

* Add changelogs

* Update src/Notes/PaymentsRemindMeLater.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix possibly_add_note syntax error

Update Events.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Replace flag icon with component and svg background to png (https://github.com/woocommerce/woocommerce-admin/pull/8101)

* Activate promo note after WC Pay is activated (https://github.com/woocommerce/woocommerce-admin/pull/8104)

* Activate promo after wcpay is a\ctivated

* Add changelogs

* Add experimental to promo API path and limit the promo names

* Use ExPlat to render the WC Pay menu conditionally (https://github.com/woocommerce/woocommerce-admin/pull/8115)

* Check ExPlat to render the menu conditionally

* Update the experiment name

* Fix letter case to follow feature class naming convention

* Enable wc-pay-welcome-page feature in core config (https://github.com/woocommerce/woocommerce-admin/pull/8124)

* Use wc_calypso_bridge_payments_dismissed option name to respect the previously saved setting from wp.com

* Missed wc_calypso_bridge_payments_dismissed rename

* Use the existing code to prevent duplication

* Fix warning (https://github.com/woocommerce/woocommerce-admin/pull/8141)

* Change experiment to come after checks (https://github.com/woocommerce/woocommerce-admin/pull/8142)

* Change track path to (https://github.com/woocommerce/woocommerce-admin/pull/8143)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Replace deprecated wc-admin-settings package

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-01-12 14:46:33 +08:00
Vedanshu Jain 159ceb3f35
Merge pull request #31575 from woocommerce/support/2022-my-account
Style My Account Pages for 2022 Theme.
2022-01-12 12:06:11 +05:30
Jeff Stieler 0c4035615a Style order details. 2022-01-11 22:46:49 -07:00
Jeff Stieler 497738ea71 Tweak show password icon again. 2022-01-11 21:51:26 -07:00
Jeff Stieler 59f57a631d Fix radio buttons on cart. 2022-01-11 21:51:14 -07:00
Jeff Stieler 4718c65352 Style order button and responsive form width. 2022-01-11 21:33:29 -07:00
Jeff Stieler 4b83fa9bca Style checkbox input. 2022-01-11 21:18:37 -07:00
Jeff Stieler cbc4d31ec5 Fix margin on my account address form. 2022-01-11 20:43:57 -07:00
Jeff Stieler 5c67ccdb86 Style radio buttons. 2022-01-11 20:43:40 -07:00
Jeff Stieler e4d51dc017 Style checkout form. 2022-01-11 20:43:32 -07:00
Jeff Stieler a3d83d4aec Fix checkout column layout. 2022-01-11 18:08:06 -07:00
Jeff Stieler e20d76a7f7 Style cart totals table. 2022-01-11 15:46:09 -07:00
Jeff Stieler 5224c4c83d Style "view cart" and "return to shop". 2022-01-11 15:14:31 -07:00
Jeff Stieler 9b8a73875d Fix add to cart buttons. 2022-01-11 14:58:16 -07:00
Jeff Stieler d20aa95d03 Fix password input. 2022-01-11 14:58:08 -07:00
Jeff Stieler 9ef7e0c778 Style cart items table. 2022-01-11 14:57:52 -07:00
Joel Thiessen 8ab602de9d Adding allowed plugins to composer configuration (https://github.com/woocommerce/woocommerce-admin/pull/8139) 2022-01-11 12:14:28 -08:00
Jeff Stieler 51f3e1c3f0 Style login form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 96241487d5 Style tables on my account. 2022-01-11 11:04:11 -07:00
Jeff Stieler ca7a3eec62 Fix input height - affected add to cart. 2022-01-11 11:04:11 -07:00
Jeff Stieler c6dd0f0ab5 Remove button inner border. 2022-01-11 11:04:11 -07:00
Jeff Stieler d0f4691b65 Fix notice/message bottom margin. 2022-01-11 11:04:11 -07:00
Jeff Stieler 7e28e79f26 Style address edit form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 540cbf587a Initial styles for my account template. 2022-01-11 11:04:11 -07:00
Jeff Stieler f07a9d40ad Fix message display on my account page. 2022-01-11 11:04:11 -07:00
Vedanshu Jain 487c4f6e17
2022 theme stylings for product and shop pages. (#31536)
* 2022 theme stylings for product and shop pages.

* Add support for variable products and gallery.

* Add margin to reset button.

* Add support grouped product.

* Disable breadcrumb and add notice styling child.

* Reduce heading size on title page.

* Reduce font-size for content in tabs.

* Fixes for PR 31536 (#31611)

* Set max width to 1000px for shop and products.

* Display breadcrumbs on product pages.

* Remove admin styles.

* Fix result count and ordering control alignment.

* Fix onsale alignment on single product pages.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-11 12:57:48 -05:00
Moon 7348c302ec Fix duplicated back button with two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8138)
* Do not render individual task in the extended component when it is rendered with two column task component
* Change var name to shouldRenderTask
2022-01-11 08:21:50 -08:00
Josh Betz b1da020e07 Fix indentation
We use spaces to align the `=>` instead of a mix of tabs and spaces.
2022-01-11 10:08:12 -06:00
Miguel Perez Pellicer 06faa5daa6 Fix logic in get_template_loader_default_file function for loading custom product taxonomies. 2022-01-11 12:30:14 +01:00
Tom Cafferkey c01e9e6582 Allow relevant block templates to be listed in the edit product view 2022-01-11 11:21:42 +00:00
anitaamurthy 9a34ccc7ba Merge branch 'trunk' into issue/31562-filter-coupons-by-status
# Conflicts:
#	plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php
#	plugins/woocommerce/tests/legacy/unit-tests/coupon/data.php
2022-01-11 11:36:16 +05:30
Jeff Stieler 030cea98c8 Improve Customers Sync Performance (https://github.com/woocommerce/woocommerce-admin/pull/8021)
* Avoid unnecessary customer ID retrieval.

* Ignore order count when validating customers.

WC_Customer::get_order_count causes a full table scan without cache.

* Don't get customer names from their last order.

WC_Customer::get_last_order has to scan all _customer_user meta rows.

* Add changelog entry.

* Fix changelog.

* Cache customer ID in Order override classes.

* Check all user roles.
2022-01-10 19:22:09 -05:00