Commit Graph

21310 Commits

Author SHA1 Message Date
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
Vedanshu Jain dd876b6d8a
Merge pull request #29835 from woocommerce/fix/29124-magic-arg
Test for the presence of 3 or more args (not 2 or more). | #29124
2021-05-20 22:13:38 +05:30
Roy Ho 02981cfbc9
Merge pull request #29772 from woocommerce/fix/navigation-block-preparation
Add labels and allow searching terms in WooCommerce Navigation Link block variations
2021-05-19 11:55:56 -07:00
Roy Ho 0643ccf4c6
Merge branch 'trunk' into add/woocommerce_inbox_variant 2021-05-19 10:36:21 -07:00
Alfredo Sumaran 8fa6265ef7 Fix Code Sniffer error 2021-05-17 18:35:18 -05:00
Alfredo Sumaran f20e8ab567 Move variable declaration outside foreach loop 2021-05-17 18:27:17 -05:00
Alfredo Sumaran 79db2d95a0 Use default value only if form was displayed to the user
Also changed variable name for readability
2021-05-17 17:15:16 -05:00
Alfredo Sumaran 32566c508e Consolidate value for checkbox input types 2021-05-17 16:27:47 -05:00
Alfredo Sumaran c7bd680579 Consolidate value for checkbox input types 2021-05-17 16:27:47 -05:00
Alfredo Sumaran 195acd0866 Skip switch statement if value is empty 2021-05-17 16:27:47 -05:00
Alfredo Sumaran 5a5a808182 Update syntax to ignore line from PHP CodeSniffer 2021-05-17 16:27:47 -05:00
Alfredo Sumaran 90443914f0 Set checkout field value with defined default 2021-05-17 16:27:47 -05:00
Barry Hughes 31da9455a2
Merge pull request #29912 from woocommerce/fix/29484
Set header cache-control for cart/checkout pages closes #29484
2021-05-17 13:34:27 -07:00
roykho aa7e77a8ed
Remove comment that it includes checkout page 2021-05-17 12:50:38 -07:00
Claudio Sanches 313a89499e
Merge pull request #29781 from gilesholder/trunk
PayPal settings title - capitalisation fix for consistency
2021-05-17 15:17:56 -03:00
Claudio Sanches c35ed5e1a6
Merge pull request #29847 from codetot/fix/widget_products
Set loop prop to widget products to adapt condition on single product page
2021-05-17 12:40:05 -03:00
Christopher Allford 0b89a27abd Updated versions for 5.5.0 development 2021-05-14 15:03:39 -07:00
Christopher Allford 657d84ae3e
Revert "Fix filter woocommerce_shipping_rate_cost backwards compatibility" 2021-05-14 14:08:30 -07:00
Claudio Sanches 5493218870
Merge pull request #29717 from kkmuffme/patch-1
Sort country codes alphabetically
2021-05-14 17:31:40 -03:00
roykho 9f6104598b
Set header cache-control for cart/checkout pages closes #29484 2021-05-14 12:06:07 -07:00
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
Paul Sealock 08d71b5a0c make assignment 1-12 2021-05-13 17:58:09 +12:00
Paul Sealock cc244ce103 remove activation hook as its redundant 2021-05-13 12:59:19 +12:00
Paul Sealock 1314e7e142 Add woocommerce_inbox_variant: 2021-05-13 12:55:58 +12: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
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
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
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