Commit Graph

50341 Commits

Author SHA1 Message Date
Vedanshu Jain b9fd1b8129 Add test for upshifting child orders. 2023-01-02 17:03:06 +05:30
mujuonly d4ce6faf1e
Typo correction in woocommerce/src/Admin/ReportsSync.php (#36122)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-01-02 12:11:37 +01:00
Barry Hughes c2b2eb5bed
Adds `add_meta_boxes_<SCREEN_ID>` hook to the HPOS order editor. (#35999)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-01-02 12:10:14 +01:00
Vedanshu Jain be97c1353b Add test for sorting by include param. 2023-01-02 16:20:25 +05:30
Thilina Pituwala a633ff8abf
Fix signature mismatch in WC CLI command api calls (#36240) 2023-01-02 11:34:20 +01:00
Roy Ho 0d641253ac
Revert "Automatically show attributes in Variations" (#36223)
Revert "Automatically show attributes in Variations (#35807)"

This reverts commit e4f6c468cb.
2023-01-02 10:07:30 +13:00
Joshua T Flowers 3fe3710c51
Automatically generate product variations on option changes (#36188)
* Auto generate variations on option changes

* Add changelog entry

* Move product variation generation to hook

* Create product auto draft if not yet created

* Allow auto-draft and trash statuses for products

* Update form context with product ID to allow fetching variations

* Fix product ID usage in variations

* Reset form after initial product creation

* Use form value name for display instead of persisted name for auto drafts

* Add additional test around auto draft title
2022-12-30 13:12:09 -08:00
Joshua T Flowers c9748dda09
Add ability to filter variations by local attributes in REST API (#36201)
* Allow filtering of variations by local attributes in REST API

* Add changelog entry

* Fix up lint errors
2022-12-29 12:23:35 -08:00
github-actions[bot] b4502cf5d0
Delete changelog files based on PR 36159 (#36231)
Delete changelog files for 36159

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-29 07:13:09 -08:00
github-actions[bot] e68e2f0545
Delete changelog files based on PR 36158 (#36180)
Delete changelog files for 36158

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-29 07:12:49 -08:00
Jorge A. Torres a5a2743e79 Add changelog 2022-12-28 18:35:32 -05:00
Jorge A. Torres b09eda12c1 Allow product filters to work when ‘shop’ is the front page 2022-12-28 18:22:08 -05:00
Nima 4d6ef8ece3 Unregister all channels on test tear down 2022-12-28 21:05:27 +00:00
Nima 130b2a94c6 Add `unregister_all` method
To allow unregistering all marketing channels.
2022-12-28 21:05:09 +00:00
Nima 5913a4f489 Merge branch 'feature/34548-multichannel-marketing-backend' into feature/34556-marketing-api 2022-12-28 17:29:31 +00:00
Nima Karimi 3fb90016dc
Multichannel Marketing - Changes to the marketing classes (#36012)
* Rename `get_errors_no` to `get_errors_count`

* Remove the validation for marketing channel slugs

Do not check if the marketing channel's slug exists in the list returned by WooCommerce.com Recommendation API. This allows any third-party extension to register as a marketing channel.

* Revert InstalledExtensions

The InstalledExtensions class will be used by the previous generation of the Marketing dashboard (if the user has not enabled the new "Marketing" feature); therefore, it's best to restore it to the original code.

* Fix code style

* Translate Exception message

* Remove doc references to a predetermined list of marketing channels

Co-authored-by: Nima <nima.karimi@automattic.com>
2022-12-28 20:25:37 +03:00
Nima 4ef2d5781f Merge branch 'feature/35956-mcm-library-changes' into feature/34556-marketing-api 2022-12-28 13:41:17 +00:00
Nima 4e192e71b7 Merge branch 'feature/34548-multichannel-marketing-backend' into feature/35956-mcm-library-changes 2022-12-28 13:40:31 +00:00
Nima a9e8dd0e1c Merge branch 'trunk' into feature/34548-multichannel-marketing-backend 2022-12-28 13:39:42 +00:00
Nima f7be32dc9b Remove doc references to predetermined list of marketing channels 2022-12-28 13:30:48 +00:00
Nima 44042634e6 Translate Exception message 2022-12-28 13:28:43 +00:00
Nima e82feb21da Add unit tests for `marketing/campaigns` API 2022-12-28 13:27:19 +00:00
Nima 817ca2a96f Add `marketing/campaigns` API 2022-12-28 13:27:10 +00:00
Nima 200156d735 Add unit tests for `marketing/channels` API 2022-12-28 13:26:52 +00:00
Nima a1468ec739 Add `marketing/channels` API 2022-12-28 13:26:40 +00:00
Nima 086ce8f48a Add unit tests for `marketing/recommendations` API 2022-12-28 13:26:04 +00:00
Nima 677416fcf2 Add `marketing/recommendations` API 2022-12-28 13:25:51 +00:00
Nima 7dcdbd871e Add methods to filter the recommended marketing channels and extensions 2022-12-28 13:23:42 +00:00
Nima 6415f3f911 Add channel property to MarketingCampaign 2022-12-28 13:23:26 +00:00
Vedanshu Jain 69629aca0b Add coding standards. 2022-12-28 16:12:11 +05:30
Vedanshu Jain 879741a0d3 Add changelog. 2022-12-28 16:11:12 +05:30
Vedanshu Jain 44757082d0 Set child orders to be children of current order parent before deleting for consistency.
In post storage, just before deleting an order, we will change all child order's parent to be parent of current order. This commit adds the same behavior for HPOS for consistency.
2022-12-28 16:09:13 +05:30
rodelgc 3daeac9a69
Migrate E2E daily shopper tests (#35873)
Enable shopper E2E tests on Daily smoke test workflow
2022-12-28 18:28:17 +08:00
Vedanshu Jain 082d972377 Add changelog. 2022-12-28 15:48:24 +05:30
Vedanshu Jain 566498fb34 Fix bug when filtering for customer_id=0. 2022-12-28 15:47:39 +05:30
Vedanshu Jain e163e1a265 Add changelog. 2022-12-28 15:45:41 +05:30
Vedanshu Jain d00f606849 Add support for sorting by includes param. 2022-12-28 15:44:56 +05:30
Vedanshu Jain 2712b4724f Add changelog. 2022-12-28 15:27:15 +05:30
Vedanshu Jain 7a15ad61b7 Skip custom search for HPOS API queries as it's handled already.
For HPOS, we don't need a seperate step of passing the args through wc_order_search since we take care of search params in the final query itself. This duplication was actually causing for some results to not be displayed since we were ending up not honouring pagination arguments and would search only in first 10 matches.
2022-12-28 15:22:17 +05:30
Chi-Hsuan Huang 8c3f06c452
Fix "Save changes?" modal saves the options after selecting the 'Discard' option (#36160)
* Tweak save change modal padding

* Fix obw save change and add e2e tests

* Add changelog

* Fix product_types step
2022-12-28 16:23:16 +08:00
Chi-Hsuan Huang 9f0d718a33
Cleanup product task experiment (#35950)
* Cleanup product task experiment

* Rename experimental-products -> products

* Add changelog

* Clean up product task experiment in woo/onboarding

Remove product variant

* Rename experimental-import-products -> import-products

* Clean up OnboardingTasks.php

* Add changelog

* Remove experimental-products-task feature flag
2022-12-28 16:08:54 +08:00
Miguel Pérez Pellicer b133ad98c7
Add noDataLabel into Table component allowing to customise No Data Label message. (#36124)
* Add noDataLabel property to allow No Data Message customization

* Adding changelog

* Update variable name

* Add story book use case
2022-12-28 12:31:35 +07:00
Fernando Marichal f5e23c329c
Fix edit attribute modal terms list (#36186)
* Fix `EditAttributeModalProps` terms list

* Add changelog

* Fix `AttributeField` continuos hydration

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-27 15:38:08 -03:00
Maikel David Pérez Gómez 8fc2818e28
Add edit button to variations list items (#36079)
* Add edit button to variations list items

* Add comment feedbacks
2022-12-27 15:22:52 -03:00
Joshua T Flowers 5137973d91
Add product variation header actions and persistence (#36155)
* Fix up updateItem query in CRUD data store

* Add product variation form header

* Fix gaps for variation and parent product actions

* Hide preview button on mobile for product variations

* Add changelog entry

* Add data package changelog entry

* Fix lint errors
2022-12-27 10:21:32 -08:00
nigeljamesstevenson 7d32d553cf
update/api-core-tests guide for writing tests (#35978)
* api-core-tests guide for writing tests

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* updates after PR review

* updates after review

* updates after review

* updates after review

* readme update

* add reference to authentication in the quick start guide

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-12-27 09:27:39 +01:00
Roy Ho d0e143a8bc
Dev/create woo extension/php cleanup (#36017)
* Clean up

* Add changelog
2022-12-26 07:07:11 -08:00
Gan Eng Chin 6382b4997c
Make `Table` component accept `className` prop (#36151) 2022-12-26 20:31:40 +08:00
Ilyas Foo 61ee3eb46a
Remove redundant Pinterest listing from marketing task (#36158)
* Remove redundant pinterest plugin shown in marketing task
2022-12-26 12:17:04 +08:00
Tam Mullen 0a6a4f2ec1 Adding changelog 2022-12-24 01:58:41 +00:00