Jonathan Sadowski
6a6ea2e292
Update woocommerce-admin to latest version 2.2.6
2021-05-07 17:13:30 -05:00
Nestor Soriano
78ab6fe079
Fix syntax error after manual merge conglict resolution
2021-05-07 12:26:18 +02:00
vedanshujain
ed7c81127c
Add rounding it test since we changed it in code.
2021-05-07 15:53:52 +05:30
Nestor Soriano
8b12fee96f
Merge branch 'trunk' into refactor/settings-pages-classes-take-2
2021-05-07 12:16:13 +02:00
vedanshujain
f53e9dde44
Use edit context to get unformatted price.
2021-05-07 14:59:14 +05:30
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
6c2f30132d
Add clear cart call to prevent side effects from tests.
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
49ed94a1d0
Add expected deprecate calls to make tests work with parent::setUp.
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
f5056d37e4
Add expected deprecated call so that we can call setUp for this testcase.
2021-05-07 14:30:44 +05:30
vedanshujain
162588c42d
Add test for when product prices has more precision than is displayed.
2021-05-07 14:30:44 +05:30
vedanshujain
c834dfb98b
Add test for when entered price has more precision than displayed price.
2021-05-07 14:30:44 +05:30
vedanshujain
2930057847
Add tests to make sure discounts are rounded properly in cart.
2021-05-07 14:30:44 +05:30
vedanshujain
a0fbff3879
Modify unit test to accomodate pre-rounding total.
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
Nestor Soriano
cdc55bf846
Fix typos in comments
2021-05-07 09:16:45 +02:00
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
Yehuda Hassine
ab6404f6f1
Remove Curaçao postcode
2021-05-06 23:02:18 +03:00
Khoi Nguyen
aa913b59ed
Set loop prop to widget products to set condition on single product page
2021-05-06 22:22:58 +07: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
barryhughes
7ea5c7501f
Test for the presence of 3 or more args (not 2 or more). | #29124
2021-05-05 11:43:14 -07:00
Marco Almeida
f7a4aba2cb
Check for needs_payment() instead of has_status( 'pending' )
...
If an order needs payment, it should include the payment link, no matter the status.
Fixes #29832
2021-05-05 18:21:54 +01:00
Ron Rennick
0d59195657
Merge pull request #29735 from woocommerce/e2e/e2e-merchant-initiate-wccom
...
Added new e2e test to initiate WCCOM connection
2021-05-05 10:35:01 -03:00
Nestor Soriano
9dcdfddc15
Fix table creation detection in DataRegeneratorTest
2021-05-05 11:50:43 +02: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
Veljko
ce1e2f260d
Rename the test file
2021-05-05 09:29:38 +02:00
Ron Rennick
f51dfdfd56
Merge branch 'trunk' into e2e/e2e-merchant-initiate-wccom
2021-05-04 22:28:09 -03:00
Nestor Soriano
c4e7074c70
Add unit tests for the DataRegenerator class
2021-05-04 16:15:16 +02:00
Nestor Soriano
4d13b0ca07
ExtendedContainer::replace now allows registering anonymous classes.
2021-05-04 16:14:34 +02:00
Nestor Soriano
6820b6e519
Add the WC_Queue::reset_instance method
2021-05-04 16:13:48 +02:00
Greg
c354a67292
Finish work on order; removed unused variable from test
2021-05-03 20:21:00 -06:00
Greg
e9febd57ec
Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873
2021-05-03 13:58:55 -06:00
Greg
9347c728e9
Merge pull request #29761 from woocommerce/try/individual-test-files
...
Switch to individual test files
2021-05-03 13:37:52 -06:00
roykho
2e3156d436
Use proper skip test method instead of return
2021-05-03 06:33:09 -07:00
Nestor Soriano
42245ed92a
Add unit tests for LookupDataStore::update_data_for_product (variable products)
2021-05-03 11:14:33 +02:00
Greg
b9bd336b0f
Merge branch 'trunk' of github.com:woocommerce/woocommerce into fix/27873
2021-05-02 15:24:22 -06:00
Kapil Paul
4ae714de56
fix: coding-style-in-class-wc-email.php
2021-05-02 00:52:38 +06:00
Ron Rennick
7b23b8c8aa
two more minor E2E fixes
...
- add shipping zone for first checkout test
- increase wait time for product import to complete
2021-04-30 16:26:51 -03:00
Ron Rennick
946f8ec903
Merge branch 'trunk' into try/individual-test-files
2021-04-30 15:13:56 -03:00
Claudio Sanches
a54df37363
Merge pull request #29694 from bgrgicak/update/extensions-search-all-categories
...
Extension search always search all categories
2021-04-30 12:29:23 -03:00