Commit Graph

9768 Commits

Author SHA1 Message Date
Maikel David Pérez Gómez 8354ae2792
Create schedule sale pricing block (#37567)
* Create schedule sale pricing block

* Add auto show/hide and clean fields depending on the initial values

* Add validations to From and To dates fields

* Add changelog files

* Align block with the figma design

* Revert linter replacement in the editor global style.scss file

* Fix some words typos

* Move and rename schedule sale block to the blocks folder

* Load datetime format from @wordpress/date instead of using the woo options datastore

* Remove the min difference using by moment to compare dates from 'minute' to undefined

* Make sure the dates are normalized for comparison
2023-04-11 10:53:37 -04:00
Nathan Silveira fa4dd90401
Change link all variations label (#37632) 2023-04-11 11:44:27 -03:00
Darren Ethier 50593c5257
Fix issue that breaks the WooCommerce Home Page when Gutenberg 15.5 is active (#37641)
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
2023-04-11 15:27:38 +08:00
Chi-Hsuan Huang 4cc6644c8b
Add default priority for countries that don't exist in payment recommendation map (#37590)
* Add default priority for countries that are not in the payment recommendation map

* Add changelog

* Add doc

* Fix linting
2023-04-11 14:13:59 +08:00
Nathan Silveira 5d68259480
Add different confirmation message when attribute is used in a variation (#37527)
* Add different confirmation message when attribute is used in a variation

* Update logic to only consider checkbox checked value when prompting message
2023-04-10 17:44:51 -03:00
Ron Rennick 054471618e
Dev - Add customer object parameter to taxable address filter (#37426) 2023-04-10 13:36:06 -03:00
Matt Sherman a054ddbf50
Beta Tester: Update WCA Test Helper option modal to show full option name (#37495)
* Adjust options modal so that option name is not cut off

* Changelog
2023-04-10 08:36:13 -04:00
Matt Sherman 5dda0aac48
Beta Tester: Update WCA Test Helper Features list (#37483)
* Alphabetize features list

* Use toggles instead of button for features

* Changelog
2023-04-10 08:34:38 -04:00
Corey McKrill 152f0d3793
Make HPOS migration more strict by removing IGNORE. (#37595) 2023-04-07 12:30:48 -07:00
Vedanshu Jain 40d823df5c Coding standard fix. 2023-04-07 18:31:21 +05:30
Vedanshu Jain 835d089fb7 Add changelog. 2023-04-07 18:11:32 +05:30
Vedanshu Jain e85e68e0c5 Merge branch 'trunk' into pr/36885 2023-04-07 18:07:24 +05:30
Vedanshu Jain e0327e3223 Fixup in unit test. 2023-04-07 18:06:55 +05:30
Anastasio 0d93e92bd1 Merge remote-tracking branch 'upstream/trunk' into woocommerce-webp-support 2023-04-06 21:39:42 +03:00
Ron Rennick b0f042e252 Merge branch 'trunk' into woocommerce-webp-support 2023-04-06 14:54:41 -03:00
Ron Rennick 8be211b45b
Change default order to ‘date DESC’ in orders list table (#37565) 2023-04-06 14:27:09 -03:00
Joshua T Flowers 868fbbf23a
Register product editor blocks server-side (#37339)
* Move product block editor to new feature name

* Register all blocks and block assets server-side

* Add changelog entry

* Disable phpcs rule for file_get_contents
2023-04-06 10:13:48 -07:00
Vedanshu Jain 232a98317a Add changelog. 2023-04-06 20:48:45 +05:30
Vedanshu Jain 7f00d211d1 Make migration more strict by removing IGNORE. 2023-04-06 20:48:11 +05:30
github-actions[bot] 33352895bc
Delete changelog files based on PR 37569 (#37581)
Delete changelog files for 37569

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-06 01:56:28 +02:00
Joel Thiessen 07b84051b2
Adding charge sales tax field to product block editor template (#37582) 2023-04-05 16:23:58 -07:00
Nathan Silveira 277f4aab12
Show tooltip in Save attributes button instead of using title attribute (#37345)
* Modify tipTip to allow showing dynamic content

* Show tooltip when button is disabled

* Add tipTip and disabled logic to create variations button

* Add header comment in tipTip plugin
2023-04-05 16:22:59 -03:00
Joshua T Flowers 7734027b4a
Add product radio block and tax class to product blocks editor (#37529)
* Add product radio block

* Wrap tax class radio in collapsible block

* Add link to description and sanitize HTML

* Add changelog entry

* Fix up php lint errors

* Add changelog entry

* Fix linting errors

* Remove unused import
2023-04-05 10:13:05 -07:00
Fernando Marichal a5fe4232c7
Change variations dropdown visibility (#37558)
* Add default action with the name `Bulk actions`

* Attach event when dropdown changes

* Add changelog

* Remove `Go` button

* Fix e2e tests

* Fix styles

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-05 13:56:42 -03:00
Vedanshu Jain 9e9060e95b
Do not attempt to cache orders during order creation (#37569) 2023-04-05 20:49:57 +05:30
Vedanshu Jain 54eb2a0c43
Add sort order for migration script. (#37545) 2023-04-05 11:43:13 +02:00
Ron Rennick d272495d08
update select all to checkbox in menu editor (#37562)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-04-05 11:06:10 +02:00
Vedanshu Jain 817458a433 Remove caching on order save, instead do it when order is fetched.
This allows all the hooks when getting an order to be executed and we cache the correct object.
2023-04-05 13:29:29 +05:30
John Greys c4cab15bd8 Add @since tag to woocommerce_customer_taxable_address filter 2023-04-05 00:50:07 +00:00
Jorge A. Torres 4250e9d7b5 Add changelog 2023-04-04 17:08:35 -05:00
Jorge A. Torres 1868311c6f Change default order to ‘date DESC’ in orders list table 2023-04-04 17:08:35 -05:00
Jorge A. Torres 1d6c98985e Add changelog 2023-04-04 16:56:32 -05:00
Jorge A. Torres 77e3cc5c77 Do not attempt to cache order during order creation (HPOS) 2023-04-04 16:56:29 -05:00
Ron Rennick 124bf3e529
Add changelog file 2023-04-04 13:18:36 -03:00
Maikel David Pérez Gómez f7572b4361
Move the Save draft and Preview buttons to the product editor header (#37461)
* Add preview button to the product editor header

* Publish the product on add or on save

* Add save draft button

* Save product changes before previewing it

* Add notice messages

* Fix linter errors

* Force the store page to be openned in a new tab after publishing the product

* Enable publish button when the status is not publish

* Add changelog files

* Fix some comment typos

* Address comment suggestions

* Move preview logic to its own component

* Move save draft logic to its own component

* Move publish logic to its own component
2023-04-04 11:30:39 -04:00
Barry Hughes 32c766c5f8
Prevent duplicate alias in orders query SQL (#37560) 2023-04-03 14:13:19 -07:00
Jorge A. Torres 2cd5cdcc8c Add changelog 2023-04-03 13:56:27 -05:00
Jorge A. Torres 35bbb0c920 Re-use aliases from OrdersTableQuery for field queries 2023-04-03 13:55:38 -05:00
Jorge A. Torres b156651243 Use backticks for JOIN on OrdersTableQuery 2023-04-03 13:55:30 -05:00
Barry Hughes bcfbfbd6d2
Thank you page (/checkout/order-received): payment gateway title formatting (#37481) 2023-04-03 09:47:14 -07:00
Barry Hughes 174d9075d9
Revert "Replace $.ajax() calls with browser-native window.fetch() calls." (#37463) 2023-04-03 09:46:49 -07:00
Ron Rennick cb7f34de44
Restore reviews (comments) to the product editor (#37457) 2023-04-03 13:02:01 -03:00
barryhughes 3a1fc77442 Simply; just use `wp_kses_post()`. 2023-04-03 07:50:59 -07:00
Sam Seay 418ae6a86c
Add a changelog entry. 2023-04-03 14:17:32 +08:00
Fernando Marichal d625f72e2b
New empty state for variations (#37411)
* Add variations empty state

# Conflicts:
#	plugins/woocommerce/client/legacy/css/admin.scss
#	plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php

* Fix styles

* Add changelog

* Fix html

* Fix js

* Show and hide select and button

* Fix e2e tests

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/merchant/create-variable-product.spec.js

* Fix lint

* Fix hidden style

* Fix js for hidden elements

* Fix lint

* Transform `load_variations` into a promise

* Fix e2e test

* Fix tests

* Remove comment

* Fix styles

* Fix comment

* Remove async

* Remove async

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-31 16:40:16 -03:00
Maikel David Pérez Gómez 6df1cef307
Add Sale price and list price blocks to pricing tab with pricing section (#37513)
* Add pricing section to the pricing tab

* Add changelog file

* Fix php linter errors
2023-03-31 14:47:31 -03:00
Joshua T Flowers 85080f642b
Add block related assets entry points to product editor build (#37318)
* Add editorStyle properties to blocks

* Rename style.scss files to editor.scss

* Get block entry points for block related assets

* Copy block assets to core assets build folder

* Remove unusable dependency

* Add changelog entries

* Fix up RTL style builds for block assets

* Update copy-webpack-plugin dependency and lock file

* Fix up lock file after rebase

* Fix order of webpack rtl stylesheet builds to prevent additional stylsheets

* Fix up lock file after rebase

* Fix tsconfig
2023-03-31 10:36:40 -07:00
Chi-Hsuan Huang e553759ab6
Fix `FormContext` type error in client/tasks/fills/steps/location.tsx (#37532)
* Fix FormContext type error

* Add changelog
2023-03-31 18:43:16 +08:00
Nathan Silveira deb1cde448
Add listener to parent to avoid event being overwritten when DOM is replaced (#37431) 2023-03-30 16:41:20 -03:00
Moon 658034f64e
Migrate steps/location to TS (#37257)
* Migrate steps location to TS

* Add description for ts-expect-error
2023-03-30 12:07:58 -07:00