Commit Graph

5749 Commits

Author SHA1 Message Date
Claudio Sanches 683cc40cbf
Merge pull request #30097 from woocommerce/add/shipping-phone
Add support for Shipping Phone Number in Order and Customer classes
2021-07-20 21:00:45 -03:00
Roy Ho 95abba7eeb
Merge pull request #30041 from woocommerce/add/29609
Sync the product attributes lookup table on product creation/change/deletion
2021-07-16 15:03:54 +01:00
Nestor Soriano d3bfd33e98
Use 'esc_attr' instead of suppressing the PHPCS warning 2021-07-16 09:16:20 +02:00
Mahmoud Saeed 7cdf8d46f6 Fix fatal error if $screen is null 2021-07-14 17:51:44 +02:00
Nestor Soriano 9017c953bd
Remove the metabox for regenerating attribute lookup data for single product
Instead, a product selector has been added to the "Regenerate
product attributes lookup table" entry in the tools page. If a product
is selected, the tool regenerates the data only for that product;
otherwise, it regenerates the entire table.

This has forced a change on how the tools page is rendered. Now,
instead of each tool being just a description and a trigger link,
a form with GET method is rendered for each tool. The forms are rendered
first and then the tools, since HTML doesn't allow to include forms
inside tables; each button is associated to its form with a "form"
attribute.

Additionally, now the tools array returned by the woocommerce_debug_tools`
hook can have a 'selector' array with the details needed to render a
selector, which will also be part of the form for the tool.
2021-07-14 12:01:42 +02:00
roykho 5d0bcfa053
Revise logic to hook into admin_init to trigger adding note instead of scheduling 2021-07-06 09:21:42 -07:00
roykho d9773ee0e4
Fix typo 2021-06-30 21:02:15 -07:00
roykho 5bfee13c44
Remove trailing comma 2021-06-30 20:23:55 -07:00
roykho ade4478912
Add WC Admin inbox note when page is created 2021-06-30 13:03:47 -07:00
roykho 946aeb8d15
Update create_pages function to support post_status 2021-06-29 13:51:35 -07:00
Vedanshu Jain 89aac04387
Merge pull request #30138 from woocommerce/fix/30136-no-block-templates-for-products
Exclude block templates from showing up in product edit page
2021-06-29 17:12:17 +05:30
Michael P. Pfeiffer a65f31e2de Return early if gutenberg_get_block_template function does not exist 2021-06-29 13:10:45 +02:00
Néstor Soriano 1f1f331432
Merge pull request #30081 from woocommerce/frosso/wcs-extensions-bannes-updates
chore: copy changes on WCS banner
2021-06-28 16:52:44 +02:00
Vedanshu Jain de9a0b176b
Merge pull request #30082 from woocommerce/frosso/remove-canada-post-extension-banner
chore: remove WCS canada post mentions
2021-06-25 15:38:29 +05:30
Albert Juhé Lluveras ebee0e157e Exclude block templates from showing up in product edit page 2021-06-21 20:41:48 +02:00
Claudio Sanches 9f8d3e84dc
Merge pull request #29970 from woocommerce/fix/29686
Include download IDs in csv import/export to retain import download permissions.
2021-06-17 12:11:20 -03:00
roykho f9e59fc9a9
At cancelled status for bulk actions closes #29928 2021-06-16 11:53:09 -07:00
Jonathan Sadowski c67fda9552 Update importer to grab downloads id from export file when updating rows 2021-06-15 10:06:37 -05:00
Albert Juhé Lluveras ee08d2d110 Register woocommerce.css so it can be enqueued in the editor 2021-06-14 08:32:26 +02:00
frosso d6724ad67d chore: remove WCS canada post mentions 2021-06-10 13:07:24 -05:00
frosso e445918c8e chore: copy changes on WCS banner 2021-06-10 12:29:32 -05:00
Mike Jolley e9db2d4522 Add shipping phone to user profile/order screen 2021-06-03 13:58:19 +01:00
Claudio Sanches 94bdcd0320
Merge pull request #27684 from woocommerce/refactor/settings-pages-classes-take-2
Refactor the settings pages, and add unit tests for them
2021-06-01 13:19:49 -03:00
Mahdi Yazdani e682a44878
Typo in `product_data_panels` method comment 2021-05-25 20:06:30 +03:00
Vedanshu Jain 6667233eb1
Merge pull request #29762 from woocommerce/fix/29502
Update restock logic during refunds closes #29502
2021-05-21 22:53:22 +05:30
Christopher Allford dcec089e7e Merge branch 'trunk' into wc-admin-nonce 2021-05-13 14:11:32 -07:00
Vedanshu Jain 90b50f11f3
Merge pull request #29843 from woocommerce/add/wc-pay-ad-banner
Add support for WooCommerce Payments ad banner on extensions screen's "Featured" section
2021-05-13 16:56:55 +05:30
Nestor Soriano 22b5ec121f
Fix: no output for settings classes that directly override get_settings. 2021-05-13 09:24:25 +02:00
jonathansadowski 692ddaf4f2
Merge pull request #29318 from woocommerce/fix/rounding
Make rounding more accurate when prices are entered more than 2dp
2021-05-12 17:43:29 -05:00
And Finally 7202f19631 Added support for `geoblacklist` in `output_promotion_block`. 2021-05-12 17:54:20 +01:00
And Finally 6bb1ec73a4 Reverted renaming of `geowhitelist` and `geoblacklist`, in case they are still present in other endpoints. 2021-05-12 17:48:37 +01:00
And Finally de331ad893 Addressing feedback. Removed `!important` from `.addons-button-expandable` rule. Renamed `geowhitelist` and `geoblacklist` to `geo_allow_list` and `geo_block_list`. 2021-05-12 09:41:31 +01:00
roykho 006f580b28
Remove unneeded order_version 2021-05-11 08:54:35 -07:00
roykho b808d9a24f
Fix merge conflicts 2021-05-11 08:53:03 -07:00
roykho 8c3e90b3ce
Initialize _restock_refunded_items meta on order update 2021-05-11 08:35:48 -07:00
Christopher Allford fd624f77c8
Merge pull request #29044 from woocommerce/fix/issue-28284
Fix/issue 28284
2021-05-10 11:38:20 -07:00
Roy Ho f9441dcc00
Merge pull request #29778 from woocommerce/add/29608
Product attributes lookup table creation and filling
2021-05-10 07:41:39 -07:00
Nestor Soriano 78ab6fe079
Fix syntax error after manual merge conglict resolution 2021-05-07 12:26:18 +02:00
Nestor Soriano 8b12fee96f
Merge branch 'trunk' into refactor/settings-pages-classes-take-2 2021-05-07 12:16:13 +02:00
vedanshujain 18411d2b3b Add code comments for confusing changes. 2021-05-07 14:30:45 +05:30
vedanshujain 833193b7f7 Round tax amount appropriately before displaying.
We have special method to round taxes which may round up or round down depending upon settings. This method should be used instead of default rounding in formatting funtions.
2021-05-07 14:30:45 +05:30
And Finally e4d3b157ff Changed block name and CSS classnames to the more generic "promotion block". 2021-05-06 22:12:07 +01:00
And Finally 21b4801cc1 Fixing doc comment for new method. 2021-05-06 15:40:02 +01:00
And Finally 2b053d4586 Added docblock comment for `$section` param. 2021-05-06 15:22:53 +01:00
And Finally f1a69cb4af Added comment to new `output_ad_block` method. Removed differences introduced by PhpStorm autoformat. 2021-05-06 15:16:49 +01:00
And Finally 3fa233872c Added `output_ad_block` method to `WC_Admin_Addons` and CSS rules to render a WooCommerce Payments ad banner at the top of the "Featured" section of the WC Core addons page, `wp-admin/admin.php?page=wc-addons&section=_featured`. This is to fulfil the requirements of WooCommerce.com issue https://github.com/Automattic/woocommerce.com/issues/9860.
We output the block if

- The user has permissions to install plugins.
- Their location is in one of the countries identified in a `geowhitelist`.
- WooCommerce Payments is not already active.
2021-05-06 12:55:30 +01:00
roykho 87047c77df
Limit the new refund restock logic to order version 5.4+ 2021-04-29 06:30:53 -07:00
Jonathan Sadowski 98b4968ec2 Address code sniff issues 2021-04-28 16:26:32 -05:00
roykho 6c804e31d7 Update deprecated hovers 2021-04-28 16:22:00 -05:00
roykho 387e095a01 Update deprecated jQuery functions in includes folder 2021-04-28 16:21:59 -05:00