Jonathan Sadowski
661aa38b6b
REST API: Update date_query usage in CRUS controller to be consistent, and generate an array of queries
2021-05-14 13:26:30 -05:00
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
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
Roy Ho
4d6559e957
Merge pull request #29877 from woocommerce/tracker_sql_query
...
Move Tracker to use direct sql queries
2021-05-12 14:53:49 -07:00
Dan Wyman
721fee7064
Add periods to comments.
2021-05-12 14:23:07 -07: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
Néstor Soriano
d2da61ac53
Merge pull request #28132 from TimBHowe/update/fix-28111
2021-05-12 08:42:34 +02:00
Menaka S
e20223f63e
Make the restored function private
2021-05-12 06:48:36 +05:30
Menaka S
ffd6bd4163
Make the new function private
2021-05-12 06:43:36 +05:30
Dan Wyman
d13ce85b66
Set default value for variable
2021-05-12 06:40:53 +05:30
Menaka S
5dfac89d80
Add function to get order details by gateway
2021-05-12 06:40:53 +05:30
Menaka S
20b39bedac
Restore direct SQL queries and functions from WC 5.0
2021-05-12 06:40:53 +05:30
Claudio Sanches
c520505dbe
Merge pull request #29809 from kapilpaul/fix/coding-style-in-class-wc-email
...
fix: coding style in class-wc-email.php
2021-05-11 18:02:39 -03:00
Claudio Sanches
af809c70cb
Merge pull request #28335 from OlegApanovich/fix/28008
...
Fix filter woocommerce_shipping_rate_cost backwards compatibility
2021-05-11 13:34:19 -03: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
vedanshujain
b487e363ce
Restore formatting but without rounding for backward compat.
2021-05-07 14:58:52 +05:30
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
vedanshujain
a0d6cea139
Round shipping and fees tax seperately since they are entered excl taxes.
...
We round up or round down depending upon if prices are entered inclusive or exclusive taxes, however since shipping and fees are always entered exclusive of taxes, they should always be rounded down.
2021-05-07 14:30:44 +05:30
vedanshujain
30cbf4638d
Use constant instead of magic numbers.
2021-05-07 14:30:44 +05:30
vedanshujain
b156e329f8
Remove rounding from lines which are not final totals.
2021-05-07 14:30:44 +05:30
vedanshujain
973bba347f
Remove rounding from subtotals as they would already be rounded depending upon settings.
2021-05-07 14:30:44 +05:30
vedanshujain
43822b7401
Remove rounding from individual item discount taxes.
...
Rounding here conflicts with round at subtotal settings becase we would round at line item level irrespective of settings.
2021-05-07 14:30:44 +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
Tim Howe
f179ff6741
Added dates_are_gmt parameter to allow the uses of post_date_gmt column with the before and after parameters for the order RESTAPI
2021-05-06 17:06:06 -04:00
TimBHowe
98af7209da
Added the 'after_gmt' and 'before_gm' parameters
2021-05-06 10:58:27 -04: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§ion=_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
Nestor Soriano
f53f959d03
Fix the usage of FakeQueue in DataRegeneratorTest.
...
Also update the doc comment of FakeQueue itself on how to use it.
2021-05-05 11:11:36 +02:00
Nestor Soriano
6820b6e519
Add the WC_Queue::reset_instance method
2021-05-04 16:13:48 +02:00
Kapil Paul
4ae714de56
fix: coding-style-in-class-wc-email.php
2021-05-02 00:52:38 +06:00
Nestor Soriano
7f2c2d8b72
Add logging for errors during the execution of a debug tool.
2021-04-29 11:20:25 +02: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
Bero
1d232ddd1f
Merge branch 'trunk' into update/extensions-search-all-categories
2021-04-28 11:06:24 +02:00
Nestor Soriano
d1744ac99a
Add the ProductAttributesLookup\DataRegenerator class.
...
This class creates and fills the product attributes lookup table
from the existing products. It does so by in small chunks by using
Action Scheduler; it handles all the batches and the scheduling
by itself.
It also adds two entries to the debug tools menu:
- Initiate lookup table regeneration (deleting the existing table first)
- Enable or disable the actual usage of the lookup table
for product filtering
The first one is the only way to generate the lookup table for now
(there's no explicit data migration).
The actual filling of the table is delegated to a LookupDataStore class
that is not implemented yet, so for now the table isn't actually filled.
Also enabling/disabling the lookup table usage has no real effect yet.
2021-04-28 10:30:11 +02:00
Nestor Soriano
10adec6b88
Improvements in the engine behind the debug tools page.
...
Two new optional keys have been added to the tool definition array:
- 'disabled': when true the tool button will appear disabled.
- 'needs_refresh': when running a tool, by default the tool definitions
are retrieved first, then the selected tool is executed,
then the definitions previously retrieved are rendered.
When this key is true the tool definitions are retrieved again
after execution, useful for cases where the tool description
or button enable/disable state changes after the tool execution.
Also now if a tool execution throws an exception a notice will be
shown with the execption message, previously the exception
was unhandled.
2021-04-28 10:24:23 +02:00
Nestor Soriano
bad3df3e23
Fix code sniffer errors
2021-04-28 09:36:10 +02:00
barryhughes
2a70009c89
Merge branch 'trunk' into fix/27317-selectwoo-a11y
2021-04-27 13:23:56 -07:00
roykho
d571e570e4
Remove set_backorders logic from external products closes #29696
2021-04-26 08:18:09 -07:00
Jonathan Sadowski
55ab8cb966
Set USD as default store currency
2021-04-23 09:29:12 -05:00
Roy Ho
03d4d4893e
Merge pull request #28187 from woocommerce/fix/25900-take-2
...
Fix: image size customisation controls not shown when theme doesn't define them but Woo core does
2021-04-22 05:41:57 -07:00
Nestor Soriano
3a895c9eed
Move ThemeSupport class to Internal namespace, and use in 2021 theme.
2021-04-21 12:57:56 +02:00